Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created June 25, 2020 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manoj-choudhari-git/20d8a9cd73ef6a830586a85434ef1314 to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/20d8a9cd73ef6a830586a85434ef1314 to your computer and use it in GitHub Desktop.
Create VMSS using Azure CLI
## Create resource group in your preferred location
az group create --name myResourceGroup --location westeurope
## Command to create VMSS
## provide resource group name, and vmss name
## Load balance would automatically be created
az vmss create \
--resource-group myResourceGroup \
--name my-first-vmss \
--image UbuntuLTS \
--upgrade-policy-mode automatic \
--admin-username azureuser \
--generate-ssh-keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment