Hi Everyone,
We need to migrate the RDS Broker HA database from an old SQL server to a new one. The physical path location will also change.
old server SQL01 (V:\ has the database.mdf)
new server SQL02 (E:\ has the database.mdf)
I've looked at the Microsoft powershell notes, but some of the switches fail to work. Clientaccessname and databasefilepath
ipmo remotedesktop
get-rdconnectionbrokerhighavailability
set-rddatabaseconnectionstring -connectionbroker "brokerserver.domain.com" -databaseconnectionstring "DRIVER=SQL Server Native Client 11.0;SERVER=newsqlserver;Trusted_Connection=Yes;APP=Remote Desktop Services Connection Broker;DATABASE=DB" -databasefilepath "E:\DB.mdf.mdf" -clientaccessname "brokerha.domain.com"
I have moved the database to the new server, ran the PS command without those two switches and rebooted all brokers. The old database has been taken offline. Logins are working fine, and running get-rdconnectionbrokerhighavailability shows the new SQL server.
The only thing which annoys me is the databasefilepath is still set to the old location. How do I update it?