How does failover work for resources with private endpoints and public access disabled?

Kanie-0317 120 Reputation points
2025-06-04T13:45:59.24+00:00

Hi, I have a question regarding how failover behaves for Azure resources that have private endpoints attached and public access disabled. (Disaster recovery and regional outage scenario)

Let’s say I’m using a resource (e.g., Storage Account or Cosmos DB) that has built-in geo-redundancy and supports automatic or manual failover.

If I disable public access and only use private endpoints, how exactly does failover work at the network/DNS level?

Here’s my current setup:

  • Resource name: mystorageaccount
  • Primary region: has private endpoint_A and private DNS zone_A
  • Secondary region: has private endpoint_B and private DNS zone_B
  • Both private endpoints point to the same storage account which deployed in primary region.

  1. If a failover happens, and the resource becomes active in the secondary region:
    • Will my application automatically resolve to the secondary region’s private endpoint IP, assuming DNS is configured properly?
    • Do I need to update any connection string?
  2. How does DNS resolution work under this model when both regions have private endpoints and separate private DNS zones?
  3. Is this architecture valid, or is there a better/recommended way to handle private endpoint failover scenarios?

Appreciate it any expert could share some specific examples to help clarify this, thank you!

Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
0 comments No comments
{count} votes

Accepted answer
  1. Praveen Bandaru 7,160 Reputation points Microsoft External Staff Moderator
    2025-06-04T19:24:18.91+00:00

    Hello Kanie Almasi

    I understand that you're dealing with complex failover scenarios involving Azure resources with private endpoints, especially when public access is disabled. Here’s an overview of how the failover and DNS resolution work in your case:

    1. Failover Process: If a disaster requires failing over to the secondary region (like a regional outage), the storage account will still function due to geo-redundancy. However, with private endpoints, you need to ensure DNS resolution is correctly configured.
    2. DNS Resolution: After a failover:
      • Automatic Resolution: If private DNS zones are set up correctly, applications should automatically resolve to the secondary region's private endpoint, provided DNS forwarding is properly configured.
      • Connection String: Typically, you should not need to update the connection string as long as the hostname remains the same and DNS resolution is working correctly. The private endpoints will handle the traffic after the failover.
    3. DNS Setup: It's crucial to configure DNS to point to the correct private DNS zones for each region. In a regional outage, if the primary region's DNS can't respond, conditional DNS forwarders need to be adjusted to point to the secondary region.
    4. Best Practices: Your architecture is valid. However, review the configuration of conditional forwarders to ensure they can route traffic Check the public document for more understanding:

    Failover considerations for storage accounts with private endpoints


    Hope the above answer helps! Please let us know do you have any further queries. Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members. 

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Andreas Baumgarten 125.3K Reputation points MVP Volunteer Moderator
    2025-06-04T14:14:55.81+00:00

    Hi @Kanie Almasi ,

    please take a look here: Failover considerations for storage accounts with private endpoints

    If you are using private endpoints with an Azure Storage account there are different configurations required depending on the fail over scenario.


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

    Regards

    Andreas Baumgarten


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.