An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
Configuring failover endpoint in Azure AI search datasource, for a multi region Azure SQL managed instance database
Hi we have the following database configuration We are using Azure SQL Managed Instance where we have 2 database instances
- 1 in NCUS region
- Other in SCUS region
Now one of them acts as primary and other acts as secondary.
We also have enabled CDC in few tables that we populate to Azure AI search. Currently we have the following datasource configuration,
- Datsource_ncus -> reads from the CDC table NCUS region
- Datasource_scus -> reads from the CDC table in SCUS region
We also have configured indexers the following way
- Indexer_ncus -> uses the datasource_ncus and populates the index_1
- Indexer_scus -> uses the datasource_scus and populates the index_1
Now since only 1 database can be primary, for example here lets say NCUS is primary, the indexer of SCUS keeps failing (which we allow to fail) We also have configured failover endpoint for the above 2 database instance, so they are part of a failover group What i want to understand is, if we can use this failover endpoint, instead of having a seperate datasource and indexer for the database in 1 region.
By doing that, we avoid having multiple indexers and datasources. We will just have 1 datasource and 1 indexer, and datasource would always resolve to the primary instance.
Can you please help in how i can configure this? There seems to be no documentation available