User Managed identity with failover group with servers in different regions
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?