VirtualMachinesOperationsExtensions.GetAsync(IVirtualMachinesOperations, String, String, Nullable<InstanceViewTypes>, CancellationToken) Method

Definition

Retrieves information about the model view or the instance view of a virtual machine.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.VirtualMachine> GetAsync (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string resourceGroupName, string vmName, Nullable<Microsoft.Azure.Management.Compute.Models.InstanceViewTypes> expand = null, System.Threading.CancellationToken cancellationToken = null);
static member GetAsync : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string * Nullable<Microsoft.Azure.Management.Compute.Models.InstanceViewTypes> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.VirtualMachine>

Parameters

operations
IVirtualMachinesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

vmName
String

The name of the virtual machine.

expand
Nullable<InstanceViewTypes>

The expand expression to apply on the operation. Possible values include: 'instanceView'

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to