az tag

Manage resource tags.

Commands

az tag add-value Creates a tag value.
az tag create Creates a tag in the subscription.
az tag delete Deletes a tag from the subscription.
az tag list Gets the names and values of all resource tags that are defined in a subscription.
az tag remove-value Deletes a tag value.

az tag add-value

Creates a tag value.

The name of the tag must already exist.

az tag add-value --name
--value

Required Parameters

--name -n

The name of the tag.

--value

The value of the tag to create.

az tag create

Creates a tag in the subscription.

The tag name can have a maximum of 512 characters and is case insensitive. Tag names created by Azure have prefixes of microsoft, azure, or windows. You cannot create tags with one of these prefixes.

az tag create --name

Required Parameters

--name -n

The name of the tag to create.

az tag delete

Deletes a tag from the subscription.

You must remove all values from a resource tag before you can delete it.

az tag delete --name

Required Parameters

--name -n

The name of the tag.

az tag list

Gets the names and values of all resource tags that are defined in a subscription.

az tag list

az tag remove-value

Deletes a tag value.

az tag remove-value --name
--value

Required Parameters

--name -n

The name of the tag.

--value

The value of the tag to delete.