DEV Community

Cover image for How to Create Virtual Machine Scale Set.
Emeka moses
Emeka moses

Posted on

How to Create Virtual Machine Scale Set.

  • Login to Azure
  • Create a Virtual Machine Scale Set
  • Clean Up Resource

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

Loging 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, Ubuntu, or SLES.

  • Type Scale set in the search box. In the results, under Marketplace, select Virtual Machine Scale Sets.

  • Select Create on the Virtual Machine Scale Sets page, which opens the Create a Virtual Machine Scale Set page.

Image description

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

Image description

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

  • Under Orchestration, select Uniform.

Image description

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

Image description

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

Image description

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.

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.

  • Select Next: Disks to move the disk configuration options
    leave the default disk configurations.

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

Image description

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

  • In Load balancing options, select Azure load balancer.

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

Image description

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

Image description

Select Next: Scaling to move to the scaling configurations.

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

For the Scaling policy, selete custom autoscale

Image description

Image description

Image description

  • When you're done, select Review + create.

After it passes validation, select Create to deploy the scale set.

Image description

Clean Up Resources

Delete Resource

When no longer needed, you can delete the resource group, virtual machine, and all related resources.

  • On the Overview page for the VM, select the Resource group link

  • At the top of the page for the resource group, select Delete resource group.

  • A page will open warning you that you are about to delete resources. Type the name of the resource group and select Delete to finish deleting the resources and the resource group

Top comments (0)