Cost management
📘Microsoft Certified: Azure Fundamentals (AZ-900)
This topic is very important for the AZ-900 exam. You must understand:
- What resource tags are
- Why they are used
- How they help in cost tracking
- How they are applied
- How they work with Azure Cost Management
- Governance and best practices
Everything below is explained in simple English so both IT and non-IT learners can understand.
1. What is Resource Tagging in Azure?
A tag in Azure is a name-value pair that you assign to a resource.
It works like a label.
Format of a tag:
Tag Name : Tag Value
Example:
Department : Finance
Environment : Production
Project : WebsiteUpgrade
Owner : AdminTeam
A tag does NOT change how the resource works.
It is only used for organization, management, and cost tracking.
2. What is an Azure Resource?
A resource is any service you create in Azure, such as:
- Virtual Machines (VMs)
- Storage Accounts
- Azure SQL Databases
- App Services
- Virtual Networks
- Load Balancers
Each of these resources generates cost.
If you create many resources, it becomes difficult to understand:
- Who owns what
- Which department is using it
- Which project it belongs to
- Which environment it is running in
- How much each team is spending
This is where resource tagging helps.
3. Why Resource Tagging is Important for Cost Management
In real IT environments:
- A company may have multiple departments
- Multiple applications
- Multiple development teams
- Multiple environments (Dev, Test, Production)
All resources are billed together in the Azure subscription.
Without tagging:
- Costs appear as one large total amount
- It is difficult to divide costs properly
- Finance teams cannot charge departments accurately
With tagging:
- You can group and filter resources
- You can track cost by department, project, or environment
- You can generate cost reports based on tags
- You can improve budgeting and accountability
4. Common Tagging Examples in IT Environments
Here are realistic IT examples:
| Tag Name | Example Value | Purpose |
|---|---|---|
| Department | HR | Track HR costs |
| Project | PayrollSystem | Track payroll project expenses |
| Environment | Development | Separate Dev vs Production costs |
| Owner | JohnSmith | Identify resource owner |
| CostCenter | CC-1001 | Used by finance for billing |
| Application | CRM-App | Track application spending |
For example:
If a company runs:
- 50 Virtual Machines
- 10 SQL Databases
- 15 Storage Accounts
Tagging allows the company to answer:
- How much does the CRM application cost per month?
- How much is spent on Development environment?
- How much does the Finance department spend?
This is critical for cost tracking.
5. How Tags Help in Azure Cost Management
Azure Cost Management allows you to:
- View total costs
- Filter costs
- Group costs
- Export cost reports
When resources are tagged, you can:
Group costs by tag
For example:
- Group by Department
- Group by Environment
- Group by Project
Filter costs by tag
For example:
- Show only Production resources
- Show only HR department resources
- Show only CRM project resources
This makes cost analysis easier and more accurate.
6. How Tags Are Applied
Tags can be applied:
- During resource creation
- After the resource is created
- At the resource group level
Important Exam Point:
Tags applied to a resource group do NOT automatically apply to resources inside it.
You must apply tags directly to resources, or use Azure Policy to enforce tagging.
7. Tag Limits (Important for Exam)
You should remember:
- Each resource or resource group can have up to 50 tags
- Tag names are case-insensitive
- Tag values are case-sensitive
- Tag names can have up to 512 characters
- Tag values can have up to 256 characters
AZ-900 may test basic limits like the number of tags per resource.
8. Resource Tags vs Resource Groups
Students often confuse these two.
Resource Group
- Logical container for resources
- Used to manage lifecycle
- Used for deployment and access control
Tags
- Metadata labels
- Used for cost tracking and organization
- Do not control lifecycle
You can have:
- Multiple tags on a single resource
- Same tag across many resources
9. Governance and Tagging Strategy
In large IT environments, companies create a tagging policy.
This ensures:
- Every resource must have:
- Department
- Environment
- CostCenter
- Naming standards are consistent
- No resource is left untagged
To enforce this, Azure provides:
Azure Policy
Azure Policy can:
- Require specific tags
- Deny resource creation if tags are missing
- Automatically add tags
This helps maintain governance and cost control.
10. Real IT Scenario Example
Consider an organization running:
- Web application
- Backend API
- SQL database
- Storage
- Virtual machines for testing
If everything runs under one subscription without tags:
Finance sees:
Total Monthly Azure Cost: $25,000
They cannot tell:
- Which application is expensive
- Which department owns the cost
- Whether Dev environment is wasting money
After tagging:
They can see:
- Production Environment: $15,000
- Development Environment: $6,000
- Testing Environment: $4,000
Or:
- Sales Department: $10,000
- HR Department: $5,000
- IT Department: $10,000
Now cost tracking becomes accurate.
11. Benefits of Resource Tagging
For the AZ-900 exam, remember these benefits:
- Better cost visibility
- Improved budgeting
- Accurate cost allocation
- Better reporting
- Easier resource organization
- Improved governance
- Helps with automation
12. Key Exam Points to Remember
You should clearly understand:
✔ Tags are name-value pairs
✔ Used for cost tracking and organization
✔ Do not affect resource functionality
✔ Can be used in Azure Cost Management
✔ Azure Policy can enforce tagging
✔ Maximum 50 tags per resource
✔ Tags do not automatically inherit from resource groups
These are common exam areas.
13. Difference Between Cost Management Tools and Tags
Tags are not cost tools themselves.
They work together with:
- Azure Cost Management + Billing
- Budgets
- Alerts
- Reports
- Exports
Tags make cost reports more meaningful.
14. Summary (For Quick Revision)
Resource tagging in Azure:
- Helps track and organize costs
- Uses name-value pairs
- Can be applied to resources and resource groups
- Helps filter and group cost data
- Supports financial accountability
- Is enforced using Azure Policy
- Does not automatically inherit
- Is essential for cost management strategy
Final Exam Advice
For AZ-900, you should be able to answer:
- What are Azure resource tags?
- How do tags help with cost tracking?
- Can tags be used in cost reports?
- Do tags inherit automatically?
- How can tagging be enforced?
If you understand these clearly, you will confidently answer any tagging-related question on the exam.
