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

IVirtualMachineScaleSetsBeta.RunCommandInVMInstance 方法

定义

在规模集中的虚拟机实例中运行命令。

public Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandResultInner RunCommandInVMInstance (string groupName, string scaleSetName, string vmId, Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInput inputCommand);
abstract member RunCommandInVMInstance : string * string * string * Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInput -> Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandResultInner
Public Function RunCommandInVMInstance (groupName As String, scaleSetName As String, vmId As String, inputCommand As RunCommandInput) As RunCommandResultInner

参数

groupName
String

资源组名称。

scaleSetName
String

虚拟机规模集名称。

vmId
String

虚拟机实例 ID。

inputCommand
RunCommandInput

命令输入。

返回

适用于