DEV Community

Cover image for Creating a Virtual Machine Scale Set
Franklin Onuegbu
Franklin Onuegbu

Posted on

Creating a Virtual Machine Scale Set

Azure Virtual Machine Scale Sets allow you to deploy and manage a group of auto-scaling virtual machines.
the Benefit of virtual machine scale set include

1. Easy Management: Maintain consistent configurations across multiple VMs. All VM instances are created from the same base OS image and configuration. No extra configuration tasks or network management needed.

2. Automatic Scaling: Scale the number of VMs manually or define rules for autoscaling based on resource usage (CPU, memory, or network traffic). An Azure load balancer distributes traffic to VM instances in the scale set.

3. High Availability: Distribute VMs across availability zones or fault domains. Maintain fault domain isolation for quorum-based or stateful workloads.

4. Large-Scale Support: Flexible orchestration for up to 1000 VMs.
Mix virtual machine types or use Spot and on-demand VMs together.

To create a Virtual Machine Scale Set in Azure, follow these steps

  1. Log in to Azure: Sign in to the Azure portal

  2. Search for “Scale set” in the portal and click create virtual machine scale set.

Create 1

Create 2

  1. Choose an existing resource group or create a new one
  2. Set a name for your scale set (e.g., VM-SS), Select a region close to your area, set availability zone to "None" and Ensure the “Uniform” option is selected for Orchestration mode.

Image description
Choose a marketplace image (e.g., RHEL, CentOS, Ubuntu, or SLES).

  1. Scaling we have two types of scaling Manual and automatic but for this session we will go with automatic scaling.

Image description

Image description

Image description

Image description

  1. Instance details and Administrator account details.

Image description

7.Networking: we will need to modify the network interface, like allowing selected ports, selecting the ports, enabling public Ip address

Image description

  1. Load balancer we can select an existing load balancer or create a new one, we will select azure load balancer then only give it a name and leave every other things as default

Image description

Deployment

Image description

Top comments (0)