A Simple Guide to Deploying Azure Virtual Machine Scale Sets (VMSS)
Azure Virtual Machine Scale Sets are a group of load balanced VM instances that can be easily scaled up or down in response to demand or a defined schedule.
Scale sets can be deployed with Windows server image or Linux image. But for this tutorial, we’d be deploying a Linux based VMSS via the Azure portal.
Step1: On the Azure portal, search for Virtual Machine Scale Sets and select it.
Step2: On the VMSS page click create, the basics tab page shows up.
Create a new resource group for the VMSS
Create a name for the scale set.
Select a region close to you.
Availability zone: none
Orchestration mode: Uniform (create identical VMs when scaling)
Security type: Standard
Scaling mode: Manual
Instance count: 2
Then Click on configure scaling options
Step 3: Configure the VM
Select the server image
Select the VM size
Authentication type: SSH public key
Set an Admin Username for logging into the VMs
SSH public key source: Generate new key pair
SSH key type: RSA SSH Format
Name the key pair that would be generated.
Then go to the next tab. We could skip the spot and disk tabs and head on to the networking tab.
The Edit network interface page opens,
Click on Allow selected ports for Public Inbound ports, then select the ports you want, In this case HTTP(80) and SSH(22).
Make sure the Public IP address is also enabled to facilitate connection via SSH to the VMSS, then save.
A side pane opens on the right,
We name the load balancer, and then click create.
When the resource is successfully deployed, click go to resource.
We can choose to either connect to the VMs in our scale set individually or manage them as a whole.
In this tutorial, the latter would be the case.
To do this, we locate our downloaded key pair file and copy the file path.
Then we can now connect the VMSS backend via SSH but we have to specify the frontend port range from when we created the load balancer for the VMSS.
Any updates or installations made whilst connected now would affect all VM instances running in the scale set, which makes it very easy to manage the Virtual machine scale set.
Thanks for your read.
SOCIAL SHARE CARD GENERATOR