Skip to main content

Command Palette

Search for a command to run...

Creating and Configuring a Virtual Machine Scale Set

Updated
3 min read

Azure Virtual Machine Scale Sets (VMSS) is a highly scalable compute service that enables the deployment, management, and automatic scaling of a collection of identical, load balanced Virtual Machines (VMs). VMSS supports dynamic adjustment of the number of VM instances based on real-time performance metrics or predefined schedules, ensuring both high availability and operational efficiency.
Today we will be exploring key steps in configuring a virtual machine scale set (VMSS), but before we dive into it let us outline key features that make Azure VMSS important;

Key Features:

  • Simplified VM Management: Enables rapid creation and centralized management of hundreds to thousands of VM instances.

  • High Availability and Resilience: Distributes VM instances across multiple availability zones or fault domains to enhance fault tolerance and service continuity.

  • Automatic Scaling: Automatically adjusts the number of VM instances based on application demand or specified time based rules.

  • Large-Scale Operations: Designed to handle massive scaling requirements with minimal manual intervention.

Supported Operating Systems:

VMSS supports deployment of both Windows and Linux VMs, including distributions such as:

  • Red Hat Enterprise Linux (RHEL)

  • CentOS

  • Ubuntu

  • SUSE Linux Enterprise Server (SLES)

Use Cases:

  • Elastic scaling for web applications

  • High-performance computing (HPC) clusters

  • Microservices and container orchestration

  • Batch processing workloads

we have considered the significance of Azure VMSS especially in large scale operations, let us now look at the steps required to create and configure a virtual machine scale set.

Creating a Virtual Machine Scale Set

Step 1: Sign in to the Azure Portal

  1. Go to the Azure Portal.

  2. Sign in with your Azure account credentials.

Step 2: Create a Virtual Machine Scale Set

  1. In the Azure portal search bar, search for and select Virtual Machine Scale Sets.

  2. Select Create on the Virtual Machine Scale Sets page.

  3. In the Basics tab, under Project details, make sure the correct subscription is selected and create a new resource group called myVMSSResourceGroup.

  4. Under Scale set details, set myScaleSet for your scale set name and select a Region that is close to your area.

  5. Under Orchestration, select Flexible.

  6. Under Scaling mode select Auto scaling and configure the scaling conditions.

  7. Under Instance details, select a marketplace image for Image. Select any of the Supported Distros.

  8. Under Administrator account configure the admin username and set up an associated password or SSH public key.

  9. Select Next: Spot to move the spot VM configuration options. We will not be using spot VMs in this lesson so skip to the next.

  10. Select Next: Disks to move the disk configuration options. leave the default disk configurations for the purpose of this lesson.

  11. Select Next: Networking to move the networking configuration options.

    On the Networking page, edit the already existing Network Interface Card, or create a new one with its subnets and network security group set to Basic and ensure to allow selected ports so that Inbound Ports can be selected, also ensure that Public IP Address is enabled. Then click OK to save settings

  12. In Load balancing options, select Azure load balancer.

  13. In Select a load balancer, select a load balancer or create a new one.

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

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

  16. Wait for deployment to be completed.

  17. once deployment is completed click on go to resources to view all the resources provisioned.