Creating a virtual machine scale

  1. Home
  2. Creating a virtual machine scale

Return to AZ-104 Tutorial

Here you will learn about virtual machine scale set in the Azure portal. We will discuss each and every step for the following. So, let’s begin.

A virtual machine scale set enables you to deploy and maintain a set of auto-scaling virtual machines. Also, you can scale the amount of VMs in the scale set manually. Not to mention, you can specify rules to autoscale on the basis of resource usages like CPU, memory demand, or network traffic. Moreover, an Azure load balancer, later on, allocates traffic to the VM instances in the scale set. 

So, to the following scenario, follow the following steps:

Creating a load balancer

An Azure load balancer divides incoming traffic among healthy VMs instances.

Therefore, first, create a public Standard Load Balancer by utilising the portal. 

  1. To begin with, in the search box, typewrite load balancer. Under Marketplace in the search results, select Load balancer.
  2. Next, in the Basics tab of the Create load balancer page, enter or select the following information:
SettingValue
SubscriptionSelect your subscription.
Resource groupSelect Create new and type myVMSSResourceGroup in the text box.
NamemyLoadBalancer
RegionSelect East US.
TypeSelect Public.
SKUSelect Standard.
Public IP addressSelect Create new.
Public IP address namemyPip
AssignmentStatic
Availability zoneSelect Zone-redundant.
Source: Microsoft
  1. Later, when you are done, click select Review + create
  2. Lastly, after it passes validation, click and select Create.
Create a load balancer
Source: Microsoft
Creating a virtual machine scale set

You can easily deploy a scale set with a Windows Server image or Linux images such as RHEL, CentOS, Ubuntu, or SLES.

Practice Test for AZ-104
  1. First of all, type Scale set in the search box. And, then, under Marketplace, choose Virtual machine scale sets. Next, choose to Create on the Virtual machine scale sets page, that will open the Create a virtual machine scale set page.
  2. After this, in the Basics tab, beneath Project details, make sure the correct subscription is chosen and then select to Create a new resource group. Also, type myVMSSResourceGroup for the name and then select OK.
  3. Thirdly, type my scale set as the name for your scale set.
  4. After this, in Region, choose a region that is close to your area.
  5. Now, leave the default value of ScaleSet VMs for Orchestration mode.
  6. Further, choose a marketplace image for Image. 
  7. Now, enter the desired username, and pick which authentication type you prefer.
  8. Select Next to move the other pages.
  9. Now, make sure to leave the defaults for the Instance and Disks pages.
  10. Moving onto the Networking page, following Load balancing, choose Yes to put the scale set instances behind a load balancer.
  11. After this, in Load balancing options, choose Azure load balancer.
  12. Now, select myLoadBalancer that you generated earlier.
  13. Now, select Create new, type myBackendPool, then choose to Create.
  14. Moving on, pick and select Review + create.
  15. After it announces validation, now, select Create to deploy the scale set.
Cleaning up resources

When no longer required, delete the resource group, scale set, and all related resources. In order to do so, select the resource group for the scale set and then select Delete.

virtual machine

Reference: Microsoft Documentation

Return to AZ-104 Tutorial

Menu