I am trying to restore the production farm Search Service Application to a pre-production farm.
This is to preserve all customisations to Search.
I have mounted a copy of each of the 4 databases (Admin, Links, Crawl, and Reporting) to a new SQL server instance.
When I try to run the following command :
$searchInstance = Get-SPEnterpriseSearchServiceInstance -local $applicationPool = Get-SPServiceApplicationPool -Identity "PSP_SearchServiceApplicationPool" Restore-SPEnterpriseSearchServiceApplication -Name "Search Service Application" -ApplicationPool $applicationPool -AdminSearchServiceInstance $searchInstance -DatabaseName "PSP_SearchAdmin" -DatabaseServer "SHAREPOINT_PREPROD"
I get the following error message :
If I don't have the database attached, or I try a new DB name, I get the following error message :
This seems like a catch-22 situation.
What am I doing wrong?