VirtualMachinesOperationsExtensions.GetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, Microsoft.Azure.Management.Compute.Models.InstanceViewTypes? expand = default, System.Threading.CancellationToken cancellationToken = default);
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>
<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 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. 'InstanceView' retrieves a snapshot of the runtime properties of the virtual machine that is managed by the platform and can change outside of control plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user during the VM Create/Update operation. Possible values include: 'instanceView', 'userData'
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET