Partager via


VirtualMachineRunCommandsOperationsExtensions.BeginCreateOrUpdateAsync Méthode

Définition

Opération permettant de créer ou de mettre à jour la commande d’exécution.

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)

Paramètres

operations
IVirtualMachineRunCommandsOperations

Groupe d’opérations pour cette méthode d’extension.

resourceGroupName
String

Nom du groupe de ressources.

vmName
String

Nom de la machine virtuelle sur laquelle la commande d’exécution doit être créée ou mise à jour.

runCommandName
String

Nom de la commande d’exécution de la machine virtuelle.

runCommand
VirtualMachineRunCommand

Paramètres fournis à l’opération Create Virtual Machine RunCommand.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à