Udostępnij za pośrednictwem


IVirtualMachineOperations.GetAsync Method

Definition

The Get Role operation retrieves information about the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157193.aspx for more information)

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineGetResponse> GetAsync (string serviceName, string deploymentName, string virtualMachineName, System.Threading.CancellationToken cancellationToken);
abstract member GetAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineGetResponse>
Public Function GetAsync (serviceName As String, deploymentName As String, virtualMachineName As String, cancellationToken As CancellationToken) As Task(Of VirtualMachineGetResponse)

Parameters

serviceName
String

The name of your service.

deploymentName
String

The name of your deployment.

virtualMachineName
String

The name of the virtual machine.

cancellationToken
CancellationToken

Cancellation token.

Returns

The Get Virtual Machine operation response.

Applies to