Azure Cost Management Skill
Query historical costs, forecast future spending, optimize to reduce waste.
When to invoke
- "How much am I spending on Azure this month?"
- "Give me a cost breakdown by resource group."
- "Forecast next quarter Azure spending."
- "Find waste and reduce our Azure bill."
Routing
| User Intent | Workflow |
|---|---|
| Understand current costs | Cost Query |
| Reduce costs / find waste | Cost Optimization |
| Project future costs | Cost Forecast |
Quick Reference
| Property | Value |
|---|---|
| Query API | POST {scope}/providers/Microsoft.CostManagement/query?api-version=2023-11-01 |
| Forecast API | POST {scope}/providers/Microsoft.CostManagement/forecast?api-version=2023-11-01 |
| Required Role | Cost Management Reader + Monitoring Reader + Reader (on target scope) |
Scope Patterns
- Subscription:
/subscriptions/<id> - Resource Group:
/subscriptions/<id>/resourceGroups/<name> - Management Group:
/providers/Microsoft.Management/managementGroups/<id> - Billing Account:
/providers/Microsoft.Billing/billingAccounts/<id>
Service-Specific Optimization
- Redis
- Storage
References
- MCP Tools, Best Practices, Safety
- SDK: Redis .NET
Output template
## Cost analysis result
**Status:** reported | forecast | optimized
**Summary:** <one sentence covering scope and outcome>
### Details
Spend breakdown, forecast, or savings actions with amounts and scope.
### Validation
- <check performed>: <result and evidence>
Quality gate
- Every figure came from a cost or pricing query, never an estimate from memory.
- The scope, currency, and time range are stated explicitly.
- The output follows
## Output templateexactly. - Every reported check was performed and its evidence is shown.
- Irreversible Azure actions were confirmed with the user first.