azure-cost
microsoft/azure-skills
Query Azure costs, forecast spending, and optimize resource usage to reduce waste.
What is azure-cost?
Azure cost management skill for querying historical costs, projecting future spending, and identifying optimization opportunities. Use when analyzing Azure bills, understanding cost breakdowns, forecasting expenses, or finding ways to reduce spending through resource optimization.
- Query historical costs across subscriptions, resource groups, management groups, and billing accounts
- Forecast future Azure spending based on current usage trends
- Identify cost optimization opportunities and waste reduction strategies
- Analyze service-specific costs (Redis, Storage, AKS, VMs)
- Detect cost spikes and orphaned resources
- Provide rightsizing recommendations for virtual machines
How to install azure-cost
npx skills add https://github.com/microsoft/azure-skills --skill azure-cost- Azure subscription with appropriate permissions (Cost Management Reader, Monitoring Reader, Reader roles)
- Access to the target scope (subscription, resource group, management group, or billing account)
How to use azure-cost
- 1.Install the skill using: npx skills add https://github.com/microsoft/azure-skills --skill azure-cost
- 2.Specify the Azure scope (subscription, resource group, management group, or billing account ID)
- 3.Choose a workflow: Cost Query to understand current costs, Cost Optimization to find waste, or Cost Forecast to project future spending
- 4.Review the results and recommendations for cost reduction opportunities
Use cases
- Analyze monthly Azure bill and understand cost breakdown by service or resource group
- Forecast next quarter's spending to plan budget allocations
- Identify and eliminate orphaned or underutilized resources to reduce waste
- Optimize storage costs by analyzing usage patterns and recommending tier changes
- Right-size virtual machines based on actual CPU and memory utilization
- Cloud cost analysts
- DevOps engineers managing Azure infrastructure
- Finance teams tracking cloud spending
- Platform engineers optimizing resource efficiency
- IT managers reviewing Azure billing
azure-cost FAQ
You need Cost Management Reader, Monitoring Reader, and Reader roles assigned on the target scope (subscription, resource group, management group, or billing account).
Yes, you can query at the management group or billing account scope to analyze costs across multiple subscriptions.
Do not use this skill for deploying resources, provisioning infrastructure, diagnostics, or security audits—it is designed only for cost analysis and optimization.
Yes, it includes optimization workflows for Azure Cache for Redis, Azure Storage, and other services with specific cost-reduction strategies.
Full instructions (SKILL.md)
Source of truth, from microsoft/azure-skills.
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 |
| Reduce costs / find waste | Cost Optimization |
| Project future costs | Cost Forecast |
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
References
Related skills
More from microsoft/azure-skills and the wider catalog.
