Freigeben über


VirtualMachineRunCommandsOperationsExtensions.UpdateAsync Methode

Definition

Der Vorgang zum Aktualisieren des Ausführungsbefehls.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInner> UpdateAsync (this Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineRunCommandsOperations operations, string resourceGroupName, string vmName, string runCommandName, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandUpdate runCommand, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAsync : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineRunCommandsOperations * string * string * string * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandUpdate * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInner>
<Extension()>
Public Function UpdateAsync (operations As IVirtualMachineRunCommandsOperations, resourceGroupName As String, vmName As String, runCommandName As String, runCommand As VirtualMachineRunCommandUpdate, 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 aktualisiert werden soll.

runCommandName
String

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

runCommand
VirtualMachineRunCommandUpdate

Parameter, die für den RunCommand-Vorgang des virtuellen Computers aktualisieren bereitgestellt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: