# Azure Prices

Look up and compare Azure service pricing using the Azure Retail Prices API.

- Repository: https://github.com/Code-and-Sorts/awesome-copilot-agents (589 stars)
- Category: Data and ML
- License: CC0-1.0
- Last updated: 2026-04-29
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add Code-and-Sorts/awesome-copilot-agents --skill azure-prices -g -a claude-code -y`
Codex: `npx skills add Code-and-Sorts/awesome-copilot-agents --skill azure-prices -g -a codex -y`
Cursor: `npx skills add Code-and-Sorts/awesome-copilot-agents --skill azure-prices -g -a cursor -y`
Gemini CLI: `npx skills add Code-and-Sorts/awesome-copilot-agents --skill azure-prices -g -a gemini-cli -y`

## Description

Look up and compare Azure service pricing using the Azure Retail Prices API. Use this skill whenever the user asks about Azure costs, pricing, rates, or wants to compare prices across regions or services, even if they don't say "pricing" explicitly. Trigger for questions like "how much does a D2 v2 VM cost?", "cheapest region for Azure SQL", or "compare storage prices between eastus and westeurope".

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Azure Prices

Fetch and compare live Azure service pricing using the bundled scripts that call the Azure Retail Prices API.

## Execution Rules

Always use the bundled npm script for price lookups and comparisons when terminal execution is available.

**DO NOT** call the Azure Retail Prices API directly. You can only use the script to call the API.

## Scripts

All scripts live in `./scripts/` and run via npm:

```bash
# List sample service names (discover what's available)
npm run --prefix ./scripts get-prices

# Get prices for a service in a region (default region: eastus)
npm run --prefix ./scripts get-prices -- "Virtual Machines" eastus
```

The script accepts two positional arguments:

1. **Service name** (required for price lookup), e.g. `"Virtual Machines"`, `"SQL Database"`, `"Storage"`, `"Azure Cosmos DB"`
2. **Region** (optional, defaults to `eastus`), e.g. `eastus`, `westus2`, `westeurope`, `southeastasia`

When called with no arguments, it prints a sample of available service names.

## How to Use

The npm commands below are the preferred execution path for this skill and should be used instead of direct API calls whenever command execution is available.

### Single region lookup

Run the script with the service name and region. Present results in a readable table.

### Cross-region comparison

To compare prices across regions, run the script multiple times, once per region, then combine the results into a comparison table. For example, to compare Virtual Machines prices across three regions:

```bash
npm run --prefix ./scripts get-prices -- "Virtual Machines" eastus
npm run --prefix ./scripts get-prices -- "Virtual Machines" westus2
npm run --prefix ./scripts get-prices -- "Virtual Machines" westeurope
```

Then join the results by SKU name to show a side-by-side comparison table with columns for each region.

### Finding the cheapest region

The rest: https://github.com/Code-and-Sorts/awesome-copilot-agents/blob/HEAD/skills/cloud/azure-prices/SKILL.md
