AZ-900 ยท Cost management
Resource tags
Tags as name-value pairs for cost reporting, resource management, operations and governance, and that tags are not inherited by default.
Key points
- Tags: name-value metadata pairs, e.g. CostCenter = 4410.
- On resources, resource groups and subscriptions; not management groups.
- Uses: management, costs, operations, security, governance, automation.
- Not inherited, unless Azure Policy adds or copies them; Azure Policy can also require tags.
- Up to 50 tags each; plain text, so no secrets.
- Managed in the portal, PowerShell, Azure CLI, ARM templates, REST API.
Source: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources
Practice questions
What is an Azure resource tag?
- A name-value pair of metadata attached to a resource
- A rule that blocks a resource from being deleted
- A role assignment that grants access to a resource
- A setting that pins a resource to one Azure region
Show answer
Answer: A. A name-value pair of metadata attached to a resource
A tag is a name-value pair of metadata attached to a resource, resource group or subscription. It does not restrict access, block deletion or set the location of a resource.
Which of these can you apply tags to?
- Individual resources such as a VM
- Resource groups
- Management groups
- Subscriptions
- Azure regions
Show answer
Answer: A. Individual resources such as a VM, B. Resource groups, D. Subscriptions
Tags can be applied to resources, resource groups and subscriptions. Management groups cannot be tagged, and Azure regions are locations, not taggable objects.
A tag added to a resource group is automatically applied to every resource inside that group.
Show answer
Answer: False
False. Resources do not inherit tags from their resource group or subscription. To copy tags down, assign an Azure Policy definition built for tag inheritance.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
