# Features
The Azure Pricing MCP Server provides comprehensive Azure pricing intelligence through AI assistants.
---
## Core Features
| Feature | Description |
|---------|-------------|
| ๐ **Price Search** | Search Azure prices with filters (service, region, SKU, price type) |
| โ๏ธ **Price Comparison** | Compare costs across regions or between different SKUs |
| ๐ก **Cost Estimation** | Calculate monthly/yearly costs based on usage hours |
| ๐ซ **Reserved Instances** | Compare 1-year and 3-year RI pricing with break-even analysis |
| ๐ฐ **Savings Plans** | View 1-year and 3-year savings plan pricing |
| ๐ฏ **Smart SKU Discovery** | Fuzzy matching for service names ("vm" โ "Virtual Machines") |
| ๐ **Region Recommendations** | Find the cheapest Azure regions for any SKU with savings analysis |
| ๐ฑ **Multi-Currency** | Support for USD, EUR, GBP, and more |
| ๐ **Real-time Data** | Live data from Azure Retail Prices API |
| ๐ท๏ธ **Customer Discounts** | Apply discount percentages to all pricing queries |
---
## Retirement Warnings
The server automatically checks VM SKUs against Microsoft's official retirement documentation and warns you when querying SKUs that are:
| Status | Icon | Description |
|--------|------|-------------|
| **Retirement Announced** | โ ๏ธ | SKU has a planned retirement date - migrate soon |
| **Retired** | ๐ซ | SKU is no longer available for new deployments |
| **Previous Generation** | โน๏ธ | Newer versions available - consider upgrading |
### Example Warning Output
```
โ ๏ธ RETIREMENT WARNING: Lsv2-series
Status: Retirement Announced
Retirement Date: 11/15/28
Recommendation: Migrate to Lsv3, Lasv3, Lsv4, or Lasv4 series
Migration Guide: https://learn.microsoft.com/azure/virtual-machines/...
โน๏ธ PREVIOUS GENERATION: Ev3-series
Status: Newer versions available
Recommendation: Consider upgrading to Ev5 or Ev6 series
```
The retirement data is fetched dynamically from Microsoft's official documentation and cached for 24 hours.
---
## Spot VM Tools
Spot VM tools provide intelligence for Azure Spot Virtual Machines, helping you make informed decisions about cost vs. eviction risk.
### Available Capabilities
- **Eviction Rates** - Query real-time eviction risk by SKU and region (0-5%, 5-10%, 10-15%, 15-20%, 20%+)
- **Price History** - Get up to 90 days of historical Spot pricing data
- **Eviction Simulation** - Test your workload's resilience by triggering simulated evictions
### Authentication Required
Spot VM tools require Azure authentication because they query the Azure Resource Graph API.
**Option 1: Azure CLI (Recommended for development)**
```bash
az login
```
**Option 2: Environment Variables (Recommended for production/CI)**
```bash
export AZURE_TENANT_ID="your-tenant-id"
export AZURE_CLIENT_ID="your-client-id"
export AZURE_CLIENT_SECRET="your-client-secret"
```
**Option 3: Managed Identity (When running in Azure)**
No configuration needed - uses the VM/App Service identity automatically.
### Required Permissions
| Tool | Permission | Built-in Role |
|------|------------|---------------|
| `spot_eviction_rates` | `Microsoft.ResourceGraph/resources/read` | Reader |
| `spot_price_history` | `Microsoft.ResourceGraph/resources/read` | Reader |
| `simulate_eviction` | `Microsoft.Compute/virtualMachines/simulateEviction/action` | VM Contributor |
### What if I'm not authenticated?
The Spot VM tools will return a friendly message with authentication instructions. All other pricing tools continue to work without authentication.
---
## Docker Support
Run in containers for easy deployment and isolation. See [INSTALL.md](../INSTALL.md) for Docker setup instructions.