azure-vm-pricing

v0.1.4
io.github.vdionisopoulos/azure-vm-pricing Checked 1 day ago Published 1 month ago

Azure VM sizes and USD list prices in 24 regions, updated weekly.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

find_vm_sizes Find Azure VM sizes

Find the cheapest Azure VM sizes that meet vCPU, memory and workload requirements, with monthly USD list prices. Burstable (B-series) and confidential sizes are only included when that workload is requested.

ParameterTypeDescription
archstringCPU architecture.
max_resultsintegerDefault 10.
min_gpusintegerMinimum number of whole GPUs (partitioned GPUs such as 1/6 A10 do not count).
min_memory_gibnumberMinimum memory in GiB, e.g. 32.
min_vcpusintegerMinimum vCPUs, e.g. 8.
need_temp_diskbooleanOnly sizes with a local temporary disk.
osstringOperating system for pay-as-you-go prices. Default linux.
regionstringAzure region, e.g. westeurope or "West Europe". Omit to use each size's cheapest region.
sortstringprice = cheapest first (default); fit = least spare vCPU/memory first.
workloadstringWorkload family. ai = NVIDIA GPUs only (CUDA, PyTorch, vLLM); gpu = any GPU incl. AMD. Omit for any (excludes burstable and confidential).

get_vm_size Azure VM size details

Specs of one Azure VM size and its hourly USD prices per region (Linux, Windows, 1/3-year reservations, 1/3-year savings plans), cheapest region first.

ParameterTypeDescription
size *stringVM size, e.g. Standard_D4s_v5 or D4s v5.
regionstringLimit prices to one region.

estimate_vm_cost Estimate Azure VM cost

Monthly and yearly cost of one or more Azure VM sizes for pay as you go, reservations and savings plans, with the break-even hours per month for each commitment. Use it to compare sizes or regions.

ParameterTypeDescription
sizes *arrayOne to five VM sizes to price, e.g. ["Standard_D4s_v5", "Standard_D4as_v6"].
hours_per_monthnumberRuntime hours per month. Default 730 (always on).
instancesintegerNumber of VMs. Default 1.
osstringOperating system for pay-as-you-go prices. Default linux.
regionstringAzure region, e.g. westeurope or "West Europe". Omit to use each size's cheapest region.

get_price_changes Azure VM price changes

Weekly report of new Azure VM sizes, retired sizes and the biggest list-price moves across 24 regions.

ParameterTypeDescription
weeksintegerHow many weekly reports, newest first. Default 1.