azure-cost

作者: microsoft

统一Azure成本管理:查询历史成本、预测未来支出并优化以减少浪费。适用场景:“Azure成本”、“Azure支出”、……

npx skills add https://github.com/microsoft/azure-skills --skill azure-cost

Azure Cost Management Skill

Query historical costs, forecast future spending, optimize to reduce waste.

Routing

User IntentWorkflow
Understand current costsCost Query
Reduce costs / find wasteCost Optimization
Project future costsCost Forecast

Quick Reference

PropertyValue
Query APIPOST {scope}/providers/Microsoft.CostManagement/query?api-version=2023-11-01
Forecast APIPOST {scope}/providers/Microsoft.CostManagement/forecast?api-version=2023-11-01
Required RoleCost 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