2021-10-13 20:22:39 +05:30
|
|
|
# az tag
|
|
|
|
|
|
|
|
> Manage tags on a resource.
|
2023-10-15 09:42:29 +02:00
|
|
|
> Part of `azure-cli` (also known as `az`).
|
2022-10-04 20:36:23 +05:30
|
|
|
> More information: <https://learn.microsoft.com/cli/azure/tag>.
|
2021-10-13 20:22:39 +05:30
|
|
|
|
|
|
|
- Create a tag value:
|
|
|
|
|
|
|
|
`az tag add-value --name {{tag_name}} --value {{tag_value}}`
|
|
|
|
|
|
|
|
- Create a tag in the subscription:
|
|
|
|
|
|
|
|
`az tag create --name {{tag_name}}`
|
|
|
|
|
|
|
|
- Delete a tag from the subscription:
|
|
|
|
|
|
|
|
`az tag delete --name {{tag_name}}`
|
|
|
|
|
|
|
|
- List all tags on a subscription:
|
|
|
|
|
|
|
|
`az tag list --resource-id /subscriptions/{{subscription_id}}`
|
|
|
|
|
|
|
|
- Delete a tag value for a specific tag name:
|
|
|
|
|
|
|
|
`az tag remove-value --name {{tag_name}} --value {{tag_value}}`
|