TagResource.CreateOrUpdateAsync Method

Definition

This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.

  • Request Path: /{scope}/providers/Microsoft.Resources/tags/default
  • Operation Id: Tags_CreateOrUpdateAtScope
  • Default Api Version: 2022-09-01
  • Resource: TagResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TagResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.TagResourceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Resources.TagResourceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TagResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Resources.TagResourceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TagResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, data As TagResourceData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of TagResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

data
TagResourceData

The TagResourceData to use.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to