hands-on lab

Creating Your First Azure Virtual Machine Scale Sets

Up to 1h
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


Azure Virtual Machines Scale Sets (VMSS) is an IaaS that allows you to create and manage a group of Virtual Machines (VM) behind a load balancer. Scale sets provide you the ability to increase and decrease the number of VMs based on the workload's requirement and user's demand. VMSS allows you to build large-scale infrastructure suitable for big data and compute.

VMSS helps improve the performance and redundancy of applications requiring a VM with a dedicated OS for hosting the workloads. Since the application is accessed through a load balancer, the requests are distributed to multiple workloads without overloading a single host.

In this hands-on lab, you will create a Scale Set and run an Nginx web server using VM Extension.

Learning Objectives

Upon completion of this intermediate-level lab, you will be able to:

  • Understand the Virtual Machine Scale Set offering
  • Configuring VMSS service in Azure
  • Understand and configure VM Extension to install a web server on VMSS host

Intended Audience

  • Candidates for Azure Administrator Exam (AZ-104)
  • Cloud Architects
  • DevOps Engineers
  • Software Engineers


Familiarity with the following will be beneficial but is not required:

  • Azure Virtual Machines
  • Azure Storage Accounts

The following content can be used to fulfill the prerequisite:


October 5th, 2023: Updated instruction to resolve custom script error and missing load balancer



Environment before

Environment after

About the author

Learning paths

Parveen is an Azure advocate with previous experience in the professional consulting services industries. He specializes in infrastructure and DevOps with a wide range of knowledge in security and access management. He is also an Azure Certified - DevOps Engineer Expert, Security Engineer, Developer Associate, Administrator Associate, CompTIA Certified - Network+, Security+, and AWS Cloud Practitioner.
Parveen enjoys writing about cloud technologies and sharing the knowledge with the community to help students upskill in the cloud.

Covered topics

Lab steps

Logging in to the Microsoft Azure Portal
Creating Virutal Machine Scale Sets Using Azure Portal
Enabling WebServer on Azure VM Scale Sets