Azure Virtual Machine Scale Set (VMSS) Part1 — Architecture and Deployment

  • Easy to create and manage multiple VMs
  • Provides high availability and application resiliency
  • Allows your application to automatically scale as resource demand changes
  • Works at large-scale

Architecture

Image Source: Virtual Machine Scale Set (VMSS) — MyKloud (wordpress.com)

Deployment

az network lb inbound-nat-pool show -g MyResourceGroup --lb-name MyLb -n MyNatPool
az vmss list-instance-connection-info \
--resource-group myResourceGroup \
--name myScaleSet
psping 20.98.121.11:50000
ssh jonw@20.98.121.11 -p 50000
az vmss extension set \
--publisher Microsoft.Azure.Extensions \
--version 2.0 \
--name CustomScript \
--resource-group <resource group name> \
--vmss-name <scale set name> \
--settings '{"fileUris":["https://raw.githubusercontent.com/Azure-Samples/compute-automation-configurations/master/prepare_vm_disks.sh"],"commandToExecute":"./prepare_vm_disks.sh"}'
# SSH into one of the instances
- ssh <username>@<VMSS public IP> -p <LB frontend assigned port>
# examine partitions
- sudo fdisk -l
# examine filesystems and mount points
- sudo df -h
  • Reimage: This means the instance within VMSS will be deleted and replaced by an instance created from the original assigned image.
  • Update: This is used when there is no upgrade policy.
  • Upgrade: This is used changes made on the scale set need to be applied to each instance. There are 3 different policies, automatic, manual and rolling.

--

--

--

Learning new things about Kubernetes every day. Hopefully, the learning notes could help people on the same journey!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Deploy MongoDB into IBM Cloud Private

How to get started with Cloud Computing | AWS Cloud.

Golang: Error Handling In One Line of Code

Constructing Multi-Turn Conversational Voice Experiences with a Knowledge Graph

Aggregator Leaf Tailer: An Alternative to Lambda Architecture for Real-Time Analytics

Laravel 9 Authentication with Laravel UI Tutorial

Laravel 9 Authentication with Laravel UI Tutorial

How To Make An Epic Discord Server For Your YouTube Channel — Part 11 Of 30 — Setting Up Members+…

How I fixed ‘Duplicate AdMob Account’ issue

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jonathan

Jonathan

Learning new things about Kubernetes every day. Hopefully, the learning notes could help people on the same journey!

More from Medium

Why use Azure AD Administrative Units?

💪Create CheckPoint CloudGuard Network Security — Firewall & Threat Prevention using Bicep Language

Cloud Security Defense In-Depth Azure Approach

AZURE AD APP REGISTRATION — CREATE APP ROLES USING MS GRAPH API AND POWERSHELL