Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection string for azure failover groups

I have set up a failover group and have tried to connect using SSMS to <my-failover-group-name>.database.windows.net as the server URL but it times out and does not let me connect.

In each of the sql servers I have allowed my IP address through the firewall. As I understand what they are saying here: https://learn.microsoft.com/en-us/azure/sql-database/sql-database-geo-replication-overview I should be able to use the above as my connection string. I can connect to each of the individual servers in the failover group no problem.

I have also tried connecting to tcp:<my-failover-group-name>.database.windows.net,1433 using the same credentials as I use for the servers in the cluster and I get login failed. What am I doing wrong?

like image 324
johnstaveley Avatar asked Jul 29 '26 04:07

johnstaveley


1 Answers

We just ran into the same thing. In SQL Management Studio you need to specify the database name under Options >> Connect to database.

like image 191
James Delmerico Avatar answered Aug 01 '26 09:08

James Delmerico