Cost Optimization

作者 microsoft354361d83247MIT收录于 2026年10月8日更新于 2026年10月8日

Optimize existing Azure resources and analyze Reservations or Savings Plans. WHEN: "optimize Azure costs", "reduce cloud spending", "rightsize resources", "find idle resources", "orphaned disk", "deleted VM still charged", "public IP still charging", "reservation utilization", "Savings Plan coverage", "commitment recommendation", "why is pay-as-you-go still charged". DO NOT USE FOR: cost spikes, forecasts, pricing estimates, budgets, or governance.

AI 生成的概览

分析 Azure 资源以发现浪费并审查预留或节省计划,提出成本优化建议。

功能
引导代理执行 Azure 成本优化工作流:减少浪费、调整资源规格,以及审查承诺利用率和建议。它依赖成本、Resource Graph 和权益工具,仅产出建议,并区分实测成本、报告节省和定性机会。它不会删除、调整、购买或部署资源。
适用场景
适用于优化 Azure 成本、降低云支出、调整资源规格、查找闲置或孤立资源,或排查已删除虚拟机、未使用公共 IP 产生的费用。也适用于预留利用率、节省计划覆盖率和承诺建议。不适用于成本突增、预测、价格估算、预算或治理。
运行要求
需要具备相应权限的 Azure 成本、Resource Graph 和权益 MCP 工具访问权限;不附带脚本,仅提供参考文档。

Azure Cost Optimization

Quick Reference

IntentWorkflowPrimary tools
Reduce waste or rightsizeOptimization [blocked]Cost and Resource Graph tools
Review commitmentsCommitments [blocked]list_benefit_utilization, list_reservation_transactions, get_benefit_recommendations

When to Use This Skill

Use for waste, rightsizing, and commitments.

MCP Tools

Use cost and Resource Graph tools for optimization and benefit tools for commitments. Validate queries. Fallback: API mappings [blocked].

Workflow

  1. Confirm scope, period, currency, and commitment intent.
  2. Load only the matching workflow above.
  3. Never transform MCP results in a shell or interpreter; request validated server-side projection, aggregation, or bounded follow-up queries.
  4. Separate measured cost, reported savings, and qualitative opportunities.
  5. Recommend changes only; do not delete, resize, purchase, or deploy resources.

Error Handling

ErrorAction
Access deniedName the scope and permission.
Multiple currenciesGroup and report each currency separately.
Missing evidenceState the gap; do not invent values.
Server errorRetry once; then report the trace ID.

来源与署名

来源:microsoft/skills位于.github/plugins/azure-cost/skills/cost-optimization提交354361d

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架