How to Fail Over Availability Groups
How do I manually fail over a SQL Always On Availability Group?
SQL
Always ON High Availability
Availability Groups
System Administration
OnPrem
Need to manually fail over a Availability Group for testing or maintenance of SQL server.
Within SSMS, navigate to the AlwaysOn High Availability > Availability Groups
Right click the Availability Group you wish to failover and click Failover
On the Introduction screen, click Next
On the Select New Primary Replica screen, make sure the desire SQL server is listed and selected, then click Next
On the Connect to Replica screen, connect to the SQL instance if required, if not click Next
On the Summary screen, verify that everything is correct and click Finish
You can failover from any SQL server however if you failover the Availability Group from a secondary instance then you will need to connect to the primary instance during step 5.