Forum Discussion

Admin O365's avatar
Admin O365
Brass Contributor
May 15, 2019

Automatic Failover using ASR?

Is it possible to have automated failover of VM`s to another paired region?

Business Requirement: IF a VM goes down in late evening hours (no operation resource available).

Is it possible to perform Automated failover?

 

Cannot find any monitoring + Script combination that can allow.

5 Replies

  • Hannes_LG's avatar
    Hannes_LG
    Brass Contributor
    Hi,

    there are powershell modules available who can start a failover.
    Sample:
    https://docs.microsoft.com/en-us/powershell/module/azurerm.siterecovery/Start-AzureRmSiteRecoveryUnplannedFailoverJob?view=azurermps-5.7.0

    From the monitor perspective, it’s possible to monitor the VM with Azure Monitor (Log Analytics) and execute a webhook (Azure Automation Script or Azure Function) which includes the failover task.

    If you need more info’s let me know.

    Regards,
    Hannes
    • Admin O365's avatar
      Admin O365
      Brass Contributor

      Hannes_LG Yes Please, as this is what exactly I`m after.

       

      However, hope its fair to assume that the automated failover will still attract some downtime and ASR has no option of Zero Downtime?

      • Hannes_LG's avatar
        Hannes_LG
        Brass Contributor
        Hi,

        if you failover with ASR you have a short downtime because the VM at the peered location has to startup and the monitoring solution isn’t real-time (take some seconds)

        But in your situation it’s sounds, you need a High availability solution over two regions, it’s also possible.

        What kind of application does we talk about (Web Application, Database,....)

        Regards
        Hannes

Resources