Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure pricing tools in MCP Server help you manage cost estimates, billing questions, and budget tracking using natural language prompts. This article explains how these tools let organizations learn about Azure spending and manage costs effectively.
Note
Tool parameters: The Azure MCP Server tools define parameters for data they need to complete tasks. Some of these parameters are specific to each tool and are documented below. Other parameters are global and shared by all tools. For more information, see Tool parameters.
Get pricing information
Get Azure retail pricing information. Only call this tool after the user specifies a SKU (--sku) or confirms they want all pricing for a service. Don't call this tool if the user provides only a broad service name (for example, Virtual Machines, Storage, SQL Database) without a specific SKU — ask for the exact SKU or tier first. For comparisons across regions or SKUs, require explicit ARM SKU names and don't assume defaults. Requires at least one filter: --sku, --service, --region, --service-family, or --filter. SavingsPlan isn't a valid --price-type value; use --include-savings-plan instead. Valid --price-type values are Consumption, Reservation, and DevTestConsumption. When --include-savings-plan is true, Consumption results include a nested savingsPlan array with 1-year and 3-year pricing, mainly for Linux VMs. For Bicep/ARM cost estimation, extract the resource type and SKU, query per resource, and sum monthly costs (hourly × 730).
Example prompts include:
- "This is my Bicep template: <bicep_template>. Estimate my deployment costs."
- "What is the pricing for SKU
Standard_D4s_v5in regioneastus?" - "Can I get the pricing details for service
Virtual Machinesand SKUStandard_E64-16ds_v4?" - "Show me the
Consumptionpricing for SKUStandard_D4s_v5inwesteuropeand include savings plan." - "List pricing information for all SKUs in the
Storageservice in regionwestus2."
| Parameter | Required or optional | Description |
|---|---|---|
| Currency | Optional | Currency code for pricing (for example, USD, EUR). The default is USD. |
| SKU | Optional* | ARM SKU name (for example, Standard_D4s_v5, Standard_E64-16ds_v4). |
| Service | Optional* | Azure service name (for example, Virtual Machines, Storage, SQL Database). |
| Region | Optional* | Azure region (for example, eastus, westeurope, westus2). |
| Service family | Optional* | Service family (for example, Compute, Storage, Databases, Networking). |
| Price type | Optional* | Price type filter (for options: Consumption, Reservation, DevTestConsumption). |
| Include savings plan | Optional | Include savings plan pricing information (uses preview API version). |
| Filter | Optional* | Raw OData filter expression for advanced queries (for example,meterId eq 'abc-123'). For more about OData, see OData documentation. |
- At least one filter option is required.
Destructive: ❌ | Idempotent: ✅ | Open World: ❌ | Read Only: ✅ | Secret: ❌ | Local Required: ❌