IVirtualMachineOperations.GetAsync Method (String, String, String, CancellationToken)
Asynchronously retrieves information about the specified Virtual Machine.
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Syntax
Task<VirtualMachineGetResponse> GetAsync(
string serviceName,
string deploymentName,
string virtualMachineName,
CancellationToken cancellationToken
)
Task<VirtualMachineGetResponse^>^ GetAsync(
String^ serviceName,
String^ deploymentName,
String^ virtualMachineName,
CancellationToken cancellationToken
)
abstract GetAsync :
serviceName:string *
deploymentName:string *
virtualMachineName:string *
cancellationToken:CancellationToken -> Task<VirtualMachineGetResponse>
Function GetAsync (
serviceName As String,
deploymentName As String,
virtualMachineName As String,
cancellationToken As CancellationToken
) As Task(Of VirtualMachineGetResponse)
Parameters
serviceName
Type: System.StringThe name of the cloud service that contains the Virtual Machine.
deploymentName
Type: System.StringThe name of the deployment.
virtualMachineName
Type: System.StringThe name of the Virtual Machine from which the information should be retrieved.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<VirtualMachineGetResponse>
The VirtualMachineGetResponse object that contains the information about the Virtual Machine.
Remarks
For more information about retrieving Virtual Machine information, see the following resources:
See Also
IVirtualMachineOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top