question

kinkate18nic avatar image
0 Votes"
kinkate18nic asked ·

Availability Set to Availability Zone

Hi,

Is there a way to convert/change/move machines in availability set to availability zone? I remember reading something about in Github using some scripts. But, I cant find it anymore. Is it even possible?

Thanks

azure-virtual-machines
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The below answers are correct. There is not a perfect way to move from from AV Set to AV Zones. You essentially need to recreate the VMs which Site Recovery will do for you. Otherwise, it's basically a delete your VM, keep your disk then rebuild from existing OS disk specifying the AV Zone you want.

0 Votes 0 · ·

Seems like only option is to use ASR. However, my requirement was to move VMs from AV Set AV Zone in the same region. ASR wont support replication in same region. As far as using OS disk, seems like that is also not possible. I tested it by creating a VM in AV Set and tried to use its OS disk to deploy a new VM in AV Zone. I get error telling:

.../resourceGroups/image_rg/providers/Microsoft.Compute/disks/vm1_OsDisk_1_e7ae8bcb7fa04383a480f0b405525ba0 cannot be attached to the VM because it is not in zone '1'.

Regards

0 Votes 0 · ·
ZivRafalovich-4888 avatar image
3 Votes"
ZivRafalovich-4888 answered ·

Hello there, The following process will help you to migrate your deployment into a zone in the same region (or elsewhere) : https://docs.microsoft.com/en-us/azure/site-recovery/move-azure-vms-avset-azone

regards,

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hiiii,

Thanks for your reply. I am aware of the above article.However, it applies to moving VMs between two regions since it uses ASR. I am looking for a way to move VMs from set to zone in the same region.

Regards

0 Votes 0 · ·
CoryRaszeja avatar image
2 Votes"
CoryRaszeja answered ·

Hi kinkate18nic,

You can use Azure Site Recovery to move your single instance VM or VMs in an Availability Set into an Availability Zone. You can choose to place your single instance VM or VMs in an Availability Set into Availability Zones when you choose to enable the replication for your VM using Azure Site Recovery. Ideally each VM in an Availability Set should be spread across Availability Zones.

See Microsoft documentation below:

[1]: https://azure.microsoft.com/en-ca/blog/moving-your-azure-virtual-machines-has-never-been-easier/

[2]: https://docs.microsoft.com/en-us/azure/site-recovery/move-azure-vms-avset-azone

This is somewhat of a workaround in my view, but your best option if you do not wish to recreate the VMs with Availability Zones from the start.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

kinkate18nic avatar image
0 Votes"
kinkate18nic answered ·

Thank you for for all the answers. I have a better understanding about this concept now.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.