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 从公开仓库中收录这些内容。

举报或申请下架