User Managed identity with failover group with servers in different regions

KAMALPREET KAUR 1 Reputation point Microsoft Employee
2024-05-07T19:44:02.75+00:00

while using user managed identity with azure sql , the connection string or token acquired using DefaultAzureCredential is dependent on the clientID of user managed identity.

for the scenario when there is a sql failover switch i.e due to outage in one region (primary server) the other region's secondary) becomes primary. 

 if i have user managed identity per region (which is the recommended way for resiliency reasons), the automatic switch is not possible without switching the client id of managed identity.

what is the right way to use user managed identity on azure sql failover group, so that service consuming sql server remains unaware of sql failover?

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,853 questions
{count} votes