This content originally appeared on DEV Community and was authored by Romanus Onyekwere
Table of Contents
Introduction
Step 1. Sign to Azure Account
Step 2. Create a Virtual Machine Scale Set
Introduction
Creating a Virtual Machine Scale Set (VMSS) in Azure involves several steps. A VMSS allows you to deploy and manage a set of identical, auto-scaling virtual machines. Here’s a step-by-step guide to create a VMSS using the Azure portal:
Step 1 Sign to Azure Account
(a) Go to Azure Portal (portal.azure.com)
(b) Sign in with your Azure Credentials
Step 2 Create a Virtual Machine Scale Set
(a) At the search bar, type *Vmss and select Virtual Machine Scale Set *
(b) Click + Create to create Virtual Machine Scale Set
(c) Fill in the required rows from **Project details** which include;
Subscription; Choose your Azure Subscription.
Resource Group; Create a new name for the Resource Group. (vmss-RG)
(d) At the Scale set Details, make sure you put the Virtual Machine scale set Name (hagital-vmss).
Leave the region to (US) East us and Availability zone to None
(e) In the Orchestration ,set orchestration mood to ‘uniform’
(f) In Scaling, set the scaling mood to ‘ Autoscaling
‘
In scaling configuration, click configure to review all scaling options.
(g) Click on + add a scaling condition
Another window will open at the right side corner. Continue with the prompt captioned Add a scaling condition.
Leave the condition name to vmss-condition
Leave the scale mode to autoscaling.
Initial Instant count …….. 2
Instance limit
Minimum ……. 2
Maximum ……. 4
Scale out
CPU threshold less than …….. 50
Increase instant count ………. 1
Scale in
CPU threshold less than ……… 25
Decrease instant count ………. 1
Query duration
Minutes …………… 6
Schedule
Schedule type ……… Repeat specific days
Time zone …………. UTC+0100 West Central Africa
Schedule day ………. Monday, Wednesday, Friday
Save and you will get a Scaling Condition window
Scaling Condition
Click the Check box of both condition and vmss-condition
Predictive autoscaling
Click the Check box to enable forecast for predictive autoscaling
Diagnostic logs
Do not check the box
Scale in policy
You can use the dropdown and make your choice
Leave other things and Save
This content originally appeared on DEV Community and was authored by Romanus Onyekwere