VirtualMachinesOperations.StartUpdateAsync(String, String, VirtualMachineUpdate, CancellationToken) Method

Definition

The operation to update a virtual machine.

public virtual System.Threading.Tasks.Task<Azure.ResourceManager.Compute.VirtualMachinesUpdateOperation> StartUpdateAsync (string resourceGroupName, string vmName, Azure.ResourceManager.Compute.Models.VirtualMachineUpdate parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member StartUpdateAsync : string * string * Azure.ResourceManager.Compute.Models.VirtualMachineUpdate * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.Compute.VirtualMachinesUpdateOperation>
override this.StartUpdateAsync : string * string * Azure.ResourceManager.Compute.Models.VirtualMachineUpdate * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.Compute.VirtualMachinesUpdateOperation>
Public Overridable Function StartUpdateAsync (resourceGroupName As String, vmName As String, parameters As VirtualMachineUpdate, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VirtualMachinesUpdateOperation)

Parameters

resourceGroupName
System.String

The name of the resource group.

vmName
System.String

The name of the virtual machine.

parameters
VirtualMachineUpdate

Parameters supplied to the Update Virtual Machine operation.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<VirtualMachinesUpdateOperation>

Exceptions

System.ArgumentNullException

resourceGroupName, vmName, or parameters is null.

Applies to