I have a SQL Database in Azure, I have geo-replicated. I am simulating a failover by using the "force failover" in Azure. One question , since the app service that connected to the primary has a connection that relies on the sql server that lives in North Central US ,like the following:
"Server=mynthcentralusserver.database.windows.net ....
When i create my secondary sql database backup it requires a server . I dont want to put the server in the same region as the primary (North Central US) as that region I am simulating is down, so if i create a sql server in South Central US , the connection string will obviously change to something like:
"Server=mysthcentralusserver.database.windows.net .... just the server part.
So does that mean i need to manually go and change the app service configuration settings ? Also if the primary location North Central US is back up and I want to move back there , do in I need to go back and change the connection string again to point to the server in North Central US ?
Update:

My Spring app connects to the Failover Group. I did a Failover manually, In the console output, we can see that the Client IP needs to be added to the firewall to access. After that, our app can access the new server.
After you created a failover group for the primary sql server, the primary db will automatically be replicated. Then we should connect to the failover group name. we can see the Primary and secondary switch , and the app service will be automatically changed to point to the new Primary sql server. When we create a new sql server it doesnt allow to put in the same location.
If your connection string is as follows:
As @Bruno L. said. Your app service should connect to
failover-group.database.windows.net. So you don't need to manually go and change the app service configuration settings.You can find it in the location shown in the follows picture.