Exploring Scaling and Load Balancing with VM Scale Sets | Scribe

    Exploring Scaling and Load Balancing with VM Scale Sets

    • Hafeez Baig |
    • 24 steps |
    • 2 minutes
    information ordinal icon

    Refer to this guide to learn how to create an Virtual Machine Scale set<https://scribehow.com/shared/01__Exploring_Scaling_and_Load_Balancing_with_VM_Scale_Sets__YqMLr3E1QLiQyZZz9_OFxQ>

    1

    Sign in into the **Microsoft Azure Portal**

    2

    Type **Virtual Machines scale sets** in the search bar and click on the **Virtual Machines scale sets**

    information ordinal icon

    **What is Virtual Machines scale sets?**\ \ Virtual Machine Scale Sets (VMSS) is a feature in Azure that allows you to deploy and manage a group of identical, auto-scaling virtual machines. VMSS automatically adjusts the number of virtual machines in the set based on demand or a defined schedule. This capability helps ensure high availability and scalability of applications hosted on Azure by dynamically scaling resources up or down to match changing workload requirements.

    3

    On the **Virtual Machine scale sets** dashboard, click on the Name - **vm-scale-set-1**

    4

    You can check the **Status** it is showing **2 out of 2 succeeded,** that means the VM's are up and running.

    5

    To view the **Instances** created by the VM Scale set, click on the **Instances** from the left bar

    6

    **Instances** wizard will open, here you can see the Scale set has created 2 Virtual Machines, click on the first **VM** to view its details

    7

    **Instance** 1 wizard will open, here you can view the **Status** showing that the VM is Running

    8

    Locate the **Public IP address** on the right side and click on the copy widget

    9

    Open the new tab in the browser and paste the **Public IP address** in the search bar

    10

    You can see **Hello World** **Note:** You can use the same steps for the second instance of the VM scale set to view the Hello World message using the public IP address.

    information ordinal icon

    The instance is currently running, and as we've included a bash script in the cloud-init configuration during the creation of the VM scale set, the "Hello world" message is also being displayed.

    11

    To view the Load Balancers created by Scale set, type **Load balancers** in the search bar and click on the **Load balancers**

    information ordinal icon

    **What is Load Balancer?**\ \ A Load Balancer evenly distributes incoming network traffic across multiple servers or resources to enhance performance and ensure high availability of applications.

    12

    **Load Balancer** wizard will open, click on the **vm-scale-set-1-lb** **Note:** This Load Balancer is created by the Virtual Machine Scale set

    13

    **vm-scale-set-1-lb** wizard will open, locate the **Public IP address** on the right side and click on the copy button

    14

    Open the new tab in the browser and paste the **Public IP address** in the search bar

    15

    You can see **Hello World**

    information ordinal icon

    The Load Balancer associated with the virtual machine scale set manages traffic between the two instances created by the scale set. It alternates between these instances, distributing the load evenly, ensuring that requests are served by either instance interchangeably.