About azure-cost
azure-cost is a skill for querying historical Azure costs, forecasting future spending, and finding ways to reduce waste. It organizes work into cost queries, optimization, and forecasts, with specific optimization areas for Redis and Storage.
Key features
- 01Query historical costs
- 02Forecast future spending
- 03Identify cost waste
- 04Optimize Redis and Storage
Use cases
- 01Review current Azure costs
- 02Find resources to reduce spending
- 03Project future Azure expenses
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ microsoft/ azure-skills --skill azure-costAfter installing, type/azure-costin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
cost-forecast/error-handling.mdexamples.mdguardrails.mdrequest-body-schema.mdworkflow.mdcost-optimization/auth-best-practices.mdazure-aks-anomalies.mdazure-aks-cost-addon.mdazure-quick-review.mdazure-resource-graph.mdreport-template.mdworkflow.mdcost-optimization/sdk/azure-resource-manager-redis-dotnet.mdcost-optimization/services/redis/azure-cache-for-redis.mdcost-optimization/services/storage/azure-storage.mdcost-query/dimensions-by-scope.mderror-handling.mdexamples.mdguardrails.mdrequest-body-schema.mdworkflow.mdreferences/tools-and-best-practices.mdDetails
From the project READMEAzure 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
Comments
Markdown supported