Bitzu

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

Single choice

What is an Azure resource tag?

  1. A name-value pair of metadata attached to a resource
  2. A rule that blocks a resource from being deleted
  3. A role assignment that grants access to a resource
  4. 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.

Select all that apply

Which of these can you apply tags to?

  1. Individual resources such as a VM
  2. Resource groups
  3. Management groups
  4. Subscriptions
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More AZ-900 topics in this module