Create virtual machines in a scale set using Azure portal

Caution

This article references CentOS, a Linux distribution that is nearing End Of Life (EOL) status. Please consider your use and planning accordingly.

This article steps through using Azure portal to create a Virtual Machine Scale Set.

Log in to Azure

Sign in to the Azure portal.

Create a Virtual Machine Scale Set

You can deploy a scale set with a Windows Server image or Linux image such as RHEL, CentOS, Ubuntu, or SLES.

  1. In the Azure portal search bar, search for and select Virtual Machine Scale Sets.

  2. Select Create on the Virtual Machine Scale Sets page.

  3. In the Basics tab, under Project details, make sure the correct subscription is selected and create a new resource group called myVMSSResourceGroup.

  4. Under Scale set details, set myScaleSet for your scale set name and select a Region that is close to your area.

  5. Under Orchestration, select Flexible.

  6. Under Instance details, select a marketplace image for Image. Select any of the Supported Distros.

  7. Under Administrator account configure the admin username and set up an associated password or SSH public key.

    • A Password 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. For more information, see username and password requirements.
    • If you select a Linux OS disk image, you can instead choose SSH public key. You can use an existing key or create a new one. In this example, we will have Azure generate a new key pair for us. For more information on generating key pairs, see create and use SSH keys.

A screenshot of the Basics tab in the Azure portal during the Virtual Machine Scale Set creation process.

  1. Select Next: Disks to move the disk configuration options. For this quickstart, leave the default disk configurations.

  2. Select Next: Networking to move the networking configuration options.

  3. On the Networking page, under Load balancing, select the Use a load balancer checkbox to put the scale set instances behind a load balancer.

  4. In Load balancing options, select Azure load balancer.

  5. In Select a load balancer, select a load balancer or create a new one.

  6. For Select a backend pool, select Create new, type myBackendPool, then select Create.

A screenshot of the Networking tab in the Azure portal during the Virtual Machine Scale Set creation process.

  1. Select Next: Scaling to move to the scaling configurations.

  2. On the Scaling page, set the initial instance count field to 5. You can set this number up to 1000.

  3. For the Scaling policy, keep it Manual.

A screenshot of the Scaling tab in the Azure portal during the Virtual Machine Scale Set creation process.

  1. When you're done, select Review + create.
  2. After it passes validation, select Create to deploy the scale set.

Clean up resources

When no longer needed, delete the resource group, scale set, and all related resources. To do so, select the resource group for the scale set and then select Delete.

Next steps