How to move existing VM to VMSS in azure ?

Syed Hussain 0 Reputation points
2023-08-08T21:46:26.85+00:00

Hello,
I have to move my VM to VMSS, I can also bear downtime. Is there any guide which I can follow ?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,682 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
441 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Durkan 12,221 Reputation points MVP
    2023-08-08T22:30:11.9733333+00:00

    Hi

    see below, its not supported to move an existing VM to a scale set:

    https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm?tabs=portal#exceptions-to-attaching-a-vm-to-a-virtual-machine-scale-set

    You must attach the VM at the time of VM creation. You can't attach an existing VM to a scale set.

    However, you could generalize the VM, add it to an image gallery and use the image to create a scale set from the image:

    https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-use-custom-image-powershell

    Hope this helps,

    Thanks

    Michael Durkan

    • If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!
    1 person found this answer helpful.
    0 comments No comments

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.