Azure Cost
Published by microsoft in azure-skills
What this skill does
It guides an agent to query Azure spending, forecast future costs, and look for waste. Users get clearer cost breakdowns and practical ways to reduce or plan cloud spending. Best for Teams managing Azure subscriptions that need to understand, forecast, or reduce cloud costs.
Add Azure Cost to your agent
Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.
Install with a prompt
Paste this into a compatible coding agent:
add this skill "azure-cost" from https://github.com/microsoft/azure-skillsInstall with the CLI
Run this command in a controlled environment after reviewing the repository:
npx skills add https://github.com/microsoft/azure-skills --skill azure-costSkill instructions
Azure Cost Management Skill
Query historical costs, forecast future spending, optimize to reduce waste.
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
References
Files included
- cost-forecast/error-handling.md
- cost-forecast/examples.md
- cost-forecast/guardrails.md
- cost-forecast/request-body-schema.md
- cost-forecast/workflow.md
- cost-optimization/auth-best-practices.md
- cost-optimization/azure-aks-anomalies.md
- cost-optimization/azure-aks-cost-addon.md
- cost-optimization/azure-quick-review.md
- cost-optimization/azure-resource-graph.md
- cost-optimization/report-template.md
- cost-optimization/sdk/azure-resource-manager-redis-dotnet.md
- cost-optimization/services/redis/azure-cache-for-redis.md
- cost-optimization/services/storage/azure-storage.md
- cost-optimization/workflow.md
- cost-query/dimensions-by-scope.md
- cost-query/error-handling.md
- cost-query/examples.md
- cost-query/guardrails.md
- cost-query/request-body-schema.md
- cost-query/workflow.md
- references/tools-and-best-practices.md
- SKILL.md

