Partager via


ConnectedVMwarevSphereExtensions.GetVirtualMachineAsync Méthode

Définition

Implémente la méthode GET de la machine virtuelle.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}
  • IdVirtualMachines_Get d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.VirtualMachineResource>> GetVirtualMachineAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string virtualMachineName, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualMachineAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.VirtualMachineResource>>
<Extension()>
Public Function GetVirtualMachineAsync (resourceGroupResource As ResourceGroupResource, virtualMachineName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VirtualMachineResource))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

virtualMachineName
String

Nom de la ressource de machine virtuelle.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

virtualMachineName est une chaîne vide et devait être non vide.

virtualMachineName a la valeur null.

S’applique à