Freigeben über


VirtualMachineRunCommandsOperationsExtensions.BeginCreateOrUpdateAsync Methode

Definition

Der Vorgang zum Erstellen oder Aktualisieren des Ausführungsbefehls.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInner> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineRunCommandsOperations operations, string resourceGroupName, string vmName, string runCommandName, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInner runCommand, System.Threading.CancellationToken cancellationToken = default);
static member BeginCreateOrUpdateAsync : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineRunCommandsOperations * 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 IVirtualMachineRunCommandsOperations, resourceGroupName As String, vmName As String, runCommandName As String, runCommand As VirtualMachineRunCommandInner, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VirtualMachineRunCommandInner)

Parameter

operations
IVirtualMachineRunCommandsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe.

vmName
String

Der Name des virtuellen Computers, auf dem der Ausführungsbefehl erstellt oder aktualisiert werden soll.

runCommandName
String

Der Name des Befehls zum Ausführen des virtuellen Computers.

runCommand
VirtualMachineRunCommandInner

Parameter, die für den RunCommand-Vorgang "Vm erstellen" bereitgestellt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: