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

IVirtualMachineScaleSetsBeta.RunShellScriptInVMInstance 方法

定义

在规模集中的虚拟机实例中运行 shell 脚本。

public Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandResultInner RunShellScriptInVMInstance (string groupName, string scaleSetName, string vmId, System.Collections.Generic.IList<string> scriptLines, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInputParameter> scriptParameters);
abstract member RunShellScriptInVMInstance : string * string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInputParameter> -> Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandResultInner
Public Function RunShellScriptInVMInstance (groupName As String, scaleSetName As String, vmId As String, scriptLines As IList(Of String), scriptParameters As IList(Of RunCommandInputParameter)) As RunCommandResultInner

参数

groupName
String

资源组名称。

scaleSetName
String

虚拟机规模集名称。

vmId
String

虚拟机实例 ID。

scriptLines
IList<String>

Shell 脚本行。

scriptParameters
IList<RunCommandInputParameter>

脚本参数。

返回

适用于