Zone replication of a VM - how to configure

Colm 26 Reputation points
2024-03-05T15:54:53.53+00:00

hi,

about this article on Azure VM Zone redundancy

https://learn.microsoft.com/en-us/azure/virtual-machines/availability

Im curious on how to setup a VM for Zone redundancy with a load balancer?

Im unsure of how the load balancer fits into this?

eg. If a VM is running a service and has no external connections, could this just failover over to another zone and run ok?

does the VM that has failed over, get a different IP? is it in a different VNET?

Thanks

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,158 questions
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
636 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
404 questions
{count} votes

1 answer

Sort by: Most helpful
  1. TP 76,681 Reputation points
    2024-03-05T16:07:02.9533333+00:00

    Hi,

    One way to make a workload more resilient to failure is to have it running across multiple Availability Zones. To do this you would need to run the workload on at least one VM in each of the zones (2-3 zones), AND the workload needs to have a way to synchronize state between the VMs OR the workload needs to be stateless.

    For example, say you have a website that only consists of static files, so in effect it is stateless so long as each VM has current copy of static files. You would distribute the incoming requests across all VMs (this is where load balancer comes in). If one of the VMs failed, the load balancer would detect this and only send requests to the VMs in the other zones.

    In the above example the client PCs are only communicating directly with the load balancer, so they are unaware of multiple VMs and the fact that they are in different zones.

    Please let me know if that answers your question fully or if you need more details. Add a comment below.

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

    Thanks.

    -TP

    1 person found this answer helpful.