Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Use an Office 365 SharePoint site to authorize provider-hosted apps on an on-premises SharePoint site

$
0
0

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


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>