DEV Community

Cover image for Azure VM Scale Set #Part 3: How to Create a Virtual Machine scale set in Azure

Azure VM Scale Set #Part 3: How to Create a Virtual Machine scale set in Azure

In the first two parts of this series, we connected to a Windows VM, added a data disk, and captured a reusable image with Azure Compute Gallery. Now, in Part 3, we’ll use that custom image to create a Virtual Machine Scale Set (VMSS), enabling scalable, load-balanced deployments to meet dynamic workload demands efficiently.

An important concept of VMSS is an Azure load balancer; it distributes incoming traffic to a pool of VMs or VM instances. It is always automatically configured in Azure VMSS.

Go over the other parts of the series before this:

VMSS

Let's dive into the VMSS setup!


Part 3: How to Create a Virtual Machine scale set in Azure

  • In the VM image created, click the + Create VMSS button.
    Create VMSS

  • Give the VMSSS a Name

  • In orchestration mode, select Flexibile
    Note: In flexibility mode, you manually create and add a VM of any configuration to the scale set. While in uniform mode, you define a VM model, and Azure will generate identical instances based on that model.

  • Leave everything else as default

  • Click on Review and create
    Review and create

Review and create

  • Click Go to resource Go to resource

VMSS

  • Go to Availability + scale section
  • Select Scaling
  • Set the Instance count to the number of VMs you want to Create
  • Save the configuration
    Scaling the VMSS

  • Confirm the VMs are running
    VMSS running

Conclution:

With this final step, you've successfully created a Virtual Machine Scale Set using a custom image from Azure Compute Gallery, building on the foundational tasks of connecting to a VM, adding a data disk, and capturing a reusable image. Your scalable, load-balanced infrastructure is now ready to handle dynamic workloads efficiently, completing the journey toward optimizing your Azure environment.


Thank you for reading my blog.😊😊

If you need further assistance, feel free to reach out in the comment or hit me up on Twitter. You can also follow me on GitHub. My DM's are open and love discussions on cloud topics!😁

Top comments (0)