HOW TO CREATE VIRTUAL MACHINE SCALE SET
Published: 2024-04-25 11:25:03

Azure virtual scale set is used for creating and managing a group of load balanced VMs.
Azure Virtual Machine Scale Sets provide the management capabilities for application that run across many VMs, automatic scaling of resources, and load balancing of traffic.
             **BENEFITS OF VM SCALE SET**
  1.Easy to create and manage multiple VMs.
  2.Provides high availability and application resiliency.
  3.Allows your application to automatically scale as resource 
    demand changes.
  4.It makes it easier to work with large scale of virtual 
     machines.
        **HOW TO DEPLOY A VIRTUAL MACHINE SCALE SET.**
a. Login to azure portal using the link below.
Click on create in the link page
https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/quick-create-portal?source=recommendations#log-in-to-azure
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o2ai91tcnek4wd0woe1y.png)
b.In the Basics tab, under Project details, for resource group click create and add a suitable name for your resource group and virtual machine to be created

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2y264uln7c0b5pniu790.png)
c.In Region, select a region that is close to your area or any suitable one of your choice

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k67b80ul737td2az4ht0.png)
d.In Cloud computing, orchestration technologies integrate automated tasks and processes into a workflow to perform specific business functions.
There are two types of orchestration mode
1. Flexible orchestration mode
2. Uniform orchestration mode

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yfidmfafq2q8xwiv7ri7.jpg)
Under Orchestration, ensure the Uniform option is selected for Orchestration mode.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tvn4nl7b499g98hkbvhs.png)
e. Select autoscaling for scaling mode.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7ws380s5vs322l5cdwfv.png)
f.Select the number of instances that you want for your virtual machine.
NB; for uniform mode minimum is 2 and max is 20 while for flexible ochestration mode the minimum is 2 and maximum is 1000 or more
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5mp6bieoxdtfwfo83n3j.png)
  
g. Select image based on your choice. In this example, we have chosen Ubuntu Server

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8lxiu4id1779f78eqihf.png)
 h.Enter your desired username, and select which authentication type you prefer.If you select a Linux OS disk image, you can instead choose SSH public key.for this,a public key is selected

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ybblkiraa82brma97kov.png).
i.Select **Next**leave spot page as default

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

j. Leave   Disks page as default.click **next**
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u1fd733dytpuewlqvt1o.png)
k.Leave networking as default and click **next**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5azeuw4o94l5ogj5in1e.png)
l.In Load balancing options, select create.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ii5m12zur9vz60gnjenp.png)
In Select a load balancer, select and create
 a. Give name to the load balancer. 
 b. Under type select public and internal. Leave port as 80 and then 
 click create.

m. Select Next **management **

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tuu486pokxbs42b1dqra.png)
for upgrade policy select automatic

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h8dm6zmbpcgedcxbzpr8.png)
n. select next Health

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mol806e46hcayw9i19gn.png)
click enable health monitoring and automatic repair
o. Select next Advanced

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7bpq2hfyhr082qrd3o6e.png)
p. Select next Tags and click review and create
It will display validation passed.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vj7i4tlbpss8rgf0k2fl.png)
q. Select create.

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


r. You can check your virtual machines by 
 1. Selecting go to resource

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9c9k5ufhiz60dbp46j28.png)
2. Select instances.
It will display the total number of instances that is running on your vm at the moment

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/08rtumf6e5x4x76tzcxe.png)