你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualMachineOperationsExtensions.GetAsync 方法

定义

获取角色操作检索有关指定虚拟机的信息。 (有关详细信息,请参阅 http://msdn.microsoft.com/en-us/library/windowsazure/jj157193.aspx)

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

参数

operations
IVirtualMachineOperations

对 Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations 的引用。

serviceName
String

必需。 服务的名称。

deploymentName
String

必需。 部署的名称。

virtualMachineName
String

必需。 虚拟机的名称。

返回

获取虚拟机操作响应。

适用于