Compartilhar via


VirtualMachineScaleSetVMRunCommandsOperationsExtensions.BeginCreateOrUpdateAsync Método

Definição

A operação para criar ou atualizar o comando de execução da VM VMSS.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInner> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSetVMRunCommandsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, string runCommandName, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInner runCommand, System.Threading.CancellationToken cancellationToken = default);
static member BeginCreateOrUpdateAsync : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSetVMRunCommandsOperations * string * string * string * string * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInner>
<Extension()>
Public Function BeginCreateOrUpdateAsync (operations As IVirtualMachineScaleSetVMRunCommandsOperations, resourceGroupName As String, vmScaleSetName As String, instanceId As String, runCommandName As String, runCommand As VirtualMachineRunCommandInner, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VirtualMachineRunCommandInner)

Parâmetros

operations
IVirtualMachineScaleSetVMRunCommandsOperations

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 da VM.

instanceId
String

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

runCommandName
String

O nome do comando de execução da máquina virtual.

runCommand
VirtualMachineRunCommandInner

Parâmetros fornecidos para a operação Create Virtual Machine RunCommand.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a