Azure VM Scale Set, main and backup pairs.

Barak Pahima 0 Reputation points
2023-07-24T19:34:27.6833333+00:00

Hi community,

I have Azure Scale Set which has set of VMs with Public IP. The protocol of the data that going through the VMs is UDP.

I want to plan failover mechanism in case that one VM fail, another VM will take control. So when scaling up I want to create two VMs as a pair, with one serving as the active VM and the other as a backup. Specifically, I would like to ensure that when the main VM becomes unavailable, the traffic directed to the Public IP address is automatically routed to the backup VM. Is this possible?

I will be glad for your help,

Barak.

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
333 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Durkan 12,276 Reputation points MVP
    2023-07-25T07:12:48.58+00:00

    Hi

    its sounds like you need to combine a scale or availability set with a Load Balancer and Health Probe to redirect traffic in the even of a failure:

    https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-overview#why-use-azure-load-balancer

    https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-custom-probe-overview

    Hope this helps,

    Thanks

    Michael Durkan

    • If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!