Forum Discussion
How to Authenticate Multi Geo Sites via Client ID and Secret
Hi Team,
I have multi geo setup within our tenant. for Default Location, we are able to authenticate central administrate via Connect-PnPOnline -Url $AdminURL -ClientId $ClientID -ClientSecret $SecretID . With same clientid and Secret we are unable to connect other geo admin center URL's. I have added the same service principal by using _layouts/15/appinv.aspx but it doesn't work.
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />
</AppPermissionRequests>
Getting general error like
: Message : Exception has been thrown by the target of an invocation.
Stacktrace : at PnP.PowerShell.Commands.Base.PnPConnectedCmdlet.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
ScriptLineNumber : 1
Please advise. Thanks!