We tried running the script and encountered the following error. Any insight on what is causing the error would be helpful.
Successfully authenticated with AzureAD Module.
Successfully authenticated into SharePoint Online.
SharePoint On-Premises version is 2016
Creating Federated Search skill Service Principal in SPO.
WARNING: The service principal 'c3959f3a-5ad4-4d2b-b1f0-bc70f9a5d0a1' cannot be retrieved right now, waiting for proper
Service Principal creation. Trying again (attempt 1/12)
WARNING: The service principal 'c3959f3a-5ad4-4d2b-b1f0-bc70f9a5d0a1' cannot be retrieved right now, waiting for proper
Service Principal creation. Trying again (attempt 2/12)
WARNING: The service principal 'c3959f3a-5ad4-4d2b-b1f0-bc70f9a5d0a1' cannot be retrieved right now, waiting for proper
Service Principal creation. Trying again (attempt 3/12)
WARNING: The service principal 'c3959f3a-5ad4-4d2b-b1f0-bc70f9a5d0a1' cannot be retrieved right now, waiting for proper
Service Principal creation. Trying again (attempt 4/12)
WARNING: The service principal 'c3959f3a-5ad4-4d2b-b1f0-bc70f9a5d0a1' cannot be retrieved right now, waiting for proper
Service Principal creation. Trying again (attempt 5/12)
WARNING: The service principal 'c3959f3a-5ad4-4d2b-b1f0-bc70f9a5d0a1' cannot be retrieved right now, waiting for proper
Service Principal creation. Trying again (attempt 6/12)
WARNING: The service principal 'c3959f3a-5ad4-4d2b-b1f0-bc70f9a5d0a1' cannot be retrieved right now, waiting for proper
Service Principal creation. Trying again (attempt 7/12)
WARNING: The service principal 'c3959f3a-5ad4-4d2b-b1f0-bc70f9a5d0a1' cannot be retrieved right now, waiting for proper
Service Principal creation. Trying again (attempt 8/12)
WARNING: The service principal 'c3959f3a-5ad4-4d2b-b1f0-bc70f9a5d0a1' cannot be retrieved right now, waiting for proper
Service Principal creation. Trying again (attempt 9/12)
Trusted For Delegation (TFD) feature is successfully enabled for Service Principal.
Service Principal was successfully created in SPO.
ExtensionData : System.Runtime.Serialization.ExtensionDataObject
AccountEnabled : True
Addresses : {}
AppPrincipalId : c3959f3a-5ad4-4d2b-b1f0-bc70f9a5d0a1
DisplayName : Greenland Federated Search Bot Skill
ObjectId : 4da6695b-f0eb-446d-9d66-db8279b7bdcf
ServicePrincipalNames : {c3959f3a-5ad4-4d2b-b1f0-bc70f9a5d0a1, https://hybridsearchskill.cortana.ai}
TrustedForDelegation : True
Registering Application Principal in Sharepoint On-Premises.
Something went wrong when registering new application principal in Sharepoint On-Premises.
Register-AppPrincipalOnPrem : App Management Shared Service Proxy is not installed.
At D:\Update-FederatedHybridSearchForM365.ps1:626 char:27
- ... Principal = Register-AppPrincipalOnPrem -Site $Site -SkillNameIdentif ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Register-AppPrincipalOnPrem