Availability Set to Availability Zone

Nishanth 51 Reputation points
2019-11-11T16:28:06.417+00:00

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
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,018 questions
{count} vote

4 answers

Sort by: Most helpful
  1. Ziv Rafalovich 26 Reputation points Microsoft Employee
    2019-11-11T22:07:26.15+00:00

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

    regards,

    3 people found this answer helpful.

  2. Cory Raszeja 11 Reputation points
    2019-11-13T15:57:24.263+00:00

    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:

    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.

    2 people found this answer helpful.
    0 comments No comments

  3. Nishanth 51 Reputation points
    2019-11-13T19:07:53.667+00:00

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

    0 comments No comments

  4. Jeanclei Borges 0 Reputation points
    2024-11-20T02:43:03.4033333+00:00

    I ran into a difficulty where it was necessary for several VMs that were in Availability set to go to the availability zone and maintaining the same machine name, same IP, same resource group, etc., so I ended up making this script for convenience:

    <https://github.com/jeanclei/migrate-azure-vm-az>

    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.