Working of VMSS-clone the vm in VMSS ?

Muhammad Farrukh 116 Reputation points
2022-12-21T07:40:00.417+00:00

I have some queries regarding virtual machine scale sets. Actually I have created VMSS which have minimum 1 and max 3 instances. I am confused about the working of vmss. eg when the second instance is created ,Will the 2nd or 3rd instance created would be the clone of the base instance? I put some txt files in base instant and then run heavyload on base instance to create 2nd and 3rd vms. But unfortunately I didn't see any of the files in those instances. It was just a simple vm with nothing in it.

Now my question is: If the newly created machines don't have replication or clones of base vm then what is the benefit of VMSS? 2) Suppose if i deployed some application on my base vm how would they distribute load to other created vms in vmss ? 3) Let's say we configure it through custom script then how continuous deployment would be sync to other created vms?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,360 questions
0 comments No comments
{count} votes

Accepted answer
  1. srbhatta-MSFT 8,576 Reputation points Microsoft Employee
    2022-12-21T09:57:07.23+00:00

    Hello @Muhammad Farrukh ,
    Welcome to Microsoft QnA.

    Virtual machine scale sets (VMSS) allow you to create and manage a group of identical, load balanced VMs. When you create a VMSS, you specify a base image to use when creating the VMs in the scale set. When you increase the number of VMs in the scale set, the new VMs will be created based on this base image. This means that the new VMs will not have any of the customizations or changes that you made to the base VM. They will be identical to the base image and will not contain any of the text files or other customizations that you made to the base VM.

    1. The benefit of VMSS is that it allows you to easily and automatically scale the number of VMs in your deployment up or down based on the workload and demand. This can help you ensure that you have enough capacity to handle the load and can reduce costs by scaling down when demand is low.
    2. If you deployed an application on the base VM, you would typically configure the application to be load balanced across all of the VMs in the scale set. This would allow the application to distribute the load across all of the VMs and improve performance.
    3. If you want to deploy updates or changes to the application on the VMs in the scale set, you can use a continuous deployment solution like Azure DevOps or Jenkins to automate the deployment process. This would allow you to automatically update the VMs in the scale set with the latest version of your application. You can also use custom scripts to automate the deployment process and ensure that the updates are applied consistently to all of the VMs in the scale set.

    Hope that helps. If you have any further questions, feel free to reach back. Thanks :)

    ----------

    Please accept as answer and upvote if the above information is helpful.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.