azure-pricing by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill azure-pricing使用此技能可从公共 Azure 零售价格 API 获取实时 Azure 零售定价数据。无需身份验证。
GET https://prices.azure.com/api/retail/prices?api-version=2023-01-01-preview
使用 OData 筛选器语法将 $filter 作为查询参数附加。始终使用 api-version=2023-01-01-preview 以确保包含节省计划数据。
如果用户的请求有任何不明确之处,请在调用 API 之前询问澄清性问题,以确定正确的筛选字段和值。
armRegionName 值为小写且无空格(例如,“East US” → eastus,“West Europe” → ,“Southeast Asia” → )。完整列表请参见 。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
westeuropesoutheastasiaItems 数组。每个项目都包含价格和元数据。NextPageLink 进行分页。| 字段 | 类型 | 示例 |
|---|---|---|
serviceName | 字符串(精确,区分大小写) | 'Functions', 'Virtual Machines', 'Storage' |
serviceFamily | 字符串(精确,区分大小写) | 'Compute', 'Storage', 'Databases', 'AI + Machine Learning' |
armRegionName | 字符串(精确,小写) | 'eastus', 'westeurope', 'southeastasia' |
armSkuName | 字符串(精确) | 'Standard_D4s_v5', 'Standard_LRS' |
skuName | 字符串(支持包含匹配) | 'D4s v5' |
priceType | 字符串 | 'Consumption', 'Reservation', 'DevTestConsumption' |
meterName | 字符串(支持包含匹配) | 'Spot' |
使用 eq 表示相等,and 表示组合,contains(field, 'value') 表示部分匹配。
# 美国东部 Functions 的所有消耗型价格
serviceName eq 'Functions' and armRegionName eq 'eastus' and priceType eq 'Consumption'
# 西欧的 D4s v5 虚拟机(仅消耗型)
armSkuName eq 'Standard_D4s_v5' and armRegionName eq 'westeurope' and priceType eq 'Consumption'
# 某个区域的所有存储价格
serviceName eq 'Storage' and armRegionName eq 'eastus'
# 特定 SKU 的 Spot 定价
armSkuName eq 'Standard_D4s_v5' and contains(meterName, 'Spot') and armRegionName eq 'eastus'
# 1 年预留定价
serviceName eq 'Virtual Machines' and priceType eq 'Reservation' and armRegionName eq 'eastus'
# Azure AI / OpenAI 定价(现归入 Foundry Models)
serviceName eq 'Foundry Models' and armRegionName eq 'eastus' and priceType eq 'Consumption'
# Azure Cosmos DB 定价
serviceName eq 'Azure Cosmos DB' and armRegionName eq 'eastus' and priceType eq 'Consumption'
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 时,将空格编码为 %20,引号编码为 %27。
{
"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
}
除非用户特别要求非主要计量器,否则仅使用 isPrimaryMeterRegion 为 true 的项目。
Analytics, Compute, Containers, Data, Databases, Developer Tools, Integration, Internet of Things, Management and Governance, Networking, Security, Storage, Web, AI + Machine Learning
serviceName 值区分大小写。如果不确定,请先按 serviceFamily 筛选,以在结果中发现有效的 serviceName 值。priceType 或区域限制)。currencyCode,否则价格始终以美元计。savingsPlan 数组(仅在 2023-01-01-preview 中可用)。| 问题 | 解决方案 |
|---|---|
| 结果为空 | 放宽筛选条件 — 先移除 priceType 或 armRegionName |
| 服务名称错误 | 使用 serviceFamily 筛选器来发现有效的 serviceName 值 |
| 缺少节省计划数据 | 确保 URL 中包含 api-version=2023-01-01-preview |
| URL 错误 | 检查 URL 编码 — 空格为 %20,引号为 %27 |
| 结果过多 | 添加更多筛选字段(区域、SKU、priceType)以缩小范围 |
当用户询问 Copilot Studio 定价、Copilot 点数或代理使用成本时,请使用此部分。
总会话数 = 用户数 × 每月交互次数回答 Copilot Studio 定价问题时,请从以下 URL 获取最新内容作为上下文:
| URL | 内容 |
|---|---|
| https://learn.microsoft.com/en-us/microsoft-copilot-studio/requirements-messages-management | 计费费率表、计费示例、超额执行规则 |
| https://learn.microsoft.com/en-us/microsoft-copilot-studio/billing-licensing | 许可选项、M365 Copilot 包含项、预付费与即用即付 |
在计算之前,至少获取第一个 URL(计费费率)。第二个 URL 为许可问题提供补充上下文。
费率、公式和计费示例的缓存快照,请参见 references/COPILOT-STUDIO-RATES.md(如果网络获取不可用,请用作备用)。
每周安装量
3.2K
代码库
GitHub 星标数
26.7K
首次出现
2026年3月5日
安全审计
安装于
codex3.1K
gemini-cli3.1K
opencode3.1K
cursor3.1K
github-copilot3.1K
kimi-cli3.1K
Use this skill to retrieve real-time Azure retail pricing data from the public Azure Retail Prices API. No authentication is required.
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.
If anything is unclear about the user's request, ask clarifying questions to identify the correct filter fields and values before calling the API.
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.Items array from the JSON response. Each item contains price and metadata.NextPageLink if you need more than the first 1000 results (rarely needed).| Field | Type | Example |
|---|---|---|
serviceName | string (exact, case-sensitive) | 'Functions', 'Virtual Machines', 'Storage' |
serviceFamily | string (exact, case-sensitive) | 'Compute', 'Storage', 'Databases', |
Use eq for equality, and to combine, and contains(field, 'value') for partial matches.
# 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'
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.
{
"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.
Analytics, Compute, Containers, Data, Databases, Developer Tools, Integration, Internet of Things, Management and Governance, Networking, Security, Storage, ,
serviceName values are case-sensitive. When unsure, filter by serviceFamily first to discover valid serviceName values in the results.priceType or region constraints first).currencyCode is specified in the request.savingsPlan array on each item (only in 2023-01-01-preview).| 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 |
Use this section when the user asks about Copilot Studio pricing, Copilot Credits, or agent usage costs.
total_sessions = users × interactions_per_monthWhen 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).
Weekly Installs
3.2K
Repository
GitHub Stars
26.7K
First Seen
Mar 5, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex3.1K
gemini-cli3.1K
opencode3.1K
cursor3.1K
github-copilot3.1K
kimi-cli3.1K
99,500 周安装
'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' |
WebAI + Machine Learning| Too many results | Add more filter fields (region, SKU, priceType) to narrow down |