You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
###Notice: many issues / bugs reported are actually related to the PnP Core Library which is used behind the scenes. Consider carefully where to report an issue:###
Are you using Apply-SPOProvisioningTemplate or Get-SPOProvisioningTemplate? The issue is most likely related to the Provisioning Engine. The Provisioning engine is not located in the PowerShell repo. Please report the issue here: https://github.com/officedev/PnP-Sites-Core/issues.
Is the issue related to the cmdlet itself, its parameters, the syntax, or do you suspect it is the code of the cmdlet that is causing the issue? Then please continue reporting the issue in this repo.
Connects to non-commercial tenant. Region Tag is used is in Connect-SPOService to specify non-commercial login provider.
Actual behavior
These issues are unique to a non-commercial tenant. Using a personal commercial tenant with identical configuration there is no issue connecting.
Method 1
Using Url Tenant ClientId CertificatePath
Appears to connect properly but throws errors when running commands.
Get-PnPSite : The remote server returned an error: (401) Unauthorized.
Method 2
Using Url AppId AppSecret
Connecting Via SharePoint App registration (App Reg New)
Connect-PnPOnline : Invalid JSON primitive: .
Fiddler Trace shows it returned an error page
Sorry, but we’re having trouble signing you in. AADSTS90038: Tenant 'TenantName (GUID)' request is being redirected to the National Cloud 'microsoftonline.us'.
What came of this issue? I'm running into this same "Invalid JSON primitive" error trying to use Connect-PnPOnline from an Azure Government Runbook (connecting to a site collection in a GCCH tennant).
This has worked for me a few weeks ago, not sure what's causing this now.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
###Notice: many issues / bugs reported are actually related to the PnP Core Library which is used behind the scenes. Consider carefully where to report an issue:###
Apply-SPOProvisioningTemplate
orGet-SPOProvisioningTemplate
? The issue is most likely related to the Provisioning Engine. The Provisioning engine is not located in the PowerShell repo. Please report the issue here: https://github.com/officedev/PnP-Sites-Core/issues.Reporting an Issue or Missing Feature
Please confirm what it is that your reporting
Expected behavior
Connects to non-commercial tenant. Region Tag is used is in
Connect-SPOService
to specify non-commercial login provider.Actual behavior
These issues are unique to a non-commercial tenant. Using a personal commercial tenant with identical configuration there is no issue connecting.
Method 1
Using Url Tenant ClientId CertificatePath
Appears to connect properly but throws errors when running commands.
Get-PnPSite : The remote server returned an error: (401) Unauthorized.
Method 2
Using Url AppId AppSecret
Connecting Via SharePoint App registration (App Reg New)
Connect-PnPOnline : Invalid JSON primitive: .
Fiddler Trace shows it returned an error page
Sorry, but we’re having trouble signing you in. AADSTS90038: Tenant 'TenantName (GUID)' request is being redirected to the National Cloud 'microsoftonline.us'.
Steps to reproduce behavior
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing
Get-Module -Name *pnppowershell* -ListAvailable
)3.14.1910.0
How did you install the PnP-PowerShell Cmdlets?
The text was updated successfully, but these errors were encountered: