$npx -y skills add microsoft/azure-skills --skill azure-costAzure 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\", \"cos
| 1 | # Azure Cost Management Skill |
| 2 | |
| 3 | Query historical costs, forecast future spending, optimize to reduce waste. |
| 4 | |
| 5 | ## Routing |
| 6 | |
| 7 | | User Intent | Workflow | |
| 8 | |-------------|----------| |
| 9 | | Understand current costs | [Cost Query](cost-query/workflow.md) | |
| 10 | | Reduce costs / find waste | [Cost Optimization](cost-optimization/workflow.md) | |
| 11 | | Project future costs | [Cost Forecast](cost-forecast/workflow.md) | |
| 12 | |
| 13 | ## Quick Reference |
| 14 | |
| 15 | | Property | Value | |
| 16 | |----------|-------| |
| 17 | | **Query API** | `POST {scope}/providers/Microsoft.CostManagement/query?api-version=2023-11-01` | |
| 18 | | **Forecast API** | `POST {scope}/providers/Microsoft.CostManagement/forecast?api-version=2023-11-01` | |
| 19 | | **Required Role** | Cost Management Reader + Monitoring Reader + Reader (on target scope) | |
| 20 | |
| 21 | ## Scope Patterns |
| 22 | |
| 23 | - Subscription: `/subscriptions/<id>` |
| 24 | - Resource Group: `/subscriptions/<id>/resourceGroups/<name>` |
| 25 | - Management Group: `/providers/Microsoft.Management/managementGroups/<id>` |
| 26 | - Billing Account: `/providers/Microsoft.Billing/billingAccounts/<id>` |
| 27 | |
| 28 | ## Service-Specific Optimization |
| 29 | |
| 30 | - [Redis](cost-optimization/services/redis/azure-cache-for-redis.md) |
| 31 | - [Storage](cost-optimization/services/storage/azure-storage.md) |
| 32 | |
| 33 | ## References |
| 34 | |
| 35 | - [MCP Tools, Best Practices, Safety](references/tools-and-best-practices.md) |
| 36 | - [SDK: Redis .NET](cost-optimization/sdk/azure-resource-manager-redis-dotnet.md) |