Azure: Search for a specific VM series availability in region
February 11, 2025 Leave a comment
Use Azure CLI to retrieve available VM SKUs (sizes) in a specified region, filter them by a VM type, and formats the output.
In this specific case, I am checking whether the E20as_v6 and E20s_v6 sizes are available in the eastus2 region and determining the zones in which they are offered:
mari@Azure:~$ az vm list-skus --location eastus2 --all true --resource-type virtualMachines --output table | grep -E "E20as_v6|E20s_v6"
virtualMachines eastus2 Standard_E20as_v6 1,2 None
virtualMachines eastus2 Standard_E20s_v6 1,2 None
Explanation of command/options:
| Command/Option | Description |
|---|---|
az vm list-skus | Lists available VM SKUs (sizes) |
--location eastus2 | Specifies the Azure region (eastus2) where the VM SKUs should be retrieved. |
--all true | Show all information including vm sizes not available under the current subscription. |
--resource-type virtualMachines | Filters the SKU list specifically for virtual machines. |
--output table | Formats the output into a readable table format instead of JSON. |
| grep -E "E20as_v6|E20s_v6" | Pipes (|) the output into grep, filtering only the lines containing E20as_v6 or E20s_v6. |
Explanation of the result:
| Value | Description |
|---|---|
| None | This column usually shows restrictions, such as NotAvailableForSubscription. Here, “None” means no restrictions apply, and the VM SKU can be deployed without limitations. |
| 1, 2 | VMs are available in 1 and 2 availability zones |
E-Series VMs are optimized for memory-intensive workloads such as in-memory databases, and big data applications.