Megosztás a következőn keresztül:


TagResource.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TagResource> CreateOrUpdate (Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.TagResourceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.Resources.TagResourceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TagResource>
override this.CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.Resources.TagResourceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TagResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, data As TagResourceData, Optional cancellationToken As CancellationToken = Nothing) As 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