TagsOperationsExtensions.UpdateAtScopeAsync Method

Definition

Selectively updates the set of tags on a resource or subscription.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.TagsResource> UpdateAtScopeAsync (this Microsoft.Azure.Management.ResourceManager.ITagsOperations operations, string scope, Microsoft.Azure.Management.ResourceManager.Models.TagsPatchResource parameters, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAtScopeAsync : Microsoft.Azure.Management.ResourceManager.ITagsOperations * string * Microsoft.Azure.Management.ResourceManager.Models.TagsPatchResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.TagsResource>
<Extension()>
Public Function UpdateAtScopeAsync (operations As ITagsOperations, scope As String, parameters As TagsPatchResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TagsResource)

Parameters

operations
ITagsOperations

The operations group for this extension method.

scope
String

The resource scope.

parameters
TagsPatchResource
cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.

Applies to