DEV Community

Cover image for AZURE VIRTUAL MACHINE SCALE SET (VMSS)
Omoniyi
Omoniyi

Posted on

AZURE VIRTUAL MACHINE SCALE SET (VMSS)

INTRODUCTION TO VIRTUAL MACHINE SCALE SET
Azure Virtual Machine Scale Sets (VMSS) is a feature on the Azure portal that allows you create and manage a group of load balanced virtual machines (VM). The number of VM instances can automatically increase or decrease in response to demand or a defined schedule following a predifined setting. Scale sets provide the following key benefits:
Easy to create and manage multiple VMs
Provides high availability and application resiliency by distributing VMs across availability zones or fault domains
Allows your application to automatically scale as resource demand changes
Works at large-scale

CREATION OF VIRTUAL MACHINE
You can deploy a scale set with a Windows Server image or Linux image, Ubuntu image was used in the training session.

1.Type vmss in the search box. In the results, under services, 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
Image description

2.In the Basics tab, under Project details, make sure the correct subscription is selected and select the desired Resource Group from resource group list or or you create new, be sure the desire VM scale set name, the region and availability zone as desired too.
Image description

3.Under Orchestration, ensure the Uniform option is selected for Orchestration mode, standard for security type and autoscaling for scaling mode

Image description

4.Select configure under scaling configuration and get prepared to do the necessary configurations as in the images below
Image description

Image description

Image description

Image description

Image description

Image description

5.Select the VMSS condition that you just configured. Select a marketplace image for Image. In this example, we have chosen Ubuntu Server 18.04 LTS.

Image description

6.Select the desired scale-in policy. Newest VM is the desired option in this example and click save
Image description

7.Under Administration account, Enter your desired username, and select which authentication type you prefer. 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.
Image description

8.Select Next to move the other pages. Leave the defaults for the Disks page.

9.On the Networking page, use a preferred network name or use default, under Load balancing, select the Use a load balancer option to put the scale set instances behind a load balancer.

In Load balancing options, select Azure load balancer.

Image description

Image description

Image description

Image description

Image description

In Select a load balancer, select the load balancer that you created earlier.

Image description

Image description

Image description

Image description

Image description

Image description

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

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

Image description

Image description

12.Click to generate key and save it in a known location
Image description

13.It takes a few seconds before deployment is achieved. Thereafter, go to resource to check the configuration of the VMSS.
Image description

Image description

To check the instances created, go to instances as below. it will show the number of instances created, 2 for this example.
Image description

REMEMBER TO CLEAN UP RESOURCES WHEN YOU ARE DONE.

THANKS

Top comments (0)