Azure Pricing

Azure Pricing

Fetches live Azure retail prices through the public pricing API to compare SKUs and regions, build cost estimates and estimate Copilot Studio credits.

Skill files5 files

references/

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

© anthonychu · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…