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 從公開儲存庫中收錄這些內容。

檢舉或申請下架