Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a list of available vm sizes in an azure location

Tags:

azure

I want to deploy a VM in microsoft's azure with a new size. Usually I use a json template for the vm with size 'Standard_DS3' Now I would like to have another one with size a3 'A3', but this causes an error

statusMessage:{"error":{"code":"InvalidParameter","target":"vmSize","message":"The value of parameter vmSize is invalid."}}

So I was wondering where can I find valid vm sizes for deployments in a location and the correct name for the deployment with a template file?

like image 885
dc10 Avatar asked Nov 23 '15 20:11

dc10


People also ask

How do I get a list of VMs in Azure?

Once the Azure subscription is set, we can use the below command to retrieve the Azure VMs. To get the particular azure VM using CLI, we need to provide the VM name and resource group name. “az vm show” command finds the VM from the list using parameter -n (VMName) -g (resource group Name).

How would you get a list of all virtual machines?

PowerCLI C:\> Get-VM -Name *[0-4] Copy The preceding command lists all of the virtual machines that have names ending with 0 , 1 , 2 , 3 , or 4 .

What are the sizes of the Azure VM?

They are equipped with 2 GB RAM and 16 GB of local solid state drive (SSD) per CPU core and are optimised for compute intensive workloads. The Fsv2-series features 2 GiB RAM and 8 GB of local temporary storage (SSD) per vCPU.

How do I check if a VM is available in Azure?

Go to the menu for your virtual machine. Either click Go to Insights from the tile in the Overview page, or click on Insights from the Monitoring menu. If Azure Monitor for VMs has not yet been enabled for the virtual machine, click Enable.


1 Answers

One can list all vm-sizes available in specific location(e.g westus) from Azure CLI 2.0 using following command

az vm list-sizes --location "westus"
like image 50
avr Avatar answered Oct 14 '22 04:10

avr