Compartilhar via


VirtualMachineRunCommandsOperationsExtensions.BeginCreateOrUpdateAsync Método

Definição

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

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

Parâmetros

operations
IVirtualMachineRunCommandsOperations

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

resourceGroupName
String

O nome do grupo de recursos.

vmName
String

O nome da máquina virtual em que o comando de execução deve ser criado ou atualizado.

runCommandName
String

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

runCommand
VirtualMachineRunCommand

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

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a