AzureRM: Event hub failover and pairing with new Event hub

I have setup the disaster recovery config for the Event Hub following this article - Terraform Registry.

I need help in setting up the terraform for the below use case.

In case of a failover, I need to find which event hub has failed and then create the new event hub and pair it with the active one.