Partager via


IVirtualMachineScaleSetVMRunCommandsOperations.BeginUpdateWithHttpMessagesAsync Méthode

Définition

Opération permettant de mettre à jour la commande d’exécution de machine virtuelle VMSS.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommand>> BeginUpdateWithHttpMessagesAsync (string resourceGroupName, string vmScaleSetName, string instanceId, string runCommandName, Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommandUpdate runCommand, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginUpdateWithHttpMessagesAsync : string * string * string * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommandUpdate * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommand>>
Public Function BeginUpdateWithHttpMessagesAsync (resourceGroupName As String, vmScaleSetName As String, instanceId As String, runCommandName As String, runCommand As VirtualMachineRunCommandUpdate, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of VirtualMachineRunCommand))

Paramètres

resourceGroupName
String

Nom du groupe de ressources.

vmScaleSetName
String

Nom du groupe de machines virtuelles identiques.

instanceId
String

ID instance de la machine virtuelle.

runCommandName
String

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

runCommand
VirtualMachineRunCommandUpdate

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

customHeaders
Dictionary<String,List<String>>

En-têtes qui seront ajoutés à la demande.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Exceptions

Levée lorsque l’opération a retourné un code de status non valide

Levée en cas d’impossibilité de désérialiser la réponse

Levée lorsqu’un paramètre obligatoire a la valeur Null

S’applique à