If you configure Search on two server, on first server appear the error:
Checking for stuck Search Host Controller Service (known issue)...
- Server: SP01...
Re-provisioning...
Done.
- Server: SP02...
Re-provisioning...
PS>TerminatingError(ForEach-Object): "Exception calling "Unprovision" with "0" argument(s): "The executing code must run on server SP02.""
Ignore it, then re-execute autospinstaller on SP02 all fixed fine.
Checking for stuck Search Host Controller Service (known issue)...
- Server: SP01...
Re-provisioning...
Done.
- Server: SP02...
Re-provisioning...
PS>TerminatingError(ForEach-Object): "Exception calling "Unprovision" with "0" argument(s): "The executing code must run on server SP02.""
Ignore it, then re-execute autospinstaller on SP02 all fixed fine.