AI Skill
Official
Pass
Audit score 90

azure-cost

microsoft/azure-skills

Query Azure costs, forecast spending, and optimize to reduce waste.

What is azure-cost?

Azure cost management skill enables querying historical costs, projecting future spending, and identifying optimization opportunities across subscriptions, resource groups, and management groups. Use it when analyzing Azure bills, investigating cost spikes, or finding resources to rightsize or remove.

  • Query historical costs across subscriptions, resource groups, management groups, or 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 orphaned resources and rightsizing candidates

How to install azure-cost

npx skills add https://github.com/microsoft/azure-skills --skill azure-cost
Prerequisites
  • Azure subscription with Cost Management Reader, Monitoring Reader, and Reader roles assigned
  • Access to the target scope (subscription, resource group, management group, or billing account)
Claude Code
Cursor
Windsurf
Cline

How to use azure-cost

  1. 1.Install the skill using the provided npm command
  2. 2.Identify the Azure scope (subscription ID, resource group name, or management group ID) you want to analyze
  3. 3.Choose a workflow: Cost Query for current costs, Cost Forecast for projections, or Cost Optimization for waste reduction
  4. 4.Provide relevant filters (time period, service type, resource group) to narrow results
  5. 5.Review the cost breakdown or optimization recommendations returned

Use cases

Good for
  • Analyze a monthly Azure bill and break down costs by service or resource group
  • Forecast next quarter's spending to plan budget allocation
  • Find and eliminate orphaned or underutilized resources to reduce waste
  • Investigate unexpected cost spikes and identify root causes
  • Optimize storage or VM sizing to lower monthly expenses
Who it's for
  • Cloud cost analysts
  • DevOps engineers managing Azure infrastructure
  • Finance teams reviewing cloud spending
  • Platform engineers optimizing resource utilization

azure-cost FAQ

What Azure roles do I need to use this skill?

You need Cost Management Reader, Monitoring Reader, and Reader roles assigned on the target scope (subscription, resource group, management group, or billing account).

Can I query costs across multiple subscriptions at once?

Yes, you can query at the management group or billing account scope to analyze costs across multiple subscriptions.

What time periods can I query?

The skill supports querying historical costs and forecasting future spending; specific date range options are available through the Cost Query and Cost Forecast workflows.

Can this skill help me deploy or provision resources?

No, this skill is for cost analysis and optimization only. Do not use it for deploying resources, provisioning, diagnostics, or security audits.

Does it support service-specific optimization?

Yes, the skill includes optimization guidance for Azure Cache for Redis and Azure Storage, with extensibility for other services.

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.2.2"

Azure Cost Management Skill

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

Routing

User IntentWorkflow
Understand current costsCost Query
Reduce costs / find wasteCost Optimization
Project future costsCost Forecast

Quick Reference

PropertyValue
Query APIPOST {scope}/providers/Microsoft.CostManagement/query?api-version=2023-11-01
Forecast APIPOST {scope}/providers/Microsoft.CostManagement/forecast?api-version=2023-11-01
Required RoleCost 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