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

VirtualMachineRunCommandsOperationsExtensions.Update 方法

定义

用于更新 run 命令的操作。

public static Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommand Update (this Microsoft.Azure.Management.Compute.IVirtualMachineRunCommandsOperations operations, string resourceGroupName, string vmName, string runCommandName, Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommandUpdate runCommand);
static member Update : Microsoft.Azure.Management.Compute.IVirtualMachineRunCommandsOperations * string * string * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommandUpdate -> Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommand
<Extension()>
Public Function Update (operations As IVirtualMachineRunCommandsOperations, resourceGroupName As String, vmName As String, runCommandName As String, runCommand As VirtualMachineRunCommandUpdate) As VirtualMachineRunCommand

参数

operations
IVirtualMachineRunCommandsOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

vmName
String

应在其中更新 run 命令的虚拟机的名称。

runCommandName
String

虚拟机运行命令的名称。

runCommand
VirtualMachineRunCommandUpdate

提供给更新虚拟机 RunCommand 操作的参数。

返回

适用于