Availability Replica Connection State
Availability replica is disconnected.
This policy checks the connection state between availability replicas. The policy is in an unhealthy state when the connection state of the availability replica is DISCONNECTED. The policy is otherwise in a healthy state.
The secondary replica is not connected to the primary replica. The connected state is DISCONNECTED. This issue can be caused by the following:
Following are possible solutions for this issue:
How do you checking the database mirroring endpoint configuration? How do you check if the port is conflicting?
which application is using my port
netstat -o -n -a | findstr 0.0:5022
This will give you an output like this
TCP 0.0.0.0:5022 0.0.0.0:0 LISTENING XXXX
XXXX is the PID of the program you should check.