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?
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).
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 .
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.
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.
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With