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

IVirtualMachineBeta.RunShellScriptAsync 方法

定义

在虚拟机中异步运行 shell 脚本。

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandResultInner> RunShellScriptAsync (System.Collections.Generic.IList<string> scriptLines, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInputParameter> scriptParameters, System.Threading.CancellationToken cancellationToken = default);
abstract member RunShellScriptAsync : System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInputParameter> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandResultInner>
Public Function RunShellScriptAsync (scriptLines As IList(Of String), scriptParameters As IList(Of RunCommandInputParameter), Optional cancellationToken As CancellationToken = Nothing) As Task(Of RunCommandResultInner)

参数

scriptLines
IList<String>

Shell 脚本行。

scriptParameters
IList<RunCommandInputParameter>

脚本参数。

cancellationToken
CancellationToken

返回

适用于