Freigeben über


VirtualMachineScaleSetVMRunCommandsOperationsExtensions.BeginCreateOrUpdateAsync Methode

Definition

Der Vorgang zum Erstellen oder Aktualisieren des VMSS-VM-Ausführungsbefehls.

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

Parameter

operations
IVirtualMachineScaleSetVMRunCommandsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe.

vmScaleSetName
String

Der Name der VM-Skalierungsgruppe.

instanceId
String

Die instance-ID des virtuellen Computers.

runCommandName
String

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

runCommand
VirtualMachineRunCommand

Parameter, die für den RunCommand-Vorgang erstellen virtueller Computer bereitgestellt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: