VirtualMachineScaleSetVMsOperationsExtensions.ListAsync(IVirtualMachineScaleSetVMsOperations, String, String, ODataQuery<VirtualMachineScaleSetVMInner>, String, CancellationToken) Method

Definition

Gets a list of all virtual machines in a VM scale sets.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetVMInner>> ListAsync (this Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string virtualMachineScaleSetName, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetVMInner> odataQuery = null, string select = null, System.Threading.CancellationToken cancellationToken = null);
static member ListAsync : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSetVMsOperations * string * string * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetVMInner> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetVMInner>>

Parameters

operations
IVirtualMachineScaleSetVMsOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group.

virtualMachineScaleSetName
System.String

The name of the VM scale set.

odataQuery
ODataQuery<VirtualMachineScaleSetVMInner>

OData parameters to apply to the operation.

select
System.String

The list parameters.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<VirtualMachineScaleSetVMInner>>

Applies to