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

IVirtualMachineBeta.RunCommandAsync 方法

定义

在虚拟机中异步运行命令。

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandResultInner> RunCommandAsync (Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInput inputCommand, System.Threading.CancellationToken cancellationToken = default);
abstract member RunCommandAsync : Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandResultInner>
Public Function RunCommandAsync (inputCommand As RunCommandInput, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RunCommandResultInner)

参数

inputCommand
RunCommandInput

命令输入。

cancellationToken
CancellationToken

返回

适用于