VirtualMachineSizesOperationsExtensions.ListAsync(IVirtualMachineSizesOperations, String, CancellationToken) Method

Definition

Lists all available virtual machine sizes for a subscription in a location.

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineSize>> ListAsync (this Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineSizesOperations operations, string location, System.Threading.CancellationToken cancellationToken = null);
static member ListAsync : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineSizesOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineSize>>

Parameters

operations
IVirtualMachineSizesOperations

The operations group for this extension method.

location
System.String

The location upon which virtual-machine-sizes is queried.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineSize>>

Applies to