DevTestLabVmResource.Update(DevTestLabVmPatch, CancellationToken) Method

Definition

Allows modifying tags of virtual machines. All other properties will be ignored.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}
  • Operation Id: VirtualMachines_Update
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabVmResource> Update (Azure.ResourceManager.DevTestLabs.Models.DevTestLabVmPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.ResourceManager.DevTestLabs.Models.DevTestLabVmPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabVmResource>
override this.Update : Azure.ResourceManager.DevTestLabs.Models.DevTestLabVmPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabVmResource>
Public Overridable Function Update (patch As DevTestLabVmPatch, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DevTestLabVmResource)

Parameters

patch
DevTestLabVmPatch

A virtual machine.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to