I am trying to create an on-prem SharePoint farm connected to ACS. I am following the instructions from http://msdn.microsoft.com/en-us/library/office/dn155905.aspx which is an article with the same title as I have used at this post.
There is a script called Connect-SPFarmToAAD which I have tried to run.
I run it using the following parameters
Connect-SPFarmToAAD –AADDomain 'hidden.onmicrosoft.com' –SharePointOnlineUrl https://hidden.sharepoint.com/sites/play –SharePointWeb http://spanner/sites/Development/ -AllowOverHttp
I get the following error, which I am unable to resolve. I would appreciate any assistance. I have no clue what I have done wrong.
VERBOSE: Importing cmdlet 'Set-MsolUserPrincipalName'.Set-MsolServicePrincipal : Invalid syntax. Parameter Name:
ServicePrincipalNames.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\MySharePointFunctions\MyS
harePointFunctions.psm1:102 char:9
+ Set-MsolServicePrincipal -AppPrincipalId
$SPAppPrincipal.AppPrincipalId ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : OperationStopped: (:) [Set-MsolServicePrincipal]
, MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.Strin
gSyntaxValidationException,Microsoft.Online.Administration.Automation.SetS
ervicePrincipal