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-preview
Append $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
armRegionName values 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
Items array from the JSON response. Each item contains price and metadata.
- Follow pagination via
NextPageLink if 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
serviceName values are case-sensitive. When unsure, filter by serviceFamily first to discover valid serviceName values in the results.
- If results are empty, try broadening the filter (e.g., remove
priceType or region constraints first).
- Prices are always in USD unless
currencyCode is specified in the request.
- For savings plan prices, look for the
savingsPlan array on each item (only in 2023-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_month
- Knowledge 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:
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).
Source: github/awesome-copilot → skills/azure-pricing/SKILL.md
1---
2name: azure-pricing
3description: "Fetches real-time Azure retail pricing using the Azure Retail Prices API (prices.azure.com) and estimates Copilot Studio agent credit consumption. Use when the user asks about the cost of any Azure service, wants to compare SKU prices, needs pricing data for a cost estimate, mentions Azure pricing, Azure costs, Azure billing, or asks about Copilot Studio pricing, Copilot Credits, or agent usage estimation. Covers compute, storage, networking, databases, AI, Copilot Studio, and all other Azure service families."
4category: devops-and-infra
5source_repo: github/awesome-copilot
6source_path: "skills/azure-pricing/SKILL.md"
7source_url: https://github.com/github/awesome-copilot/blob/HEAD/skills/azure-pricing/SKILL.md
8metadata:
9 source: https://skillmd.com/skills/thedixitjain/azure-pricing
10---
11
12# Azure Pricing Skill
13
14Use this skill to retrieve real-time Azure retail pricing data from the public Azure Retail Prices API. No authentication is required.
15
16## When to Use This Skill
17
18- User asks about the cost of an Azure service (e.g., "How much does a D4s v5 VM cost?")
19- User wants to compare pricing across regions or SKUs
20- User needs a cost estimate for a workload or architecture
21- User mentions Azure pricing, Azure costs, or Azure billing
22- User asks about reserved instance vs. pay-as-you-go pricing
23- User wants to know about savings plans or spot pricing
24
25## API Endpoint
26
27```
28GET https://prices.azure.com/api/retail/prices?api-version=2023-01-01-preview
29```
30
31Append `$filter` as a query parameter using OData filter syntax. Always use `api-version=2023-01-01-preview` to ensure savings plan data is included.
32
33## Step-by-step Instructions
34
35If anything is unclear about the user's request, ask clarifying questions to identify the correct filter fields and values before calling the API.
36
371. **Identify filter fields** from the user's request (service name, region, SKU, price type).
382. **Resolve the region**: the API requires `armRegionName` values in lowercase with no spaces (e.g. "East US" → `eastus`, "West Europe" → `westeurope`, "Southeast Asia" → `southeastasia`). See [references/REGIONS.md](references/REGIONS.md) for a complete list.
393. **Build the filter string** using the fields below and fetch the URL.
404. **Parse the `Items` array** from the JSON response. Each item contains price and metadata.
415. **Follow pagination** via `NextPageLink` if you need more than the first 1000 results (rarely needed).
426. **Calculate cost estimates** using the formulas in [references/COST-ESTIMATOR.md](references/COST-ESTIMATOR.md) to produce monthly/annual estimates.
437. **Present results** in a clear summary table with service, SKU, region, unit price, and monthly/annual estimates.
44
45## Filterable Fields
46
47| Field | Type | Example |
48|---|---|---|
49| `serviceName` | string (exact, case-sensitive) | `'Functions'`, `'Virtual Machines'`, `'Storage'` |
50| `serviceFamily` | string (exact, case-sensitive) | `'Compute'`, `'Storage'`, `'Databases'`, `'AI + Machine Learning'` |
51| `armRegionName` | string (exact, lowercase) | `'eastus'`, `'westeurope'`, `'southeastasia'` |
52| `armSkuName` | string (exact) | `'Standard_D4s_v5'`, `'Standard_LRS'` |
53| `skuName` | string (contains supported) | `'D4s v5'` |
54| `priceType` | string | `'Consumption'`, `'Reservation'`, `'DevTestConsumption'` |
55| `meterName` | string (contains supported) | `'Spot'` |
56
57Use `eq` for equality, `and` to combine, and `contains(field, 'value')` for partial matches.
58
59## Example Filter Strings
60
61```
62# All consumption prices for Functions in East US
63serviceName eq 'Functions' and armRegionName eq 'eastus' and priceType eq 'Consumption'
64
65# D4s v5 VMs in West Europe (consumption only)
66armSkuName eq 'Standard_D4s_v5' and armRegionName eq 'westeurope' and priceType eq 'Consumption'
67
68# All storage prices in a region
69serviceName eq 'Storage' and armRegionName eq 'eastus'
70
71# Spot pricing for a specific SKU
72armSkuName eq 'Standard_D4s_v5' and contains(meterName, 'Spot') and armRegionName eq 'eastus'
73
74# 1-year reservation pricing
75serviceName eq 'Virtual Machines' and priceType eq 'Reservation' and armRegionName eq 'eastus'
76
77# Azure AI / OpenAI pricing (now under Foundry Models)
78serviceName eq 'Foundry Models' and armRegionName eq 'eastus' and priceType eq 'Consumption'
79
80# Azure Cosmos DB pricing
81serviceName eq 'Azure Cosmos DB' and armRegionName eq 'eastus' and priceType eq 'Consumption'
82```
83
84## Full Example Fetch URL
85
86```
87https://prices.azure.com/api/retail/prices?api-version=2023-01-01-preview&$filter=serviceName eq 'Functions' and armRegionName eq 'eastus' and priceType eq 'Consumption'
88```
89
90URL-encode spaces as `%20` and quotes as `%27` when constructing the URL.
91
92## Key Response Fields
93
94```json
95{
96 "Items": [
97 {
98 "retailPrice": 0.000016,
99 "unitPrice": 0.000016,
100 "currencyCode": "USD",
101 "unitOfMeasure": "1 Execution",
102 "serviceName": "Functions",
103 "skuName": "Premium",
104 "armRegionName": "eastus",
105 "meterName": "vCPU Duration",
106 "productName": "Functions",
107 "priceType": "Consumption",
108 "isPrimaryMeterRegion": true,
109 "savingsPlan": [
110 { "unitPrice": 0.000012, "term": "1 Year" },
111 { "unitPrice": 0.000010, "term": "3 Years" }
112 ]
113 }
114 ],
115 "NextPageLink": null,
116 "Count": 1
117}
118```
119
120Only use items where `isPrimaryMeterRegion` is `true` unless the user specifically asks for non-primary meters.
121
122## Supported serviceFamily Values
123
124`Analytics`, `Compute`, `Containers`, `Data`, `Databases`, `Developer Tools`, `Integration`, `Internet of Things`, `Management and Governance`, `Networking`, `Security`, `Storage`, `Web`, `AI + Machine Learning`
125
126## Tips
127
128- `serviceName` values are case-sensitive. When unsure, filter by `serviceFamily` first to discover valid `serviceName` values in the results.
129- If results are empty, try broadening the filter (e.g., remove `priceType` or region constraints first).
130- Prices are always in USD unless `currencyCode` is specified in the request.
131- For savings plan prices, look for the `savingsPlan` array on each item (only in `2023-01-01-preview`).
132- See [references/SERVICE-NAMES.md](references/SERVICE-NAMES.md) for a catalog of common service names and their correct casing.
133- See [references/COST-ESTIMATOR.md](references/COST-ESTIMATOR.md) for cost estimation formulas and patterns.
134- See [references/COPILOT-STUDIO-RATES.md](references/COPILOT-STUDIO-RATES.md) for Copilot Studio billing rates and estimation formulas.
135
136## Troubleshooting
137
138| Issue | Solution |
139|-------|----------|
140| Empty results | Broaden the filter — remove `priceType` or `armRegionName` first |
141| Wrong service name | Use `serviceFamily` filter to discover valid `serviceName` values |
142| Missing savings plan data | Ensure `api-version=2023-01-01-preview` is in the URL |
143| URL errors | Check URL encoding — spaces as `%20`, quotes as `%27` |
144| Too many results | Add more filter fields (region, SKU, priceType) to narrow down |
145
146---
147
148# Copilot Studio Agent Usage Estimation
149
150Use this section when the user asks about Copilot Studio pricing, Copilot Credits, or agent usage costs.
151
152## When to Use This Section
153
154- User asks about Copilot Studio pricing or costs
155- User asks about Copilot Credits or agent credit consumption
156- User wants to estimate monthly costs for a Copilot Studio agent
157- User mentions agent usage estimation or the Copilot Studio estimator
158- User asks how much an agent will cost to run
159
160## Key Facts
161
162- **1 Copilot Credit = $0.01 USD**
163- Credits are pooled across the entire tenant
164- Employee-facing agents with M365 Copilot licensed users get classic answers, generative answers, and tenant graph grounding at zero cost
165- Overage enforcement triggers at 125% of prepaid capacity
166
167## Step-by-step Estimation
168
1691. **Gather inputs** from the user: agent type (employee/customer), number of users, interactions/month, knowledge %, tenant graph %, tool usage per session.
1702. **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.
1713. **Parse the fetched content** to extract the current billing rates table (credits per feature type).
1724. **Calculate the estimate** using the rates and formulas from the fetched content:
173 - `total_sessions = users × interactions_per_month`
174 - Knowledge credits: apply tenant graph grounding rate, generative answer rate, and classic answer rate
175 - Agent tools credits: apply agent action rate per tool call
176 - Agent flow credits: apply flow rate per 100 actions
177 - Prompt modifier credits: apply basic/standard/premium rates per 10 responses
1785. **Present results** in a clear table with breakdown by category, total credits, and estimated USD cost.
179
180## Source URLs to Fetch
181
182When answering Copilot Studio pricing questions, fetch the latest content from these URLs to use as context:
183
184| URL | Content |
185|---|---|
186| https://learn.microsoft.com/en-us/microsoft-copilot-studio/requirements-messages-management | Billing rates table, billing examples, overage enforcement rules |
187| https://learn.microsoft.com/en-us/microsoft-copilot-studio/billing-licensing | Licensing options, M365 Copilot inclusions, prepaid vs pay-as-you-go |
188
189Fetch at least the first URL (billing rates) before calculating. The second URL provides supplementary context for licensing questions.
190
191See [references/COPILOT-STUDIO-RATES.md](references/COPILOT-STUDIO-RATES.md) for a cached snapshot of rates, formulas, and billing examples (use as fallback if web fetch is unavailable).
192
193---
194
195**Source:** [`github/awesome-copilot`](https://github.com/github/awesome-copilot) → `skills/azure-pricing/SKILL.md`