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

VirtualMachineRunCommandCollection.Get 方法

定义

获取 run 命令的操作。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}
  • 操作IdVirtualMachineRunCommands_GetByVirtualMachine
public virtual Azure.Response<Azure.ResourceManager.Compute.VirtualMachineRunCommandResource> Get (string runCommandName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.VirtualMachineRunCommandResource>
override this.Get : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.VirtualMachineRunCommandResource>
Public Overridable Function Get (runCommandName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of VirtualMachineRunCommandResource)

参数

runCommandName
String

虚拟机运行命令的名称。

expand
String

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

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

runCommandName 是一个空字符串,预期为非空。

runCommandName 为 null。

适用于