AZURE VIRTUAL MACHINE SCALE SET (VMSS)
Tags: introductiontovmss, creationofvmss
Published: 2024-06-27 19:39:35

**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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/seovtntelwmxssxxbjqi.jpg)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ltnsdxsvrs0w5lg9e6j.jpg)

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f0c6ga3cfqhfoxrs2n54.jpg)

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ehijvrhlk504ynm1lpcb.jpg)

4.Select **configure** under scaling configuration and get prepared to do the necessary configurations as in the images below
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pjsfm2whw6f3fjpkghkb.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pjz11h44kpw2vz3g2bkf.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulg2zejkahpw4t2rj8l7.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ldpcuupi8i6eso79fboq.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ymzbiwl1a11iqe2hi2ve.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5smjip85xiav4cobrgx8.jpg)

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n2xopl4776ph5ps6j5t2.jpg)

6.Select the desired scale-in policy. **Newest VM** is the desired option in this example and click save
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4hk5qs2v2ril9fe6ask7.jpg)

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9093rlqcdzc8xtff42dp.jpg)

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u9lkku8lxrr8ag7414c7.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dyp208ebp0z4dlfeqnm1.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r8zphysritrda50gtvbn.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zpufz461lv7f4tqxmdo8.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6tgldslqn292hy162bxg.jpg)

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a1oawj9x2vrvmlt8q1vg.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zpw9zq7ez3o23madle1s.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yepkffpd6tgdydh1wh43.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wfoxy4x2x0h1f4o9jfqb.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tjndw1ggjqjlxzhrrlux.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jivgl3hx979uqhnlkhc7.jpg)

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

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yfxx6zi3c20b6zw330ds.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2emwcn8b9aybgk0f434m.jpg)

12.Click to generate key and save it in a known location
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1av6iwdryda5c7oldvrl.jpg)

13.It takes a few seconds before deployment is achieved. Thereafter, go to resource to check the configuration of the VMSS.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/82lkrrhxqdqogr7ug85i.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ychtw49xoy2aho8ixok.jpg)

To check the instances created, go to instances as below. it will show the number of instances created, 2 for this example.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ytc7c1zo39h7wznex362.jpg)

REMEMBER TO CLEAN UP RESOURCES WHEN YOU ARE DONE.

THANKS