how to migrate vm?

Gilbert Wong 0 Reputation points
2024-06-05T02:27:44.26+00:00

Virtual Machines in your subscription are running on images that have been scheduled for deprecation. Once the image is deprecated, new VMs cannot be created from the deprecated image. Upgrade to newer SKU of the image to prevent disruption to your workloads. Learn more

Hi,

anyone can help me about upgrade/migrate of vm? got the above notification. is it safe to say, just terminate the existing VM, and create a new one?

Thanks,

Gilbert

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

2 answers

Sort by: Most helpful
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2024-06-05T02:34:24.9433333+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    For sure you can terminate it or you can use following step to migrate to new VM or Plan

    https://learn.microsoft.com/en-us/azure/virtual-machines/deprecated-images#how-do-i-migrate-my-workloads-to-another-image

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **

    0 comments No comments

  2. TP 124.9K Reputation points Volunteer Moderator
    2024-06-05T02:38:11.27+00:00

    Hi Gilbert,

    Exact procedure depends on your specific needs, but in general the process is

    • create a new VM using updated image in same region/vnet
    • install any apps/workloads that are running in current VM
    • copy data/files from current VM to new VM and test thoroughly
    • if everything checks out okay with your tests, plan a "cutover" date when you will copy over fresh version of data/files from current VM to new VM, deallocate old VM
    • transfer over public IP address that used to be associated with old VM if needed, re-point DNS records if needed, etc.
    • perform final testing against new VM
    • recommend you keep old VM in deallocated state for a period of time just in case you realize there is something missing/broken on the new VM. Once enough time has passed be sure to delete old VM and its disks to save on monthly costs.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP


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.