Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính40k · #7083

azure-pricing

Skill này làm gì

Công cụ này lấy giá hiện tại của các dịch vụ đám mây của Microsoft (Azure) và có thể giúp ước tính chi phí. Nó tra cứu thông tin giá công khai để bạn biết một thứ có thể tốn bao nhiêu.

Khi nào nên dùng

  • ✓Khi bạn muốn biết giá của một dịch vụ Azure cụ thể.
  • ✓Để so sánh giá của một dịch vụ giữa các khu vực hoặc loại khác nhau.
  • ✓Khi cần ước tính chi phí cho một dự án đám mây.

Liên kết skill

https://github.com/github/awesome-copilot/blob/main/skills/azure-pricing/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/azure-pricing/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Một máy ảo D4s v5 có giá bao nhiêu ở khu vực East US?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ truy vấn một trang web công khai của Microsoft có chứa giá dịch vụ Azure. Nó tìm đúng dịch vụ bạn hỏi, theo khu vực và loại bạn chỉ định, để đưa ra giá mới nhất.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

  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.

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
}

…

Câu hỏi thường gặp

Giá có tính bằng tiền địa phương của tôi không?

Giá thường hiển thị bằng đô la Mỹ (USD), trừ khi dịch vụ quy định một loại tiền tệ khác.

Làm sao biết giá có chính xác không?

Công cụ dùng dữ liệu thời gian thực từ API giá chính thức của Azure. Tuy nhiên, giá có thể thay đổi, và công cụ lấy dữ liệu công khai mới nhất.

Công cụ có thể cho tôi tổng chi phí của mọi thứ tôi dùng trên Azure không?

Không, nó tập trung vào các dịch vụ cụ thể. Để có bản tổng kết đầy đủ, bạn cần xem bảng điều khiển thanh toán Azure.

Chi tiết

Mô tả gốc của tác giả

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 es

repo: github/awesome-copilot

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7083
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự