Creating Virtual Machine Scale Set Using Azure Portal
Tags: virtualmachine, scaleset, resources
Published: 2024-06-29 07:34:18



- Sign in to the Azure portal.
- Put in your log-in details
- Ensure you use the right pass word
- Continue with other prompts
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fs36h1zyorkpdnx9kknl.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fricc3z00hl5gayx4ywj.png)



Step 2     Create a Virtual Machine Scale Set
       (a) At the search bar, type **Vmss and select Virtual Machine Scale Set **

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8i8lg3fvcp2npbhrlw5s.png)
       (b) Click + Create to create **Virtual Machine Scale Set**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6q1gt1qkmihhlvih7j10.png)

       (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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/okkyyzvhkzpwq05cxu7d.png)

(e) In the **Orchestration** ,set orchestration mood  to 'uniform'

(f) In **Scaling**, set the scaling mood to ' Autoscaling

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6abcyp23gzntbvqj54db.png)


'
In scaling configuration, click configure to review all scaling options.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/syng4nzi7vd8x29a2dya.png)
(g) Click on + add a scaling condition 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/25webzpgy0adpd64qrqn.png) 
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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sky8wak61j5m1vsjocm9.png)
**Scale out**
CPU threshold less than ........ 50
Increase instant count .......... 1
**Scale in**
CPU threshold less than ......... 25
Decrease instant count .......... 1

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/anrrfss0muzwiudcx0ls.png)
**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
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v8etlwagh7njjoohqlh3.png)
**Scaling Condition**
Click the Check box of both condition and vmss-condition
**Predictive autoscaling**
Click the Check box to enable forecast for predictive autoscaling

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h5oco5aiog8aucynbpky.png)
**Diagnostic logs**
Do not check the box
**Scale in policy**
You can use the dropdown and make your choice
Leave other things and Save

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ipxgpaezcbbxj7t5u25c.png)