azure-pricing

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Azure 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-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.
GET https://prices.azure.com/api/retail/prices?api-version=2023-01-01-preview
使用OData过滤语法添加
$filter
作为查询参数。请始终使用
api-version=2023-01-01-preview
以确保包含节约计划数据。

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.
  1. Identify filter fields from the user's request (service name, region, SKU, price type).
  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 for a complete list.
  3. Build the filter string using the fields below and fetch the URL.
  4. Parse the
    Items
    array
    from the JSON response. Each item contains price and metadata.
  5. Follow pagination via
    NextPageLink
    if you need more than the first 1000 results (rarely needed).
  6. Calculate cost estimates using the formulas in references/COST-ESTIMATOR.md to produce monthly/annual estimates.
  7. Present results in a clear summary table with service, SKU, region, unit price, and monthly/annual estimates.
如果用户的请求有不明确的地方,在调用API之前,请先提出澄清问题以确定正确的过滤字段和值。
  1. 从用户请求中识别过滤字段(服务名称、区域、SKU、价格类型)。
  2. 解析区域:API要求
    armRegionName
    值为小写且无空格(例如"East US" →
    eastus
    ,"West Europe" →
    westeurope
    ,"Southeast Asia" →
    southeastasia
    )。完整列表请参见references/REGIONS.md
  3. 使用以下字段构建过滤字符串并获取URL。
  4. 解析JSON响应中的
    Items
    数组
    。每个条目包含价格和元数据。
  5. 通过
    NextPageLink
    进行分页
    (如果需要超过前1000条结果,这种情况很少见)。
  6. 使用references/COST-ESTIMATOR.md中的公式计算成本估算,生成月度/年度估算值。
  7. 以清晰的摘要表格呈现结果,包含服务、SKU、区域、单价及月度/年度估算值。

Filterable Fields

可过滤字段

FieldTypeExample
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.
字段类型示例
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')
用于部分匹配。

Example Filter Strings

过滤字符串示例

undefined
undefined

All 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'
undefined
serviceName eq 'Azure Cosmos DB' and armRegionName eq 'eastus' and priceType eq 'Consumption'
undefined

Full 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
%20
and quotes as
%27
when constructing the 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时,需将空格编码为
%20
,引号编码为
%27

Key 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
isPrimaryMeterRegion
is
true
unless the user specifically asks for non-primary meters.
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
}
仅使用
isPrimaryMeterRegion
true
的条目,除非用户特别要求非主计量区域的数据。

Supported serviceFamily Values

支持的serviceFamily值

Analytics
,
Compute
,
Containers
,
Data
,
Databases
,
Developer Tools
,
Integration
,
Internet of Things
,
Management and Governance
,
Networking
,
Security
,
Storage
,
Web
,
AI + Machine Learning
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.
  • 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

故障排除

IssueSolution
Empty resultsBroaden the filter — remove
priceType
or
armRegionName
first
Wrong service nameUse
serviceFamily
filter to discover valid
serviceName
values
Missing savings plan dataEnsure
api-version=2023-01-01-preview
is in the URL
URL errorsCheck URL encoding — spaces as
%20
, quotes as
%27
Too many resultsAdd more filter fields (region, SKU, priceType) to narrow down

问题解决方案
结果为空放宽过滤条件 — 先移除
priceType
armRegionName
限制
服务名称错误使用
serviceFamily
过滤以发现有效的
serviceName
缺少节约计划数据确保URL中包含
api-version=2023-01-01-preview
URL错误检查URL编码 — 空格用
%20
,引号用
%27
结果过多添加更多过滤字段(区域、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

分步估算流程

  1. Gather inputs from the user: agent type (employee/customer), number of users, interactions/month, knowledge %, tenant graph %, tool usage per session.
  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.
  3. Parse the fetched content to extract the current billing rates table (credits per feature type).
  4. 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
  5. Present results in a clear table with breakdown by category, total credits, and estimated USD cost.
  1. 从用户处收集输入信息:Agent类型(员工/客户)、用户数量、月度交互次数、知识库占比、租户图谱占比、每次会话的工具使用情况。
  2. 获取最新计费费率 — 使用内置的网络获取工具从下方列出的源URL下载最新费率。这确保估算始终使用Microsoft的最新定价。
  3. 解析获取的内容,提取当前计费费率表格(各功能类型对应的信用额度)。
  4. 使用获取内容中的费率和公式计算估算值
    • 总会话数 = 用户数 × 每月交互次数
    • 知识库信用额度:应用租户图谱关联费率、生成式回答费率和经典回答费率
    • Agent工具信用额度:每次工具调用应用Agent操作费率
    • Agent流程信用额度:每100次操作应用流程费率
    • 提示词修饰符信用额度:每10次响应应用基础/标准/高级费率
  5. 以清晰的表格呈现结果,包含按类别划分的明细、总信用额度和估算美元成本。

Source URLs to Fetch

需获取的源URL

When answering Copilot Studio pricing questions, fetch the latest content from these URLs to use as context:
URLContent
https://learn.microsoft.com/en-us/microsoft-copilot-studio/requirements-messages-managementBilling rates table, billing examples, overage enforcement rules
https://learn.microsoft.com/en-us/microsoft-copilot-studio/billing-licensingLicensing 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中缓存的费率、公式和计费示例快照作为备用。