Agent Skills
› microsoft/azure-skills
› azure-cost
azure-cost
GitHub用于查询Azure历史成本、预测未来支出及优化资源以降低成本。支持订阅、资源组等范围的成本分析,提供Redis和存储等服务的优化建议,明确排除部署和安全审计场景。
Trigger Scenarios
查询Azure账单或成本明细
预测未来花费
优化成本以减少浪费
查找孤立资源或调整VM大小
分析成本激增
Install
npx skills add microsoft/azure-skills --skill azure-cost -g -y
SKILL.md
Frontmatter
{
"name": "azure-cost",
"license": "MIT",
"metadata": {
"author": "Microsoft",
"version": "1.3.1"
},
"description": "Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: \"Azure costs\", \"Azure bill\", \"cost breakdown\", \"how much am I spending\", \"forecast spending\", \"optimize costs\", \"reduce spending\", \"orphaned resources\", \"rightsize VMs\", \"cost spike\", \"reduce storage costs\", \"AKS cost\". DO NOT USE FOR: deploying resources, provisioning, diagnostics, or security audits."
}
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
Version History
- ea76537 Current 2026-08-20 03:56
- 013b97d 2026-07-25 09:44


