Cost Analysis

作者 microsoft354361d83247MIT收錄於 2026年10月8日更新於 2026年10月8日

Analyze actual Azure spend, bill changes, and AKS or AI costs. WHEN: "Azure cost breakdown", "most expensive resources", "why did my bill increase", "cost spike", "unexpected charge", "Cosmos DB charges", "Foundry model costs", "AKS cluster cost", "namespace cost", "enable AKS cost analysis", "idle AKS capacity". DO NOT USE FOR: forecasts, pricing estimates, rightsizing, commitments, or budgets.

AI 產生的概覽

使用成本查詢與 Resource Graph 工具分析 Azure 實際支出、帳單變化以及 AKS 或 AI 服務成本。

功能
引導代理查詢歷史 Azure 支出、調查帳單暴增與非預期費用,並分攤 AKS 叢集與 AI 服務的成本。它會把每種意圖導向對應的參考工作流程,並定義存取遭拒、結果為空與多幣別等情況的錯誤處理。產出為成本明細與說明,並將實測成本與推斷原因分開。
適用情境
適用於有人詢問 Azure 成本明細、最昂貴的資源、帳單增加或成本暴增,或 AKS 命名空間與叢集成本時。不適用於預測、價格估算、規模調整、承諾用量或預算。
執行需求
需要具備相應範圍與角色權限的 Azure 成本查詢與 Resource Graph MCP 工具存取權。僅為指示文件,未隨附指令碼。

Azure Cost Analysis

Quick Reference

IntentWorkflowPrimary tools
Query historical spendCost query [blocked]query_costs
Explain a spikeCost investigation [blocked]query_costs, Resource Graph
Analyze AKS spendAKS cost analysis [blocked]query_aks_costs, Resource Graph
Analyze AI service spendAI cost analysis [blocked]query_costs

When to Use This Skill

Use for spend, anomalies, and AKS or AI allocation.

MCP Tools

Use cost tools and Resource Graph first. If an operation is unavailable, follow fallback and safety [blocked].

Workflow

  1. Confirm scope, period, currency, and breakdown.
  2. Load only the matching workflow above.
  3. Never transform MCP results in a shell or interpreter; request tool-side totals, grouping, sorting, or bounded follow-up queries.
  4. Respect row limits and label incomplete data.
  5. Separate measured cost from inferred causes and recommendations.

Error Handling

ErrorAction
Access deniedName the required scope and role.
Empty resultDistinguish no data from unavailable data.
Multiple currenciesReport each currency separately.
Server errorRetry once; then stop with the trace ID.

來源與署名

來源:microsoft/skills位於.github/plugins/azure-cost/skills/cost-analysis提交354361d

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架