Writing Virtual Machine Scale Set
Tags: hagital, vmss, cloud, azure
Published: 2024-07-04 14:56:53

---

## **INTRODUCTION**

**VMSS (VIRTUAL MACHINE SCALE SET) **It is a feature in Azure that allows you to deploy and manage a group of identical virtual machines (VMs) as a single entity. VMSS is designed for high availability and scalability, making it ideal for applications that require automatic scaling based on demand.
 Virtual Machine Scale Sets (VMSS) in Azure provide a service-level agreement (SLA) of up to 99.99 percent for your virtual machines (VMs). This SLA ensures that your VMs deployed within a VMSS will have a high level of availability and reliability.

The SLA guarantees that Microsoft Azure will deliver the specified level of uptime for your VM instances in a VMSS configuration. If Azure fails to meet the SLA, you may be eligible for service credits.

TABLE OF CONTENT

1. INTRODUCTION.
2. CREATING YOUR VMSS VIA AZURE PORTAL.
3. AUTO SCALING CONFIGURATION.
4. NETWORK SETTING.


**CREATING YOUR VMSS VIA AZURE PORTAL**
YOUR SUBSCRIPTION, RESOURCE GROUP AND NAME ARE START U ESSENTIALS IN CREATING YOUR VMs AND VMSS, SUBSCRIPTION NAMES MOST OMES AS DEFAULT WHILE OTHERS CAN BE NAMED ACCORDING TO THE NEED OR ADMINISTRATORS OR AS JOB DEMANDS.

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


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

AUTO SCALING MUST BE CONFIGURED AND ADDING SCALING CONDITIONS BASED ON CPU METRIX,




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


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

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


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



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


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

THE FINAL SET UP ON YOUR BASIC PAGE IS TO SELECT YOUR SSH PUBLIC KEY AND AND CREATING YOUR KEY PAIR NAME, SETTINGS ON THE SPOT PAGE.


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


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

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


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



**<u>NETWORK SETTING</u>**

A NETWORK INTERFACE ALLOWS AZURE VIRTUAL MACHINE TO COMMUNICATE WITH THE INTERNET AND CO-PREMISES RESOURCES, A VM CAN HAVE ONE OR MORE RESOURCES.
CLICK ON THE NETWORK NAME AND SELECT LOAD BALANCER.


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


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


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


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


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




**CLICK ON CREATE AND REVIEW** TO DEPLOY CREATED RESOURCES AND AFTER FULLY DEPLOYING , GENERATE YOUR NEW PAIR KEY BY DOWNLOADING PRIVATE KEY AND CREATE RESOURCE.


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


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


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


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


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


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


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


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


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




**<u>N.B</u>**

AVAILABILITY IN ZONES CAN AFFECT RATES AND SPECIFICATION SELECTION, WHEN THERE IS A CHALLENGE IN DEPLOYING SUCH RESOURCES IT IS ADVISABLE TO CHANGE OR OPT FOR AN ALTERNATIVE ZONE, THOUGH HIGHER RATES MAY APPLY.


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


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


DEPLOYED RESOURCES CAN BE CHECKED ON LINUX FOR STRESS CHECK AND FURTHER DEPLOYMENT.


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


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


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


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


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

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


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


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


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


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


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


THE FOLLOWING STEPS WILL TAKE YOU THROUGH WINDOWS **RESIZING OF DEPLOYED RESOURCES**, FOR IMMEDIATE ACTION FOR THE PURPOSE OF LEARNING.


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


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


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


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


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


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


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


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


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


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

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

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

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


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


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


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


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


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


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


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


**SUMMARY**

VMSS (Virtual Machine Scale Sets) in Azure is a powerful feature that allows for automatic scaling of virtual machine instances based on demand. By leveraging VMSS, you can ensure that your applications have a reliable and highly available infrastructure to meet your business needs. It provides resiliency against hardware failures and planned maintenance events, distributing VM instances across fault domains and update domains, VMSS is a valuable tool for achieving scalability and reliability in Azure.