When I deploy 1 VM on multiple zones in same region, will one VM replicate to other VM automatically? If not how does this help for high availabliity? And how replication can be configured?

Mahesh Bote 0 Reputation points
2025-02-10T09:51:57.5966667+00:00

For a requirement of resiliency/High Availability can zone redundancy be considered as single solution or it has to be VMSS or ZRS with some more configuration?

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

1 answer

Sort by: Most helpful
  1. Marcin Policht 35,210 Reputation points MVP
    2025-02-10T10:00:02.9+00:00

    VM deployment across availability zones When you deploy a single VM across multiple availability zones, it does not automatically replicate to another VM. A VM resides in a specific zone, and if that zone experiences an outage, the VM will go down unless additional measures are taken.

    How availability zones improve high availability Availability zones help with high availability by allowing you to deploy multiple VMs across different zones. This setup ensures that if one zone fails, other VMs in different zones remain operational. A load balancer is typically used to distribute traffic among these VMs.

    Configuring replication across zones Replication is not automatic for individual VMs. To enable redundancy, you can use:

    • Azure Virtual Machine Scale Sets (VMSS): Automatically distributes VMs across zones and provides scaling and load balancing. Note this doesn't actually "replicate" their content - but rather makes sure that every VM you deploy is configured the same way.
    • Azure Site Recovery (ASR): This does support ongoing replication from one VM to another VM in a different availability zone for disaster recovery, but failover is manual.

    Is zone redundancy enough for high availability?
    Zone redundancy alone is not a complete solution. For full resilience, you'd need to take additional steps. Details depend on the workload running on your VMs. For example, for database management solutions like SQL Server or SAP HANA, you can use database native-replication. With VMSS, you'd also want to use a load balancer to distribute load or provide failover capabilities. Azure Site Recovery could be used for disaster recovery (not HA). VMSS ensures automatic scaling and failover and a load balancer ensures traffic is directed to healthy VMs.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    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.