1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 11:15:51 +02:00
tldr/pages/common/az-tag.md

26 lines
631 B
Markdown
Raw Normal View History

2021-10-13 20:22:39 +05:30
# az tag
> Manage tags on a resource.
> Part of `azure-cli` (also known as `az`).
> 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 {{[-n|--name]}} {{tag_name}} --value {{tag_value}}`
2021-10-13 20:22:39 +05:30
- Create a tag in the subscription:
`az tag create {{[-n|--name]}} {{tag_name}}`
2021-10-13 20:22:39 +05:30
- Delete a tag from the subscription:
`az tag delete {{[-n|--name]}} {{tag_name}}`
2021-10-13 20:22:39 +05:30
- 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 {{[-n|--name]}} {{tag_name}} --value {{tag_value}}`