This tutorial shows you how easy it is to create a Virtual Machine Scale Set in just a few minutes, by using the Azure portal. If you don't have an Azure subscription, create a free account before you begin.
Choose the VM image from the marketplace
From the portal, you can easily deploy a scale set with CentOS, CoreOS, Debian, Open Suse, Red Hat Enterprise Linux, SUSE Linux Enterprise Server, Ubuntu Server, or Windows Server images.
First, navigate to the Azure portal in a web browser. Click
New, search for
scale set, and then select the
Virtual machine scale set entry:
Create the scale set
Now you can use the default settings and quickly create the scale set.
- On the
Basicsblade, enter a name for the scale set. This name becomes the base of the FQDN of the load balancer in front of the scale set, so make sure the name is unique across all Azure.
- Select your desired OS type, enter your desired username, and select which authentication type you prefer. If you choose a password, it must be at least 12 characters long and meet three out of the four following complexity requirements: one lower case character, one upper case character, one number, and one special character. See more about username and password requirements. If you choose
SSH public key, be sure to only paste in your public key, NOT your private key:
- Choose whether you would like to limit the scale set to a single placement group or whether it should span multiple placement groups. Allowing the scale set to span placement groups allows for scale sets over 100 VMs in capacity (up to 1,000) with certain limitations. For more information, see this documentation.
- Enter your desired resource group name and location, and then click
- On the
Virtual machine scale set service settingsblade: enter your desired domain name label (the base of the FQDN for the load balancer in front of the scale set). This label must be unique across all Azure.
- Choose your desired operating system disk image, instance count, and machine size.
- Choose your desired disk type: managed or unmanaged. For more information, see this documentation. If you chose to have the scale set span multiple placement groups, this option will not be available because managed disk is required for scale sets to span placement groups.
- Enable or disable autoscale and configure if enabled:
- On the
Summaryblade, when validation is done, click
OKto start the scale set deployment.
Connect to a VM in the scale set
If you chose to limit your scale set to a single placement group, then the scale set is deployed with NAT rules configured to let you connect to the scale set easily (if not, to connect to the virtual machines in the scale set, you likely need to create a jumpbox in the same virtual network as the scale set). To see them, navigate to the
Inbound NAT Rules tab of the load balancer for the scale set:
You can connect to each VM in the scale set using these NAT rules. For instance, for a Windows scale set, if there is a NAT rule on incoming port 50000, you could connect to that machine via RDP on
<load-balancer-ip-address>:50000. For a Linux scale set, you would connect using the command
ssh -p 50000 <username>@<load-balancer-ip-address>.
For documentation on how to deploy scale sets from the CLI, see this documentation.
For documentation on how to deploy scale sets from PowerShell, see this documentation.
For documentation on how to deploy scale sets from Visual Studio, see this documentation.
For general documentation, check out the documentation overview page for scale sets.
For general information, check out the main landing page for scale sets.