3.3 Using Tags for Cost Management and Organization

Key Takeaways

  • Azure resource tags are key-value metadata pairs used to organize resources for cost tracking, automation, and governance.
  • Common tagging strategies include tagging by environment (prod/dev), cost center, project, owner, and compliance classification.
  • Cost Management supports filtering and grouping cost reports by tags, enabling department-level and project-level cost tracking.
  • Tags are NOT inherited from parent resources — use Azure Policy to enforce tagging rules at scale.
  • A consistent tagging strategy is one of the most impactful cost management practices in Azure.
Last updated: March 2026

Using Tags for Cost Management and Organization

Quick Answer: Tags are key-value pairs attached to Azure resources for organization. Use tags to track costs by department, project, environment, or owner. Tags are NOT inherited — enforce tagging with Azure Policy.

Why Tags Matter for Cost Management

Without tags, Azure Cost Management shows spending by resource type, resource group, and subscription. With a consistent tagging strategy, you can also view spending by:

  • Department — How much is Marketing spending vs. Engineering?
  • Project — How much does Project Alpha cost per month?
  • Environment — How much more does production cost than development?
  • Owner — Who owns the most expensive resources?
  • Cost Center — Which cost center should be charged?

Recommended Tagging Strategy

Tag NameExample ValuesPurpose
EnvironmentProduction, Staging, Development, TestIdentify lifecycle stage
CostCenterCC-1001, CC-2002, CC-3003Financial allocation
Ownerjane@company.comResource accountability
ProjectProjectAlpha, ProjectBetaProject-level cost tracking
DepartmentEngineering, Marketing, FinanceDepartment-level reporting
ManagedByTerraform, Manual, ARMTrack deployment method
DataClassificationPublic, Internal, Confidential, RestrictedCompliance labeling
AutoShutdownYes, NoAutomation trigger

Enforcing Tags with Azure Policy

Since tags are not automatically inherited, use Azure Policy to ensure consistent tagging:

PolicyEffectDescription
Require tag on resourcesDenyBlock creation of resources without required tags
Require tag on resource groupsDenyBlock creation of resource groups without required tags
Inherit tag from resource groupModifyAutomatically copy tags from resource group to new resources
Add or replace tag on resourcesModifyAdd a specific tag to all resources

Cost Reports by Tag

In Azure Cost Management, you can:

  1. Filter — Show only resources with a specific tag (e.g., "Department = Engineering")
  2. Group — Group costs by tag name to compare (e.g., group by "Project" to see per-project spend)
  3. Budget alerts — Create budgets scoped to tagged resources
  4. Export — Export tagged cost data for external reporting

On the Exam: Tags enable granular cost tracking that subscriptions and resource groups alone cannot provide. Remember: tags are NOT inherited, max 50 tags per resource, and tag names are case-sensitive.

Test Your Knowledge

What is the maximum number of tags that can be applied to a single Azure resource?

A
B
C
D
Test Your Knowledge

A company wants to track Azure costs by department. Which approach should they use?

A
B
C
D