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

IVirtualMachinesBeta.RunPowerShellScript 方法

定义

在虚拟机中运行 shell 脚本。

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

参数

groupName
String

资源组名称。

name
String

虚拟机名称。

scriptLines
IList<String>

PowerShell 脚本行。

scriptParameters
IList<RunCommandInputParameter>

脚本参数。

返回

适用于