Cost management
📘Microsoft Certified: Azure Fundamentals (AZ-900)
1. Introduction to Azure Cost Management
When an organization uses Microsoft Azure, it pays for cloud services such as:
- Virtual Machines (VMs)
- Storage accounts
- Databases
- Networking
- App services
- AI and analytics services
Azure follows a pay-as-you-go model, meaning you pay only for what you use. However, if resources are not monitored properly, costs can increase quickly.
To help organizations monitor, control, and optimize spending, Microsoft provides Azure Cost Management + Billing tools.
For the AZ-900 exam, you must understand:
- What Azure Cost Management is
- What tools are available
- What reports you can generate
- How to analyze and control costs
2. What is Azure Cost Management?
Azure Cost Management is a built-in service that helps you:
- Monitor cloud spending
- Analyze costs
- Set budgets
- Receive alerts
- Optimize resource usage
- Forecast future costs
It helps organizations answer questions like:
- Which department is spending the most?
- Which resource is the most expensive?
- Why did costs increase this month?
- Are we going over budget?
3. Azure Cost Management + Billing
Azure Cost Management is part of Azure Cost Management + Billing in the Azure portal.
It helps you manage:
- Subscriptions
- Invoices
- Payments
- Cost analysis
- Budgets
- Reservations
- Usage reports
You access it from the Azure Portal → Cost Management + Billing.
4. Key Cost Management Tools (Very Important for Exam)
4.1 Cost Analysis
This is the most important tool.
What is Cost Analysis?
Cost Analysis is an interactive reporting tool that allows you to:
- View current and historical costs
- Filter by resource
- Filter by subscription
- Filter by resource group
- Filter by location
- Filter by service
- Group by different categories
What You Can Do
You can:
- See daily, monthly, or yearly spending
- Compare costs over time
- Identify unexpected cost increases
- Break down spending by service
Example (IT Environment)
An organization runs:
- 5 virtual machines
- 1 SQL database
- 3 storage accounts
Using Cost Analysis, they can:
- See which VM costs the most
- See how much storage costs this month
- Identify if a test VM was left running unnecessarily
Key Exam Point
Cost Analysis helps you:
✔ Understand where money is being spent
✔ Analyze usage patterns
✔ Filter and group costs
4.2 Budgets
What is a Budget in Azure?
A budget allows you to:
- Set a spending limit
- Track actual spending against that limit
- Receive alerts when you reach a percentage of the budget
Important:
Budgets do NOT automatically stop services. They only send alerts.
How Budgets Work
You can:
- Set a monthly budget (e.g., $1,000)
- Get alerts at 50%, 80%, or 100%
- Notify specific users or groups
Example (IT Scenario)
A development team has a monthly budget of $500 for test environments.
If they reach:
- 80% ($400) → Azure sends an alert.
- 100% → Another alert is triggered.
This helps avoid unexpected billing surprises.
Key Exam Point
✔ Budgets track spending
✔ Budgets trigger alerts
✘ Budgets do NOT automatically shut down resources
4.3 Cost Alerts
Cost alerts notify you when:
- Spending exceeds a threshold
- Forecasted costs exceed budget
- Usage changes unexpectedly
Alerts help IT teams react quickly.
Example:
If storage usage suddenly increases because large files were uploaded, Azure can notify administrators.
4.4 Forecasting
Azure can predict future costs based on:
- Current usage
- Past usage patterns
This is useful for:
- Planning budgets
- Financial forecasting
- Capacity planning
Example:
If spending is increasing steadily, Azure predicts the end-of-month total.
Key Exam Point
Forecasting helps estimate future spending based on trends.
4.5 Exporting Cost Data
Organizations often need cost data for:
- Finance teams
- Accounting systems
- Reporting tools
Azure allows you to:
- Export cost data to a storage account
- Download reports as CSV files
- Integrate with Power BI
This allows deeper analysis outside Azure.
5. Cost Reports in Azure
Azure provides several important reports.
5.1 Usage Details Report
Shows:
- Resource-level usage
- Service consumption
- Meter usage
- Cost per resource
Useful for:
- Detailed cost breakdown
- Auditing usage
5.2 Invoice Report
Shows:
- Total billed amount
- Taxes
- Discounts
- Previous balance
Used by finance departments.
5.3 Reservations Report
If an organization purchases:
- Reserved Virtual Machine instances
Azure provides reports to show:
- Reservation utilization
- Savings achieved
Key concept:
Reserved instances provide discounted pricing for 1-year or 3-year commitments.
5.4 Savings Plans & Recommendations
Azure provides recommendations such as:
- Purchase Reserved Instances
- Resize underutilized VMs
- Delete unused disks
- Shut down idle resources
These are shown under:
- Cost Management
- Azure Advisor (Cost recommendations)
6. Scopes in Cost Management (Important)
Costs can be analyzed at different levels:
- Management group
- Subscription
- Resource group
- Resource
This allows organizations to:
- Track costs by department
- Track costs by project
- Track costs by environment (Dev, Test, Production)
Example:
A company has:
- Subscription A → Production
- Subscription B → Development
Cost Management can show spending separately.
7. Azure Pricing Tools (Also Exam Relevant)
Although slightly separate, these are related to cost planning.
7.1 Azure Pricing Calculator
Used before deployment.
Helps estimate:
- VM costs
- Storage costs
- Bandwidth costs
Used during planning phase.
7.2 Azure Total Cost of Ownership (TCO) Calculator
Used to compare:
- On-premises infrastructure costs
vs - Azure cloud costs
Helps in migration decisions.
8. Tags and Cost Management (Very Important)
Tags are labels applied to resources.
Example tags:
- Department: HR
- Project: WebsiteUpgrade
- Environment: Production
Cost Management can group costs by tag.
This helps:
- Track departmental spending
- Allocate costs internally
- Improve financial reporting
Exam tip:
Tags help organize and analyze costs.
9. Best Practices for Managing Costs
For the AZ-900 exam, understand these best practices:
✔ Monitor costs regularly
✔ Use budgets and alerts
✔ Delete unused resources
✔ Resize over-provisioned VMs
✔ Use reserved instances when appropriate
✔ Apply tags consistently
✔ Review cost analysis reports frequently
10. Common AZ-900 Exam Scenarios
You may see questions like:
- Which tool helps analyze spending trends? → Cost Analysis
- Which feature sends alerts when spending exceeds a limit? → Budgets
- Which tool estimates cost before deployment? → Pricing Calculator
- Which tool compares on-premises vs Azure costs? → TCO Calculator
- Do budgets automatically stop services? → No
11. Summary Table
| Feature | Purpose |
|---|---|
| Cost Analysis | Analyze current and past spending |
| Budgets | Set spending limits and get alerts |
| Forecasting | Predict future costs |
| Exports | Download cost data |
| Pricing Calculator | Estimate cost before deployment |
| TCO Calculator | Compare on-prem vs Azure |
| Tags | Organize and track costs |
Final Exam Tips for AZ-900
For this section, remember:
- Azure Cost Management helps monitor and control spending.
- Cost Analysis is the main reporting tool.
- Budgets trigger alerts but do not stop resources.
- Forecasting predicts future spending.
- Tags improve cost tracking.
- Pricing Calculator is for estimation before deployment.
- TCO Calculator compares on-premises vs Azure.
