changing redundancy of a VM

Muhammad Zeeshan 241 Reputation points
2022-01-26T16:49:30.23+00:00

Hi,

So i made a VM and chose no redundancy required while creating it.

Now I want to move it to locally redundant or geo redundant type so that it is placed in a zone.

I want to enable zone to zone site recover.

Is there any way of doing it without making a new VM ?

How can I do it without effecting my app running on it?

Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
681 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alan Kinane 16,811 Reputation points MVP
    2022-01-26T19:20:15.52+00:00

    If you deployed your VM without redundancy then you can't easily change this.

    Generally you have to redeploy the VM, that is to delete the VM (keep the disks) and then deploy the VM again with the original disks but this time place it into an availability set or availability zone.

    There is a sample PowerShell script for doing this for availability sets here: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-availability-set

    Otherwise, you can use Azure Site Recovery to replicate your VM into another Azure region and place it into an availability set or availability zone in the target region: https://learn.microsoft.com/en-us/azure/site-recovery/move-azure-vms-avset-azone

    0 comments No comments

0 additional answers

Sort by: Most helpful