Welcome to Microsoft Q&A platform and thanks for posting your query here.
To ensure that your Azure pipelines are working and the connection between the two databases is maintained after a failover from DR to primary database, you can follow these steps:
- Create two separate linked services in Azure Data Factory, one for the DR database and one for the primary database. Make sure to use the correct hostname and service name for each linked service.
- Create two separate datasets in Azure Data Factory, one for the DR database and one for the primary database. Use the appropriate linked service for each dataset.
- Create your pipeline in such a way that if an activity using the DR dataset fails , the next activities are connected using skip conditional path and the entire pipeline fails.
To handle failover from DR to primary database, you can monitor the status of the DR database using Azure Monitor . When the DR database fails over to the primary database, you can receive an alert.
I hope this helps! Let me know how it goes. Thankyou