Tags

What it is

Tags are name/value metadata you attach to resources (and resource groups) — e.g. environment=production, costcenter=finance, owner=platform. They are free-form and unlimited in count.

Why it exists

Tags let you organize, classify, and query resources for cost reporting, resource management/filtering, and automation — Azure Cost Management and many dashboards group by tag. They support policy-driven tagging standards (e.g. require a costcenter tag via Policy).

Key ideas

  • Apply to many resource types, not all; inherit at resource group level optionally.
  • Not a permission control — tags are metadata, not RBAC. (Policy / role assignment governs access.)
  • Policy tagging standards — use DeployIfNotExists/Modify with inheritFromResourceGroup to auto-apply tags.
  • View/filter by tag in the portal, CLI (az resource list --tag), and Cost Management.

How it fits (diagram)

resource-tags.svg

Exam notes

  • Tagging is metadata, separate from names; name/location are not tags.
  • Tag inheritance (portal applies on create; policy inheritFromResourceGroup for ongoing).
  • Differentiate tags (metadata) from RBAC and Policy (rules).

resource-group · azure-policy · azure-cost-management

📘 Source: Microsoft Learn — Resource Tags