azure-pricing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAzure Pricing Skill
Azure定价Skill
Use this skill to retrieve real-time Azure retail pricing data from the public Azure Retail Prices API. No authentication is required.
使用此Skill从公开的Azure零售价格API中检索实时Azure零售定价数据,无需身份验证。
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
- 用户询问Azure服务的成本(例如:"D4s v5虚拟机的成本是多少?")
- 用户想要比较不同区域或SKU的定价
- 用户需要针对工作负载或架构进行成本估算
- 用户提及Azure定价、Azure成本或Azure计费
- 用户询问预留实例与按需付费的定价对比
- 用户想要了解节约计划或竞价实例定价
API Endpoint
API端点
GET https://prices.azure.com/api/retail/prices?api-version=2023-01-01-previewAppend as a query parameter using OData filter syntax. Always use to ensure savings plan data is included.
$filterapi-version=2023-01-01-previewGET https://prices.azure.com/api/retail/prices?api-version=2023-01-01-preview使用OData过滤语法添加作为查询参数。请始终使用以确保包含节约计划数据。
$filterapi-version=2023-01-01-previewStep-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 values in lowercase with no spaces (e.g. "East US" →
armRegionName, "West Europe" →eastus, "Southeast Asia" →westeurope). See references/REGIONS.md for a complete list.southeastasia - Build the filter string using the fields below and fetch the URL.
- Parse the array from the JSON response. Each item contains price and metadata.
Items - Follow pagination via if you need more than the first 1000 results (rarely needed).
NextPageLink - 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.
如果用户的请求有不明确的地方,在调用API之前,请先提出澄清问题以确定正确的过滤字段和值。
- 从用户请求中识别过滤字段(服务名称、区域、SKU、价格类型)。
- 解析区域:API要求值为小写且无空格(例如"East US" →
armRegionName,"West Europe" →eastus,"Southeast Asia" →westeurope)。完整列表请参见references/REGIONS.md。southeastasia - 使用以下字段构建过滤字符串并获取URL。
- 解析JSON响应中的数组。每个条目包含价格和元数据。
Items - 通过进行分页(如果需要超过前1000条结果,这种情况很少见)。
NextPageLink - 使用references/COST-ESTIMATOR.md中的公式计算成本估算,生成月度/年度估算值。
- 以清晰的摘要表格呈现结果,包含服务、SKU、区域、单价及月度/年度估算值。
Filterable Fields
可过滤字段
| Field | Type | Example |
|---|---|---|
| string (exact, case-sensitive) | |
| string (exact, case-sensitive) | |
| string (exact, lowercase) | |
| string (exact) | |
| string (contains supported) | |
| string | |
| string (contains supported) | |
Use for equality, to combine, and for partial matches.
eqandcontains(field, 'value')| 字段 | 类型 | 示例 |
|---|---|---|
| 字符串(精确匹配,区分大小写) | |
| 字符串(精确匹配,区分大小写) | |
| 字符串(精确匹配,小写) | |
| 字符串(精确匹配) | |
| 字符串(支持包含匹配) | |
| 字符串 | |
| 字符串(支持包含匹配) | |
使用表示相等,用于组合条件,用于部分匹配。
eqandcontains(field, 'value')Example Filter Strings
过滤字符串示例
undefinedundefinedAll consumption prices for Functions in East US
美国东部区域Functions的所有按需付费价格
serviceName eq 'Functions' and armRegionName eq 'eastus' and priceType eq 'Consumption'
serviceName eq 'Functions' and armRegionName eq 'eastus' and priceType eq 'Consumption'
D4s v5 VMs in West Europe (consumption only)
西欧区域的D4s v5虚拟机(仅按需付费)
armSkuName eq 'Standard_D4s_v5' and armRegionName eq 'westeurope' and priceType eq 'Consumption'
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'
serviceName eq 'Storage' and armRegionName eq 'eastus'
Spot pricing for a specific SKU
特定SKU的竞价实例定价
armSkuName eq 'Standard_D4s_v5' and contains(meterName, 'Spot') and armRegionName eq 'eastus'
armSkuName eq 'Standard_D4s_v5' and contains(meterName, 'Spot') and armRegionName eq 'eastus'
1-year reservation pricing
1年期预留实例定价
serviceName eq 'Virtual Machines' and priceType eq 'Reservation' and armRegionName eq 'eastus'
serviceName eq 'Virtual Machines' and priceType eq 'Reservation' and armRegionName eq 'eastus'
Azure AI / OpenAI pricing (now under Foundry Models)
Azure AI / OpenAI定价(现归类于Foundry Models)
serviceName eq 'Foundry Models' and armRegionName eq 'eastus' and priceType eq 'Consumption'
serviceName eq 'Foundry Models' and armRegionName eq 'eastus' and priceType eq 'Consumption'
Azure Cosmos DB pricing
Azure Cosmos DB定价
serviceName eq 'Azure Cosmos DB' and armRegionName eq 'eastus' and priceType eq 'Consumption'
undefinedserviceName eq 'Azure Cosmos DB' and armRegionName eq 'eastus' and priceType eq 'Consumption'
undefinedFull Example Fetch URL
完整的获取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 and quotes as when constructing the URL.
%20%27https://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%27Key Response Fields
关键响应字段
json
{
"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 is unless the user specifically asks for non-primary meters.
isPrimaryMeterRegiontruejson
{
"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
}仅使用为的条目,除非用户特别要求非主计量区域的数据。
isPrimaryMeterRegiontrueSupported serviceFamily Values
支持的serviceFamily值
AnalyticsComputeContainersDataDatabasesDeveloper ToolsIntegrationInternet of ThingsManagement and GovernanceNetworkingSecurityStorageWebAI + Machine LearningAnalyticsComputeContainersDataDatabasesDeveloper ToolsIntegrationInternet of ThingsManagement and GovernanceNetworkingSecurityStorageWebAI + Machine LearningTips
提示
- values are case-sensitive. When unsure, filter by
serviceNamefirst to discover validserviceFamilyvalues in the results.serviceName - If results are empty, try broadening the filter (e.g., remove or region constraints first).
priceType - Prices are always in USD unless is specified in the request.
currencyCode - For savings plan prices, look for the array on each item (only in
savingsPlan).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.
- 值区分大小写。如果不确定,先按
serviceName过滤,从结果中发现有效的serviceFamily值。serviceName - 如果结果为空,尝试放宽过滤条件(例如,先移除或区域限制)。
priceType - 除非请求中指定,否则价格始终以美元计价。
currencyCode - 如需节约计划价格,请查看每个条目中的数组(仅在
savingsPlan版本中提供)。2023-01-01-preview - 常见服务名称及其正确大小写请参见references/SERVICE-NAMES.md。
- 成本估算公式和模式请参见references/COST-ESTIMATOR.md。
- Copilot Studio计费费率和估算公式请参见references/COPILOT-STUDIO-RATES.md。
Troubleshooting
故障排除
| Issue | Solution |
|---|---|
| Empty results | Broaden the filter — remove |
| Wrong service name | Use |
| Missing savings plan data | Ensure |
| URL errors | Check URL encoding — spaces as |
| Too many results | Add more filter fields (region, SKU, priceType) to narrow down |
| 问题 | 解决方案 |
|---|---|
| 结果为空 | 放宽过滤条件 — 先移除 |
| 服务名称错误 | 使用 |
| 缺少节约计划数据 | 确保URL中包含 |
| URL错误 | 检查URL编码 — 空格用 |
| 结果过多 | 添加更多过滤字段(区域、SKU、价格类型)以缩小范围 |
Copilot Studio Agent Usage Estimation
Copilot Studio Agent使用量估算
Use this section when the user asks about Copilot Studio pricing, Copilot Credits, or agent usage costs.
当用户询问Copilot Studio定价、Copilot Credits或Agent使用成本时,使用本节内容。
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
- 用户询问Copilot Studio定价或成本
- 用户询问Copilot Credits或Agent信用额度消耗
- 用户想要估算Copilot Studio Agent的月度成本
- 用户提及Agent使用量估算或Copilot Studio估算工具
- 用户询问运行Agent的成本
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
- 1 Copilot Credit = 0.01美元
- 信用额度在整个租户内共享
- 面向已授权M365 Copilot的员工的Agent,其经典回答、生成式回答和租户图谱关联功能免费
- 超额使用触发阈值为预付费容量的125%
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.
- 从用户处收集输入信息:Agent类型(员工/客户)、用户数量、月度交互次数、知识库占比、租户图谱占比、每次会话的工具使用情况。
- 获取最新计费费率 — 使用内置的网络获取工具从下方列出的源URL下载最新费率。这确保估算始终使用Microsoft的最新定价。
- 解析获取的内容,提取当前计费费率表格(各功能类型对应的信用额度)。
- 使用获取内容中的费率和公式计算估算值:
总会话数 = 用户数 × 每月交互次数- 知识库信用额度:应用租户图谱关联费率、生成式回答费率和经典回答费率
- Agent工具信用额度:每次工具调用应用Agent操作费率
- Agent流程信用额度:每100次操作应用流程费率
- 提示词修饰符信用额度:每10次响应应用基础/标准/高级费率
- 以清晰的表格呈现结果,包含按类别划分的明细、总信用额度和估算美元成本。
Source URLs to Fetch
需获取的源URL
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).
回答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包含内容、预付费 vs 按需付费 |
计算前至少获取第一个URL(计费费率)。第二个URL为授权问题提供补充上下文。
如果无法进行网络获取,请使用references/COPILOT-STUDIO-RATES.md中缓存的费率、公式和计费示例快照作为备用。