Virtual Machine Scale Set, an interesting service offered by Microsoft Azure, helps to create and manage a group of identical, load balancer Virtual Machines (VMs). The number of VM instances can automatically increase or decrease based on scheduled conditions.
Scale Sets are used to run multiple instances of an application and even if a problem arises, the customers can continue to access the application through one of the other instances with minimal interruption. Thus, Scale Sets provide high availability to your applications, and allow you to centrally manage, configure, and update many VMs.
We can also use the Availability Zone to automatically distribute VM instances in a Scale Set with a single datacenter or across multiple datacenters. With the help of Virtual Machine Scale Sets, we can build large-scale services for areas such as compute, big data, and container workloads. A Scale Set can have around 0 to 1000 VMs based on platform images and around 0 to 600 VMs based on custom images.
Difference between Virtual Machine and Virtual Machine Scale Set
Best Way to reduce cost when you go with VMSS
It is said that Virtual Machine Scale Set is costly but there are ways to optimize the cost. If you are just testing, deploy VMSS with no auto scale. For the dev environment we can use VMSS with auto-scale with general purpose VMs and finally for production environment we can go with a combination of Low Priority and General purpose VMs, and auto Scale. We only need to pay for the underlying compute resources such as the VM instances, load balancer, or Managed Disk storage. The management and automation features, such as auto scale and redundancy, incur no additional charges over the use of VMs.
How to create Virtual Machine Scale Set from Azure Portal:
1. First, login to your Azure portal and select Create Resources and search for Virtual Machine Scale Set. A page similar to the one shown below will appear.VMSS real world best practices which we can follow:
Additional References:
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-faq
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/quick-create-portal
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/overview