> **azure-cost** — chapter 13 of 37 in [microsoft/azure-skills](https://skillsdocs.com/microsoft/azure-skills).
>
> Book (all chapters, one file): https://skillsdocs.com/microsoft/azure-skills.md
> Machine manifest: https://skillsdocs.com/microsoft/azure-skills/.well-known/agent-skills/index.json
> Install the book: `npx skills add microsoft/azure-skills`
> Upstream: https://github.com/microsoft/azure-skills/blob/main/skills/azure-cost/SKILL.md @ `main`
> Raw bytes, no header: https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/SKILL.md
> Base for relative paths: https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/
> Licence: MIT — https://spdx.org/licenses/MIT.html
>
> Bundled files (22), referenced from this skill's directory:
>   - `cost-forecast/error-handling.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-forecast/error-handling.md
>   - `cost-forecast/examples.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-forecast/examples.md
>   - `cost-forecast/guardrails.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-forecast/guardrails.md
>   - `cost-forecast/request-body-schema.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-forecast/request-body-schema.md
>   - `cost-forecast/workflow.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-forecast/workflow.md
>   - `cost-optimization/auth-best-practices.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-optimization/auth-best-practices.md
>   - `cost-optimization/azure-aks-anomalies.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-optimization/azure-aks-anomalies.md
>   - `cost-optimization/azure-aks-cost-addon.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-optimization/azure-aks-cost-addon.md
>   - `cost-optimization/azure-quick-review.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-optimization/azure-quick-review.md
>   - `cost-optimization/azure-resource-graph.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-optimization/azure-resource-graph.md
>   - `cost-optimization/report-template.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-optimization/report-template.md
>   - `cost-optimization/sdk/azure-resource-manager-redis-dotnet.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-optimization/sdk/azure-resource-manager-redis-dotnet.md
>   - `cost-optimization/services/redis/azure-cache-for-redis.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-optimization/services/redis/azure-cache-for-redis.md
>   - `cost-optimization/services/storage/azure-storage.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-optimization/services/storage/azure-storage.md
>   - `cost-optimization/workflow.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-optimization/workflow.md
>   - `cost-query/dimensions-by-scope.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-query/dimensions-by-scope.md
>   - `cost-query/error-handling.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-query/error-handling.md
>   - `cost-query/examples.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-query/examples.md
>   - `cost-query/guardrails.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-query/guardrails.md
>   - `cost-query/request-body-schema.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-query/request-body-schema.md
>   - `cost-query/workflow.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/cost-query/workflow.md
>   - `references/tools-and-best-practices.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/skills/azure-cost/references/tools-and-best-practices.md
>
> Content © its authors, served unmodified. Takedown: https://github.com/kyleledbetter/skillsdocs/issues/new?labels=takedown&title=Takedown+request

<!-- Verbatim upstream SKILL.md follows, YAML frontmatter included. -->

---
name: azure-cost
description: "Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: \"Azure costs\", \"Azure bill\", \"cost breakdown\", \"how much am I spending\", \"forecast spending\", \"optimize costs\", \"reduce spending\", \"orphaned resources\", \"rightsize VMs\", \"cost spike\", \"reduce storage costs\", \"AKS cost\". DO NOT USE FOR: deploying resources, provisioning, diagnostics, or security audits."
license: MIT
metadata:
  author: Microsoft
  version: "1.3.1"
---

# Azure Cost Management Skill

Query historical costs, forecast future spending, optimize to reduce waste.

## Routing

| User Intent | Workflow |
|-------------|----------|
| Understand current costs | [Cost Query](cost-query/workflow.md) |
| Reduce costs / find waste | [Cost Optimization](cost-optimization/workflow.md) |
| Project future costs | [Cost Forecast](cost-forecast/workflow.md) |

## Quick Reference

| Property | Value |
|----------|-------|
| **Query API** | `POST {scope}/providers/Microsoft.CostManagement/query?api-version=2023-11-01` |
| **Forecast API** | `POST {scope}/providers/Microsoft.CostManagement/forecast?api-version=2023-11-01` |
| **Required Role** | Cost Management Reader + Monitoring Reader + Reader (on target scope) |

## Scope Patterns

- Subscription: `/subscriptions/<id>`
- Resource Group: `/subscriptions/<id>/resourceGroups/<name>`
- Management Group: `/providers/Microsoft.Management/managementGroups/<id>`
- Billing Account: `/providers/Microsoft.Billing/billingAccounts/<id>`

## Service-Specific Optimization

- [Redis](cost-optimization/services/redis/azure-cache-for-redis.md)
- [Storage](cost-optimization/services/storage/azure-storage.md)

## References

- [MCP Tools, Best Practices, Safety](references/tools-and-best-practices.md)
- [SDK: Redis .NET](cost-optimization/sdk/azure-resource-manager-redis-dotnet.md)
