Stop Sharepoint gracefully
Close all open SharePoint Management Shell windows, and all open command prompt windows.
On the server that is running Central Administration, stop the following services:
- SharePoint Administration
- SharePoint Timer
- SharePoint Tracing
- SharePoint User Code Host
- SharePoint VSS Writer
- World Wide Web Publishing Service
- SharePoint Server Search
On the server that is running Central Administration, at a command prompt, type iisreset /stop
.
Point the web application to the new availability group IP by setting up SQL Server connection aliases
- This procedure must be performed on all servers in the SharePoint Server farm that connect to the instance of SQL Server that hosts the databases.
- Verify that the user account that is performing this procedure is a member of the following:
- The Administrators group
- The db_owner fixed database role
- Start the SQL Server Configuration Manager.
- Expand SQL Server Native Client Configuration, right-click Aliases, and then click New Alias.
- In the Alias Name box, enter the name of the new alias, which you are creating.
- In the Port Number box, enter the number of the port the new alias will use to connect to SQL Server.
- In the Protocol box, click the drop-down arrow and select TCP/IP. This is the protocol the new alias will use to connect to the SQL Server.
- In the Server box, enter the IP or DNS of the availability group.
- Repeat steps 3 through 8 on all servers in the farm that connect to the new instance of SQL Server.
Restart Sharepoint
1. On the server that is running the SharePoint Central Administration website, at a command prompt, type iisreset /start
.
In the Microsoft Management Console Services snap-in, start all of the services that are related to SharePoint Server and IIS. These include the following services:
- SharePoint Administration
- SharePoint Timer
- SharePoint Tracing
- SharePoint User Code Host
- SharePoint VSS Writer
- World Wide Web Publishing Service
- SharePoint Server Search
This is based upon https://docs.microsoft.com/nl-nl/SharePoint/administration/move-all-databases
You are trying to move the database without actually moving the database.