Share via


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

IVirtualMachineScaleSetBeta.RunPowerShellScriptInVMInstance 方法

定义

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

public Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandResultInner RunPowerShellScriptInVMInstance (string vmId, System.Collections.Generic.IList<string> scriptLines, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInputParameter> scriptParameters);
abstract member RunPowerShellScriptInVMInstance : 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 RunPowerShellScriptInVMInstance (vmId As String, scriptLines As IList(Of String), scriptParameters As IList(Of RunCommandInputParameter)) As RunCommandResultInner

参数

vmId
String

虚拟机实例 ID。

scriptLines
IList<String>

PowerShell 脚本行。

scriptParameters
IList<RunCommandInputParameter>

脚本参数。

返回

适用于