# cost-analysis

> Claude/Codex skill by [@microsoft](https://omgskills.com/library/microsoft/index.md) · 1.6k stars · 363k installs · Updated 2026-10-09

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.

Tags: agent-skills

## Install

```sh
git clone https://github.com/microsoft/azure-skills /tmp/azure-skills && ln -s /tmp/azure-skills/.github/plugins/azure-cost/skills/cost-analysis ~/.claude/skills/cost-analysis
```

## From README

Azure Cost Analysis Quick Reference | Intent | Workflow | Primary tools | |--------|----------|---------------| | Query historical spend | Cost query | querycosts | | Explain a spike | Cost investigation | querycosts, Resource Graph | | Analyze AKS spend | AKS cost analysis | queryakscosts, Resource Graph | | Analyze AI service spend | AI cost analysis | querycosts | 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. Workflow Confirm scope, period, currency, and breakdown. Load only the matching workflow above. Never transform MCP results in a shell or interpreter; request tool-side totals, grouping, sorting, or bounded follow-up queries. Respect row limits and label incomplete data. Separate measured cost from inferred causes and recommendations. Error Handling | Error | Action | |-------|--------| | Access denied | Name the required scope and role.

## Links

- HTML page: https://omgskills.com/skills/microsoft/azure-skills/azure-cost/
- GitHub: https://github.com/microsoft/azure-skills
- Author: [@microsoft](https://omgskills.com/library/microsoft/index.md)

## More from this repo

- [airunway-aks-setup](https://omgskills.com/skills/microsoft/azure-skills/airunway-aks-setup/index.md) — Set up AI Runway on AKS — from bare cluster to running model.
   - [@microsoft](https://omgskills.com/library/microsoft/index.md) · 1.4k stars
- [azure-hosted-copilot-sdk](https://omgskills.com/skills/microsoft/azure-skills/azure-hosted-copilot-sdk/index.md) — Build, deploy, modify GitHub Copilot SDK apps on Azure.
   - [@microsoft](https://omgskills.com/library/microsoft/index.md) · 850 stars

## More skills by this author

- [launch](https://omgskills.com/skills/microsoft/vscode/launch/index.md) — Launch Code OSS (VS Code from sources) into an isolated throwaway profile with unique debug ports so you can drive it...
   - [@microsoft](https://omgskills.com/library/microsoft/index.md) · 194k stars
