Freigeben über


VirtualMachinesOperationsExtensions.GetAsync Methode

Definition

Ruft Informationen zur Modell- oder Instanzansicht eines virtuellen Computers ab.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineInner> GetAsync(this Microsoft.Azure.Management.Compute.Fluent.IVirtualMachinesOperations operations, string resourceGroupName, string vmName, Microsoft.Azure.Management.Compute.Fluent.Models.InstanceViewTypes? expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachinesOperations * string * string * Nullable<Microsoft.Azure.Management.Compute.Fluent.Models.InstanceViewTypes> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineInner>
<Extension()>
Public Function GetAsync (operations As IVirtualMachinesOperations, resourceGroupName As String, vmName As String, Optional expand As Nullable(Of InstanceViewTypes) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VirtualMachineInner)

Parameter

operations
IVirtualMachinesOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe.

vmName
String

Der Name des virtuellen Computers.

expand
Nullable<InstanceViewTypes>

Der expand-Ausdruck, der auf den Vorgang angewendet werden soll. Mögliche Werte: "instanceView"

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: