Forum Discussion
Prasad_Raju
Sep 07, 2021Copper Contributor
How to create 10 (multiple) virtual machines using power shell
Hi All, Can anyone please let me know how to create/configure multiple (10) virtual machines (Ubuntu Image) using power shell. Thanks in Advance
nigelm
Sep 09, 2021Brass Contributor
you could create a virtual machine scale-set (vmss) with 10 instances.
this is the Azure CLI method, powershell linked below
az vmss create --resource-group vmss-test-1 --name MyScaleSet --image UbuntuLTS --authentication-type password --admin-username azureuser --admin-password P@ssw0rd! --instance-count 10
https://docs.microsoft.com/en-us/powershell/module/az.compute/new-azvmss?view=azps-6.4.0
this is the Azure CLI method, powershell linked below
az vmss create --resource-group vmss-test-1 --name MyScaleSet --image UbuntuLTS --authentication-type password --admin-username azureuser --admin-password P@ssw0rd! --instance-count 10
https://docs.microsoft.com/en-us/powershell/module/az.compute/new-azvmss?view=azps-6.4.0