Skip to content

azure-cost

Query historical Azure costs, forecast future spending, and identify optimization opportunities across subscriptions and resource groups.

— (0 ratings) 362.6K downloads microsoft
$ npx skills add https://github.com/microsoft/azure-skills --skill azure-cost

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

Summary

Query historical Azure costs, forecast future spending, and identify optimization opportunities across subscriptions and resource groups.

  • Supports three primary workflows: cost queries with breakdown by service/resource/tag, spending forecasts with configurable time periods, and cost optimization analysis including orphaned resources and VM rightsizing
  • Integrates with Azure Cost Management API (query and forecast endpoints) and Azure Monitor for utilization metrics; includes MCP tools for documentation lookup, CLI command generation, and Azure Quick Review compliance scanning
  • Handles subscription, resource group, management group, and billing account scopes; enforces Cost Management Reader role requirement and includes rate-limit handling (4 requests/minute per scope)
  • Requires actual cost data validation before recommendations; always presents total bill alongside optimization suggestions and includes Azure Portal links for all resources

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)

Installs: 362.6K | GitHub stars: 1.7K | First seen: Apr 2, 2026

Related skills

New

Agent workflows

microsoft-foundry

End-to-end deployment, evaluation, and management of AI agents on Microsoft Foundry.

New • 792.7K
New

Debugging & code review

azure-diagnostics

Systematic diagnosis and remediation for Azure production issues using AppLens, Monitor, and resource health.

New • 783.3K
New

DevOps & cloud

azure-prepare

Prepare Azure applications for deployment with infrastructure-as-code, configuration, and containerization.

New • 782.4K