azure-cost-analysis

Generate Microsoft Cost Management REST queries for Azure cost data.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/eggboy/skills --skill azure-cost-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-cost-analysis
Source: https://github.com/eggboy/skills/tree/main/azure-cost-analysis
Command: npx skills add https://github.com/eggboy/skills --skill azure-cost-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Analyze Azure cost data programmatically using the Microsoft Cost Management REST API to track spending, identify anomalies, and guide optimization.

Core Features & Use Cases

  • Build and run REST cost queries against subscriptions, resource groups, or resources.
  • Analyze ActualCost or AmortizedCost across timeframes and granularities with flexible grouping and filtering.
  • Gain actionable insights for budgeting, governance, and cost optimization across Azure.

Quick Start

Run a sample cost query against your Azure subscription to fetch monthly costs.

Frequently Asked Questions about azure-cost-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Azure cost data using the Cost Management REST API?

To query Azure cost data, you construct and execute REST queries against Microsoft Cost Management, applying filters for subscriptions, resource groups, or resources to retrieve ActualCost or AmortizedCost over a specific timeframe and granularity.

What is the difference between ActualCost and AmortizedCost in Azure spending analysis?

ActualCost reflects charges billed during the selected timeframe, while AmortizedCost spreads reservation and commitment charges across the usage period. You specify either type when building your Azure cost query to match your tracking needs.

Can I filter Azure cost management REST queries by resource group and time granularity?

Yes, you can apply valid dimensions and filters to scope your query by resource group or specific resources, and specify a timeframe and granularity to retrieve precise Azure spending data for budgeting and governance.

How do I handle pagination when retrieving Azure cost data via REST?

The Skill guides you through building and executing queries with proper pagination handling, ensuring you retrieve all relevant Azure cost data across multiple pages of results without missing spending anomalies.

What is the best way to analyze Azure spend for optimization without a UI?

Building REST queries programmatically against Microsoft Cost Management allows you to flexibly group and filter Azure spending data to identify anomalies and gain actionable insights for cost optimization across your subscriptions.

Does querying Azure Cost Management require specific dimensions for filtering?

Yes, the process enforces valid dimensions and filters when constructing REST queries to ensure accurate retrieval of ActualCost or AmortizedCost data from your Azure subscriptions, resource groups, or resources.