skill

Cost Analysis

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.

Microsoft0+ installsVetted

About

# Azure Cost Analysis

## Quick Reference

| Intent | Workflow | Primary tools | |--------|----------|---------------| | Query historical spend | [Cost query](references/cost-query/workflow.md) | `query_costs` | | Explain a spike | [Cost investigation](references/cost-investigation.md) | `query_costs`, Resource Graph | | Analyze AKS spend | [AKS cost analysis](references/aks-cost-analysis.md) | `query_aks_costs`, Resource Graph | | Analyze AI service spend | [AI cost analysis](references/ai-cost-analysis.md) | `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](references/tools-and-safety.md).

## 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

| Error | Action | |-------|--------| | Access denied | Name the required scope and role. | | Empty result | Distinguish no data from unavailable data. | | Multiple currencies | Report each currency separately. | | Server error | Retry once; then stop with the trace ID. |

Install

Run this command

git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/.github/plugins/azure-cost/skills/cost-analysis ~/.claude/skills/

Works with

claude appclaude codeclaude apicursorcodexwindsurfclinezed

Manual steps

Clone the repository and copy the `.github/plugins/azure-cost/skills/cost-analysis` folder into your Claude skills directory. Compatible with Claude Code, Cursor, Codex, and any Agent Skills-compatible agent.

View source
License: MITBy Microsoft

Frequently asked questions

What is the Cost Analysis skill?

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.

How do I install Cost Analysis?

Run this in your terminal:

git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/.github/plugins/azure-cost/skills/cost-analysis ~/.claude/skills/
Which AI tools does Cost Analysis work with?

It works with claude_app, claude_code, claude_api, cursor, codex, windsurf, cline, zed.

Who made Cost Analysis?

Microsoft, released under the MIT license.

Is Cost Analysis free?

Yes, it is free to use under the MIT license.

Related assets

More curated picks in Finance & Accounting.

All Cost Analysis alternatives →
skillclaude_appclaude_codeclaude_api
git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/skills/azure-compute ~/.claude/skills/
Azure Compute
Azure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, li…0+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/skills/azure-app-onboard ~/.claude/skills/
Azure App Onboard
End-to-end orchestrator: from a business idea, app idea, or existing app to running Azure deployment with cost estimates and pre-deploy approval. Anal…0+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/skills/azure-resource-lookup ~/.claude/skills/
Azure Resource Lookup
List, find, and show Azure resources across subscriptions or resource groups. Handles prompts like "list the websites in my subscription", "list my we…0+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/.github/plugins/azure-cost/skills/cost-governance ~/.claude/skills/
Cost Governance
Govern Azure costs with budgets, alerts, tags, and policy restrictions. WHEN: "Azure budget health", "configured budget overrun", "list Azure budgets"…0+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/.github/plugins/azure-cost/skills/cost-estimation ~/.claude/skills/
Cost Estimation
Forecast Azure spend and price planned resources or workloads. WHEN: "forecast Azure spending", "project next month cost", "compare forecast to my pla…0+
skillclaude
Generates professional PDF invoices with line items, tax, totals, branding.
Invoice Generator Skill
Generates professional PDF invoices with line items, tax, totals, branding.0+

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Finance & Accounting