Gerçek zamanlı Azure perakende fiyatlarını çeker ve Copilot Studio agent kredi tüketimini tahmin eder.
- GitHub yıldızları
- 41.038
- Dosyalar
- 5
- Son commit
- 11 Kas 2026
- Lisans
- MIT
- İzin verilen araçlar
- —
azure-pricing skill ne işe yarar?
azure-pricing bir agent skill'dir. Gerçek zamanlı Azure perakende fiyatlarını çeker ve Copilot Studio agent kredi tüketimini tahmin eder.
Özet, skill'in SKILL.md dosyasından oluşturuldu.
azure-pricing skilli hakkında
Bu SKILL, geliştiricilerin ve bulut mimarlarının gerçek zamanlı Azure perakende fiyatlarını almasını ve Copilot Studio agent kredi tüketimini tahmin etmesini sağlar. Hesaplama, depolama, ağ, veritabanları ve yapay zeka dahil olmakca çeşitli hizmet aileleri için güncel maliyetleri çekmek üzere Azure Retail Prices API'ye bağlanır. Bir agent, OData filtre sözdizimini kullanarak belirli SKU'ları, bölgeleri veya spot fiyatlandırma ve rezervasyonlar gibi fiyat türlerini tam olarak belirleyebilir.
Kullanıcılar Copilot Studio hakkında soru sorduğunda, bu SKILL; agent türlerini, kullanıcı sayılarını ve etkileşim hacimlerini değerlendirerek tahmini aylık maliyetleri hesaplar. Bilgi kredilerini, araç kullanımını ve prompt düzenleyicilerini hesaba katmak için belirli formüller kullanır. Bu sayede kredi tüketiminin ve tahmini USD maliyetlerinin ayrıntılı bir dökümü sunulur. Araç, tüm hesaplamaların en güncel faturalandırma oranlarını ve aşım kurallarını yansıtmasını sağlamak için resmi Microsoft dokümantasyonuna ve fiyatlandırma uç noktalarına internet erişimi üzerinden bağlanır.
Bir agent bununla neler yapabilir
- 1Azure SKU maliyetlerini karşılaştırınBelirli bir bölgedeki farklı sanal makine SKU'ları arasındaki fiyat farkını bulun.
- 2Copilot Studio kullanımını tahmin edinBeklenen aylık etkileşimlere ve araç kullanımına bağlı olarak bir Copilot Studio agent'ı için aylık USD maliyetini hesaplayın.
- 3Yapay zeka hizmeti fiyatlandırmasını kontrol edinBelirli bir Azure bölgesindeki Foundry Models için güncel tüketim oranlarını alın.
Skill'in SKILL.md dosyasından yazılmıştır. Her kullanım durumu oradaki bir alıntı ile kontrol edilir.
azure-pricing skill nasıl kurulur
Her komut, skill klasörünü istemcinin skills dizinine kopyalar. Yüklemek için istemciyi yeniden başlatın veya yeni bir oturum başlatın.azure-pricing skill'ini Claude Code uygulamasına kur
~/.claude/skills/azure-pricing/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-pricing ~/.claude/skills/azure-pricingazure-pricing skill'ini Claude Code (project) uygulamasına kur
.claude/skills/azure-pricing/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-pricing .claude/skills/azure-pricingazure-pricing skill'ini Codex uygulamasına kur
~/.agents/skills/azure-pricing/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-pricing ~/.agents/skills/azure-pricingazure-pricing skill'ini Gemini CLI uygulamasına kur
~/.gemini/skills/azure-pricing/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-pricing ~/.gemini/skills/azure-pricingazure-pricing skill'ini Claude.ai uygulamasına kur
npx degit github/awesome-copilot/skills/azure-pricing azure-pricing && zip -r azure-pricing.zip azure-pricing # claude.ai → Customize → Skills → + → Create skill → Upload a skill → azure-pricing.zip
Otomatik kontroller
Çalıştırıldı 15 Kas 2026Tam rapor →Otomatik kontrollerimizi geçti. Bu bir güvenlik denetimi değil: bir ajanın çalıştırmasına izin vermeden önce betikleri okuyun. Kontroller nasıl çalışır
- Kaynak deposu bağlantılı ve erişilebilirgithub/awesome-copilot/skills/azure-pricing is public and reachablegithub.com/github/awesome-copilot/tree/HEAD/skills/azure-pri ↗Geçti
- Açık kaynak lisansı (OSI)MITspdx.org/licenses/MIT.html ↗Geçti
- Son bir yıl içinde commit veya sürüm mevcutLast commit 2026-11-11github.com/github/awesome-copilot/commits ↗Geçti
- Betiklerde indir-çalıştır veya kimlik bilgisi hırsızlığı yokNo scripts in the skill folderGeçti
- SKILL.md içinde gizli talimat yokNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/github/awesome-copilot/blob/HEAD/skills/azure-pri ↗Geçti
- Önceden izin verilen araçlar sınırlıNo pre-approved tools; the agent asks before using onegithub.com/github/awesome-copilot/blob/HEAD/skills/azure-pri ↗Geçti
- SKILL.md, Agent Skills biçimine uyuyorValid name and description; says when to use it; 190 linesgithub.com/github/awesome-copilot/blob/HEAD/skills/azure-pri ↗Geçti
SKILL.md
GitHub'da görüntüleAzure 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.
- Identify filter fields from the user's request (service name, region, SKU, price type).
- Resolve the region: the API requires
armRegionNamevalues in lowercase with no spaces (e.g. "East US" →eastus, "West Europe" →westeurope, "Southeast Asia" →southeastasia). See references/REGIONS.md for a complete list. - Build the filter string using the fields below and fetch the URL.
- Parse the
Itemsarray from the JSON response. Each item contains price and metadata. - Follow pagination via
NextPageLinkif you need more than the first 1000 results (rarely needed). - 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.
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
}
Only use items where isPrimaryMeterRegion is true unless the user specifically asks for non-primary meters.
Supported serviceFamily Values
Analytics, Compute, Containers, Data, Databases, Developer Tools, Integration, Internet of Things, Management and Governance, Networking, Security, Storage, Web, AI + Machine Learning
Tips
serviceNamevalues are case-sensitive. When unsure, filter byserviceFamilyfirst to discover validserviceNamevalues in the results.- If results are empty, try broadening the filter (e.g., remove
priceTypeor region constraints first). - Prices are always in USD unless
currencyCodeis specified in the request. - For savings plan prices, look for the
savingsPlanarray on each item (only in2023-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.
Troubleshooting
| 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 |
| Too many results | Add more filter fields (region, SKU, priceType) to narrow down |
Copilot Studio Agent Usage Estimation
Use this section when the user asks about Copilot Studio pricing, Copilot Credits, or agent usage costs.
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
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
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.
Source URLs to Fetch
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).
Bu becerideki dosyalar
5azure-pricing skill soruları
azure-pricing skill'ini Claude Code uygulamasına nasıl kurarım?
npx degit github/awesome-copilot/skills/azure-pricing ~/.claude/skills/azure-pricing komutunu çalıştırın. Claude Code, skill'leri ~/.claude/skills (tüm projeler) veya .claude/skills (tek proje) konumundan yükler ve açıklaması görevle eşleştiğinde skill'i kullanır.
azure-pricing skill'ini hangi istemciler kullanabilir?
Agent Skills biçimini okuyan her istemci: Claude Code, Codex, Gemini CLI ve claude.ai (ZIP olarak yükleyin). Skill içindeki betikler yalnızca istemcinin kod çalıştırmaya izin verdiği yerlerde çalışır.
Bir Copilot Kredisi ne kadar tutar?
Bir Copilot Kredisi 0.01 USD değerindedir.
Azure Retail Prices API'yi kullanmak için kimlik doğrulamaya ihtiyacım var mı?
Hayır, halka açık API'den fiyatlandırma verilerini almak için kimlik doğrulaması gerekmez.
Fiyatlandırma isteklerime tasarruf planı (savings plan) verilerini nasıl dahil edebilirim?
Tasarruf planı verilerinin dahil edildiğinden emin olmak için isteğinize api-version=2023-01-01-preview parametresini eklemelisiniz.