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

VirtualMachineRunCommandsOperationsExtensions.GetByVirtualMachineAsync 方法

定义

获取 run 命令的操作。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommand> GetByVirtualMachineAsync (this Microsoft.Azure.Management.Compute.IVirtualMachineRunCommandsOperations operations, string resourceGroupName, string vmName, string runCommandName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetByVirtualMachineAsync : Microsoft.Azure.Management.Compute.IVirtualMachineRunCommandsOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommand>
<Extension()>
Public Function GetByVirtualMachineAsync (operations As IVirtualMachineRunCommandsOperations, resourceGroupName As String, vmName As String, runCommandName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VirtualMachineRunCommand)

参数

operations
IVirtualMachineRunCommandsOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

vmName
String

包含 run 命令的虚拟机的名称。

runCommandName
String

虚拟机运行命令的名称。

expand
String

要应用于操作的 expand 表达式。

cancellationToken
CancellationToken

取消标记。

返回

适用于