Freigeben über


VirtualMachinesOperationsExtensions.ListAvailableSizesAsync Methode

Definition

Listet alle verfügbaren VM-Größen auf, auf die die größe des angegebenen virtuellen Computers geändert werden kann.

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.Compute.Models.VirtualMachineSize>> ListAvailableSizesAsync (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string resourceGroupName, string vmName, System.Threading.CancellationToken cancellationToken = default);
static member ListAvailableSizesAsync : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Management.Compute.Models.VirtualMachineSize>>
<Extension()>
Public Function ListAvailableSizesAsync (operations As IVirtualMachinesOperations, resourceGroupName As String, vmName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of VirtualMachineSize))

Parameter

operations
IVirtualMachinesOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe.

vmName
String

Der Name des virtuellen Computers.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: