Partilhar via


VirtualMachineScaleSetVMsOperationsExtensions.RunCommandAsync Método

Definição

Execute o comando em uma máquina virtual em um conjunto de dimensionamento de VMs.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.RunCommandResult> RunCommandAsync (this Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, Microsoft.Azure.Management.Compute.Models.RunCommandInput parameters, System.Threading.CancellationToken cancellationToken = default);
static member RunCommandAsync : Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetVMsOperations * string * string * string * Microsoft.Azure.Management.Compute.Models.RunCommandInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.RunCommandResult>
<Extension()>
Public Function RunCommandAsync (operations As IVirtualMachineScaleSetVMsOperations, resourceGroupName As String, vmScaleSetName As String, instanceId As String, parameters As RunCommandInput, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RunCommandResult)

Parâmetros

operations
IVirtualMachineScaleSetVMsOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

O nome do grupo de recursos.

vmScaleSetName
String

O nome do conjunto de dimensionamento de VMs.

instanceId
String

A ID da instância da máquina virtual.

parameters
RunCommandInput

Parâmetros fornecidos para a operação executar comando.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a