SQL Server Availability Groups – Problem Adding Secondary Replicas

availability-groupshadrsql server

I installed AlwaysOn on my laptop (testlab) with three VMs, of which one is a domain controller and two are hosting SQL Server instances (planned to be one primary and one secondary replica). Everything went well until I wanted to add the secondary replica to the Availability group.

Please find a screenshot attached. I have already changed the port to 1433 in the TCP/IP settings and have also added an exception for SQL Server in the Windows Firewall. Both of the servers are in the same cluster network. Not sure what else I am missing here.

enter image description here

Best Answer

Did you add the browser service to the firewall? UDP 1434. Because you're using instance names so they have to get resolved. Otherwise remove the instance name to use that 1433 port.