Start here! Get your feet wet with the Microsoft cloud and begin your journey to earning your Microsoft Certified: Azure Fundamentals certification!
Tags in Azure are metadata elements that you attach to resources. Each tag is a simple key-value pair of text, such as Environment: Production or Department: Finance. Tags help you organize resources, track costs, and enforce governance. You can create and manage tags through the Azure portal, Azure CLI, or PowerShell.
When a tagged resource reports usage, the tag is attached to the usage data and flows into Azure Cost Management. There you can filter and group costs by tag, so you see spending broken down by department, environment, or project. Tags only appear in cost reports after the resource has active usage, and changes like adding, editing, or deleting a tag take effect only on new usage data. To get reliable cost reports, keep tags consistent across resources, apply them to every resource you want to track, and record any tag changes for historical accuracy.
Tags help enforce governance and compliance by adding business context to resources. For example, you can tag resources with a Compliance key to show they meet a regulation. You can apply tags through the Azure portal, at the resource, resource group, or subscription level. Azure Policy can require or modify tags automatically. Policy definitions can use the modify effect to add missing tags when a resource is created or updated, and they can remediate existing non-compliant resources in bulk.
Tag inheritance in Microsoft Cost Management extends tags from a subscription or resource group down to child resources, even if those resources don't emit tags themselves. This feature works for Enterprise Agreements (EA) and Microsoft Customer Agreements (MCA) and ensures cost data is complete. By combining a clear tagging strategy with Azure Policy and tag inheritance, organizations achieve consistent governance and easier compliance with internal and external standards.
Tags are key-value pairs that let you group resources by the purpose they serve, such as a project or cost center. When a resource reports activity, its tags appear in Azure Cost Management alongside the usage. You can then filter and analyze costs by tag to see exactly how much each group spends per billing cycle. This improves the accuracy of budgeting and financial reporting.
Managing tags involves adding, editing, and deleting them. A new tag only shows in cost reports after the resource logs activity. Editing a tag changes how future costs are reported, but historical data keeps the old tag. Deleting a tag stops future cost data under that tag, though past data remains viewable. To get accurate cost data, define a consistent naming strategy, apply tags at deployment time, and regularly review tag-based cost analysis in Azure Cost Management.
Tags help you categorize resources by criteria such as environment (Development, Testing, Production), department (Finance, Marketing, IT), or project. By grouping related assets with tags, you can see their combined costs in Azure Cost Management and filter resources in the Azure portal. This makes it easy to identify who owns a resource and why it exists.
When applying tags through the portal, PowerShell, or CLI, remember that new or updated tags only appear in cost reports after the resource logs activity. Editing a tag changes how future costs are reported; deleting a tag stops future reporting under that tag. Keep tag names and values consistent—even small typos cause missing data. Maintain a record of tag changes and apply updates across all resources to ensure accurate cost reporting and reliable resource organization.
A solid tagging strategy starts with consistent naming conventions. Common patterns include DeptName-WorkloadName for core workloads, Env for environment identifiers like Dev, Test, Prod, and SharedServices-Service for shared infrastructure. Clear, predictable tags improve automation and readability.
Automation helps maintain tag accuracy and relevance. Use Azure Policy for real-time compliance and automatic remediation, Azure CLI or PowerShell scripts for bulk updates, and infrastructure-as-code tools such as Bicep and Terraform to apply tags at deployment. Tag inheritance in Microsoft Cost Management extends tags from subscriptions and resource groups down to child resources, improving cost allocation without manual tagging on every resource. Regular audits and reviews—at least annually—ensure tags remain relevant. Combine audits with automated alerts and cost allocation rules to keep your tagging strategy aligned with business objectives.
A process flow showing how resource tags and usage data flow into Azure Cost Management, where tag inheritance and filtering enable grouped cost analysis and reporting.
Prepare and test your skills

Prepare and test your skills

Tags in Azure are metadata elements attached to resources, each consisting of a key-value pair of text, such as Environment: Production. They can be created and managed through the Azure portal, Azure CLI, or PowerShell.
Tags appear in Azure Cost Management when a tagged resource reports usage, allowing you to filter and group costs by tag to see spending by department, environment, or project. Tags only appear in cost reports after the resource has active usage, and changes to tags affect only new usage data.
Azure Policy can enforce tagging rules by using the modify effect to add missing tags when a resource is created or updated, and it can remediate existing non-compliant resources in bulk. This helps ensure consistent governance and compliance with internal and external standards.
Best practices include using consistent naming conventions such as DeptName-WorkloadName or Env for environment identifiers, automating tag application with Azure Policy, CLI, PowerShell, or infrastructure-as-code tools like Bicep and Terraform, leveraging tag inheritance in Microsoft Cost Management, and conducting regular audits at least annually to keep tags relevant.
An organization has deployed multiple virtual machines, virtual networks, and storage accounts across a single Azure subscription. The finance and operations teams need a way to categorize these resources by department and environment (such as Department: Finance and Environment: Production) to accurately track spending and filter cost reports.
Which Azure feature should the organization use to add this metadata to their resources?