Azure Pricing
GitHubOfficialCreated by anthonychuDistributed by GitHub
- Skill
- Tool integration
- Cloud and DevOps
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The Azure Pricing skill provides a direct interface to the Azure Retail Prices API, enabling users to fetch up-to-date pricing for various Azure services. It supports complex filtering by region, SKU, and price type, and includes specialized logic for estimating Copilot Studio agent credit consumption. The skill helps users compare pricing models—such as pay-as-you-go, reservations, and savings plans—and provides standardized formulas for calculating monthly and annual costs based on specific usage patterns.
What it does
- Fetches real-time retail pricing for Azure services via the public API.
- Supports filtering by service name, region, SKU, and price type.
- Calculates monthly and annual cost estimates for various Azure resources.
- Estimates Copilot Studio agent costs based on interaction volume and feature usage.
- Compares different pricing models like reserved instances and spot pricing.
- Provides structured cost summary tables for clear financial reporting.
When to use it
- When you need to know the cost of a specific Azure service or SKU.
- When comparing pricing across different Azure regions.
- When building a cost estimate for a cloud architecture or workload.
- When calculating the expected monthly credit consumption for a Copilot Studio agent.
- When evaluating the savings potential of reserved instances or savings plans.
Advantages
- Uses official, real-time data from the Azure Retail Prices API.
- Simplifies complex pricing calculations with standardized formulas.
- Provides clear, actionable cost breakdowns for stakeholders.
- Includes specific logic for Copilot Studio credit estimation.
- Reduces manual effort in gathering and normalizing pricing data.
Usage examples
- “How much does a Standard_D4s_v5 VM cost in East US per month?”
- The agent fetches the hourly rate for the specified VM, applies the 730-hour monthly multiplier, and presents a table showing the monthly and annual cost.
- “Estimate the monthly cost for a Copilot Studio agent with 1000 users and 5 interactions each.”
- The agent calculates total sessions, applies the relevant credit rates for knowledge and tool usage, and provides a breakdown of total credits and estimated USD cost.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/github/azure-pricing/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip azure-pricing.zip -d .agents/skills
Documentation by anthonychu
Azure Pricing Skill
Use this skill to retrieve real-time Azure retail pricing data from the public Azure Retail Prices API. No authentication is required.
When to Use This Skill
User asks about the cost of an Azure service (e.g., "How much does a D4s v5 VM cost?")
User wants to compare pricing across regions or SKUs
User needs a cost estimate for a workload or architecture
User mentions Azure pricing, Azure costs, or Azure billing
User asks about reserved instance vs. pay-as-you-go pricing
User wants to know about savings plans or spot pricing
API Endpoint
GET https://prices.azure.com/api/retail/prices?api-version=2023-01-01-previewAppend $filter as a query parameter using OData filter syntax. Always use api-version=2023-01-01-preview to ensure savings plan data is included.
Step-by-step Instructions
If anything is unclear about the user's request, ask clarifying questions to identify the correct filter fields and values before calling the API.
Identify filter fields from the user's request (service name, region, SKU, price type).
Resolve the region: the API requires
armRegionNamevalues in lowercase with no spaces (e.g. "East US" →eastus, "West Europe" →westeurope, "Southeast Asia" →southeastasia). See references/REGIONS.md for a complete list.Build the filter string using the fields below and fetch the URL.
Parse the
Itemsarray from the JSON response. Each item contains price and metadata.Follow pagination via
NextPageLinkif you need more than the first 1000 results (rarely needed).Calculate cost estimates using the formulas in references/COST-ESTIMATOR.md to produce monthly/annual estimates.
Present results in a clear summary table with service, SKU, region, unit price, and monthly/annual estimates.
Filterable Fields
| Field | Type | Example |
|---|---|---|
serviceName | string (exact, case-sensitive) | 'Functions', 'Virtual Machines', 'Storage' |
serviceFamily | string (exact, case-sensitive) | 'Compute', 'Storage', 'Databases', 'AI + Machine Learning' |
armRegionName | string (exact, lowercase) | 'eastus', 'westeurope', 'southeastasia' |
armSkuName | string (exact) | 'Standard_D4s_v5', 'Standard_LRS' |
skuName | string (contains supported) | 'D4s v5' |
priceType | string | 'Consumption', 'Reservation', 'DevTestConsumption' |
meterName | string (contains supported) | 'Spot' |
Use eq for equality, and to combine, and contains(field, 'value') for partial matches.
Example Filter Strings
# All consumption prices for Functions in East US
serviceName eq 'Functions' and armRegionName eq 'eastus' and priceType eq 'Consumption'
# D4s v5 VMs in West Europe (consumption only)
armSkuName eq 'Standard_D4s_v5' and armRegionName eq 'westeurope' and priceType eq 'Consumption'
# All storage prices in a region
serviceName eq 'Storage' and armRegionName eq 'eastus'
# Spot pricing for a specific SKU
armSkuName eq 'Standard_D4s_v5' and contains(meterName, 'Spot') and armRegionName eq 'eastus'
# 1-year reservation pricing
serviceName eq 'Virtual Machines' and priceType eq 'Reservation' and armRegionName eq 'eastus'
# Azure AI / OpenAI pricing (now under Foundry Models)
serviceName eq 'Foundry Models' and armRegionName eq 'eastus' and priceType eq 'Consumption'
# Azure Cosmos DB pricing
serviceName eq 'Azure Cosmos DB' and armRegionName eq 'eastus' and priceType eq 'Consumption'Full Example Fetch URL
https://prices.azure.com/api/retail/prices?api-version=2023-01-01-preview&$filter=serviceName eq 'Functions' and armRegionName eq 'eastus' and priceType eq 'Consumption'URL-encode spaces as %20 and quotes as %27 when constructing the URL.
Key Response Fields
{
"Items": [
{
"retailPrice": 0.000016,
"unitPrice": 0.000016,
"currencyCode": "USD",
"unitOfMeasure": "1 Execution",
"serviceName": "Functions",
"skuName": "Premium",
"armRegionName": "eastus",
"meterName": "vCPU Duration",
"productName": "Functions",
"priceType": "Consumption",
"isPrimaryMeterRegion": true,
"savingsPlan": [
{ "unitPrice": 0.000012, "term": "1 Year" },
{ "unitPrice": 0.000010, "term": "3 Years" }
]
}
],
"NextPageLink": null,
"Count": 1
}Only use items where isPrimaryMeterRegion is true unless the user specifically asks for non-primary meters.
Supported serviceFamily Values
Analytics, Compute, Containers, Data, Databases, Developer Tools, Integration, Internet of Things, Management and Governance, Networking, Security, Storage, Web, AI + Machine Learning
Tips
serviceNamevalues are case-sensitive. When unsure, filter byserviceFamilyfirst to discover validserviceNamevalues in the results.If results are empty, try broadening the filter (e.g., remove
priceTypeor region constraints first).Prices are always in USD unless
currencyCodeis specified in the request.For savings plan prices, look for the
savingsPlanarray on each item (only in2023-01-01-preview).See references/SERVICE-NAMES.md for a catalog of common service names and their correct casing.
See references/COST-ESTIMATOR.md for cost estimation formulas and patterns.
See references/COPILOT-STUDIO-RATES.md for Copilot Studio billing rates and estimation formulas.
Troubleshooting
| Issue | Solution |
|---|---|
| Empty results | Broaden the filter — remove priceType or armRegionName first |
| Wrong service name | Use serviceFamily filter to discover valid serviceName values |
| Missing savings plan data | Ensure api-version=2023-01-01-preview is in the URL |
| URL errors | Check URL encoding — spaces as %20, quotes as %27 |
| Too many results | Add more filter fields (region, SKU, priceType) to narrow down |
Copilot Studio Agent Usage Estimation
Use this section when the user asks about Copilot Studio pricing, Copilot Credits, or agent usage costs.
When to Use This Section
User asks about Copilot Studio pricing or costs
User asks about Copilot Credits or agent credit consumption
User wants to estimate monthly costs for a Copilot Studio agent
User mentions agent usage estimation or the Copilot Studio estimator
User asks how much an agent will cost to run
Key Facts
1 Copilot Credit = $0.01 USD
Credits are pooled across the entire tenant
Employee-facing agents with M365 Copilot licensed users get classic answers, generative answers, and tenant graph grounding at zero cost
Overage enforcement triggers at 125% of prepaid capacity
Step-by-step Estimation
Gather inputs from the user: agent type (employee/customer), number of users, interactions/month, knowledge %, tenant graph %, tool usage per session.
Fetch live billing rates — use the built-in web fetch tool to download the latest rates from the source URLs listed below. This ensures the estimate always uses the most current Microsoft pricing.
Parse the fetched content to extract the current billing rates table (credits per feature type).
Calculate the estimate using the rates and formulas from the fetched content:
total_sessions = users × interactions_per_monthKnowledge credits: apply tenant graph grounding rate, generative answer rate, and classic answer rate
Agent tools credits: apply agent action rate per tool call
Agent flow credits: apply flow rate per 100 actions
Prompt modifier credits: apply basic/standard/premium rates per 10 responses
Present results in a clear table with breakdown by category, total credits, and estimated USD cost.
Source URLs to Fetch
When answering Copilot Studio pricing questions, fetch the latest content from these URLs to use as context:
| URL | Content |
|---|---|
| https://learn.microsoft.com/en-us/microsoft-copilot-studio/requirements-messages-management | Billing rates table, billing examples, overage enforcement rules |
| https://learn.microsoft.com/en-us/microsoft-copilot-studio/billing-licensing | Licensing options, M365 Copilot inclusions, prepaid vs pay-as-you-go |
Fetch at least the first URL (billing rates) before calculating. The second URL provides supplementary context for licensing questions.
See references/COPILOT-STUDIO-RATES.md for a cached snapshot of rates, formulas, and billing examples (use as fallback if web fetch is unavailable).
Files
- ATTRIBUTION.mdAdded by AutoGineer934 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md9.3 KiB
- references/COPILOT-STUDIO-RATES.md5.7 KiB
- references/COST-ESTIMATOR.md3.5 KiB
- references/REGIONS.md2.7 KiB
- references/SERVICE-NAMES.md3.7 KiB
references/COST-ESTIMATOR.md
Cost Estimator Reference
Formulas and patterns for converting Azure unit prices into monthly and annual cost estimates.
Standard Time-Based Calculations
Hours per Month
Azure uses 730 hours/month as the standard billing period (365 days × 24 hours / 12 months).
Monthly Cost = Unit Price per Hour × 730
Annual Cost = Monthly Cost × 12Common Multipliers
| Period | Hours | Calculation |
|---|---|---|
| 1 Hour | 1 | Unit price |
| 1 Day | 24 | Unit price × 24 |
| 1 Week | 168 | Unit price × 168 |
| 1 Month | 730 | Unit price × 730 |
| 1 Year | 8,760 | Unit price × 8,760 |
Service-Specific Formulas
Virtual Machines (Compute)
Monthly Cost = hourly price × 730For VMs that run only business hours (8h/day, 22 days/month):
Monthly Cost = hourly price × 176Azure Functions
Execution Cost = price per execution × number of executions
Compute Cost = price per GB-s × (memory in GB × execution time in seconds × number of executions)
Total Monthly = Execution Cost + Compute CostFree grant: 1M executions and 400,000 GB-s per month.
Azure Blob Storage
Storage Cost = price per GB × storage in GB
Transaction Cost = price per 10,000 ops × (operations / 10,000)
Egress Cost = price per GB × egress in GB
Total Monthly = Storage Cost + Transaction Cost + Egress CostAzure Cosmos DB
Provisioned Throughput
Monthly Cost = (RU/s / 100) × price per 100 RU/s × 730Serverless
Monthly Cost = (total RUs consumed / 1,000,000) × price per 1M RUsAzure SQL Database
DTU Model
Monthly Cost = price per DTU × DTUs × 730vCore Model
Monthly Cost = vCore price × vCores × 730 + storage price per GB × storage GBAzure Kubernetes Service (AKS)
Monthly Cost = node VM price × 730 × number of nodesControl plane is free for standard tier.
Azure App Service
Monthly Cost = plan price × 730 (for hourly-priced plans)Or flat monthly price for fixed-tier plans.
Azure OpenAI
Monthly Cost = (input tokens / 1000) × input price per 1K tokens
+ (output tokens / 1000) × output price per 1K tokensReservation vs. Pay-As-You-Go Comparison
When presenting pricing options, always show the comparison:
| Pricing Model | Monthly Cost | Annual Cost | Savings vs. PAYG |
|---------------|-------------|-------------|------------------|
| Pay-As-You-Go | $X | $Y | — |
| 1-Year Reserved | $A | $B | Z% |
| 3-Year Reserved | $C | $D | W% |
| Savings Plan (1yr) | $E | $F | V% |
| Savings Plan (3yr) | $G | $H | U% |
| Spot (if available) | $I | N/A | T% |Savings percentage formula:
Savings % = ((PAYG Price - Reserved Price) / PAYG Price) × 100Cost Summary Table Template
Always present results in this format:
| Service | SKU | Region | Unit Price | Unit | Monthly Est. | Annual Est. |
|---------|-----|--------|-----------|------|-------------|-------------|
| Virtual Machines | Standard_D4s_v5 | East US | $0.192/hr | 1 Hour | $140.16 | $1,681.92 |Tips
Always clarify the usage pattern before estimating (24/7 vs. business hours vs. sporadic).
For storage, ask about expected data volume and access patterns.
For databases, ask about throughput requirements (RU/s, DTUs, or vCores).
For serverless services, ask about expected invocation count and duration.
Round to 2 decimal places for display.
Note that prices are in USD unless otherwise specified.
Requirements and compatibility
Written for: GitHub Copilot
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
The author says: Requires internet access to prices.azure.com and learn.microsoft.com. No authentication needed.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- anthonychu
- Publisher
- GitHub (Official)
- Distributed by
- GitHub
- Source
- github/awesome-copilot · skills/azure-pricing · commit 797337f
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by anthonychu or GitHub.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download azure-pricing.zip