Auto reassign Public IP to VM after Azure Site Recovery

Netronics_Dre 1 Reputation point
2022-07-02T18:10:20.983+00:00

I'm looking some guidance in automating the process of reassigning a Public IP to a VM after a Failover and Failback takes place using Azure Site Recovery (ASR). As it stands ASR takes care of the Private network during failover but the public IP is still assign to the original VM. Is there a step by step guide or tutorial that shows how to achieve what I want to do? Any home would be awesome.

Thank you

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,134 questions
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
643 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 97,896 Reputation points MVP
    2022-07-02T18:46:36.417+00:00

    Hi @Netronics_Dre ,

    I've never tried this but maybe it's helpful for you: https://learn.microsoft.com/en-us/azure/site-recovery/concepts-public-ip-address-with-site-recovery

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


  2. Andreas Baumgarten 97,896 Reputation points MVP
    2022-07-03T13:26:32.587+00:00

    Hi @Netronics_Dre ,

    here is an example how to assign a NSG after failover. It should be almost the same way with a public ip.
    https://learn.microsoft.com/en-us/azure/site-recovery/site-recovery-runbook-automation#customize-the-recovery-plan

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments