Answer for this SO-post says event hub REST end points can be used to initiate the fail over, but I don't find any Microsoft docs about event hub REST end points. Could you please share how to do it?
Asked
Active
Viewed 395 times
1 Answers
2
First, read this doc Azure Event Hubs - Geo-disaster recovery for the concept if you need it.
For rest api
, please refer to this official doc: Disaster Recovery Configs.
For java
, you can refer to this sample in github: eventhub-java-manage-event-hub-geo-disaster-recovery.
For .net
, you can refer to this sample in github: Microsoft Azure Event Hubs Geo-DR.

Ivan Glasenberg
- 29,865
- 2
- 44
- 60
-
once the fail over happens, does the client need to update connection strings in their config? – user1229441 Apr 23 '21 at 16:30
-
@user1229441,Yes. Actually, once you configure Geo-disaster recovery, you should use this `primary connection string for the alias` in your config. Please follow [this article](https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-geo-dr#setup)(in step 7) for how to get the `primary connection string for the alias`. – Ivan Glasenberg Apr 25 '21 at 02:08
-
Correct me if I am wrong about the below statement. Secondary namespace and alias are created before hand and when the fail over is initiated secondary namespace will start receiving events. – user1229441 Apr 25 '21 at 20:32