mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 04:42:51 +00:00
31 lines
688 B
Plaintext
31 lines
688 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# az tag
|
|
|
|
> Manage tags on a resource.
|
|
> Part of `azure-cli` (also known as `az`).
|
|
> More information: <https://learn.microsoft.com/cli/azure/tag>.
|
|
|
|
- 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}}`
|