DEV Community

Cover image for HOW TO CREATE VIRTUAL MACHINE SCALE SET
Olusegun Solomon
Olusegun Solomon

Posted on

HOW TO CREATE VIRTUAL MACHINE SCALE SET

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
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
c.In Region, select a region that is close to your area or any suitable one of your choice

Image description
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
Under Orchestration, ensure the Uniform option is selected for Orchestration mode.

Image description
e. Select autoscaling for scaling mode.

Image description
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

g. Select image based on your choice. In this example, we have chosen Ubuntu Server

Image description
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.
i.Select Nextleave spot page as default

Image description

j. Leave Disks page as default.click next

Image description
k.Leave networking as default and click next

Image description
l.In Load balancing options, select create.

Image description
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
for upgrade policy select automatic

Image description
n. select next Health

Image description
click enable health monitoring and automatic repair
o. Select next Advanced

Image description
p. Select next Tags and click review and create
It will display validation passed.

Image description
q. Select create.

Image description

r. You can check your virtual machines by

  1. Selecting go to resource

Image description

  1. Select instances. It will display the total number of instances that is running on your vm at the moment

Image description

Top comments (0)