共用方式為


VirtualMachinesOperationsExtensions.Get Method

Definition

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

public static Microsoft.Azure.Management.Compute.Models.VirtualMachine Get (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string resourceGroupName, string vmName, Microsoft.Azure.Management.Compute.Models.InstanceViewTypes? expand = default);
static member Get : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string * Nullable<Microsoft.Azure.Management.Compute.Models.InstanceViewTypes> -> Microsoft.Azure.Management.Compute.Models.VirtualMachine
<Extension()>
Public Function Get (operations As IVirtualMachinesOperations, resourceGroupName As String, vmName As String, Optional expand As Nullable(Of InstanceViewTypes) = Nothing) As 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'

Returns

Applies to