How to Resolve the “VmSizeIsNotSupported” Error in Azure DevOps ARM Template Deployment

Luca Berton
5 min readJust now

The error you’re encountering in your Azure DevOps pipeline indicates that the specified VM size ($(vmSize)) is not supported in the selected region (in this case, eastus):

##[error]VmSizeIsNotSupported: Virtual machine size '$(vmSize)' is not supported in region eastus.

This is a common issue when deploying Azure Virtual Machines, as not all VM sizes are available in every region. To resolve this error, you will need to adjust the VM size or region in your deployment parameters.

Steps to Resolve the Issue

Step 1: Verify Available VM Sizes in Your Region

Not all Azure VM sizes are available in all regions. To determine which VM sizes are supported in the region you’re deploying to (eastus in this case), you can use the Azure CLI or check the official documentation.

Using Azure CLI to List Available VM Sizes:

Run the following command in the Azure CLI to list all available VM sizes in a specific region (e.g., eastus):

az vm list-sizes --location eastus --output table

This command will return a list of all the supported VM sizes in the eastus

--

--

Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday