Register-PnPManagementShellAccess AADSTS700016: Application with identifier '31359c7f-bd7e-475c-86db-fdb8c937548e' was not found in the directory 'XXX China'. #2877
Replies: 2 comments 1 reply
-
I have the same issue. I am a Global Admin and I get the error trying: And also trying (recommended from another thread): |
Beta Was this translation helpful? Give feedback.
-
This worked. From: REGISTER Register-PnPAzureADApp -ApplicationName "PnP PowerShell" -Tenant [your tenant name].partner.onmschina.cn -Interactive -AzureEnvironment China -SharePointDelegatePermissions AllSites.FullControl -SharePointApplicationPermissions Sites.FullControl.All -GraphApplicationPermissions Group.ReadWrite.All -GraphDelegatePermissions Group.ReadWrite.All Use your Global Admin creds. CONNECT |
Beta Was this translation helpful? Give feedback.
-
Hi
We're going to use PnP Management Shell on Azure Automation in 21 Venant in China, but we tried to use the PnPManagementShellAccess cmdlet to register the PnP Management Shell in Enterprise Application with the command Register-PnPManagementShellAccess -AzureEnvironment China -ShowConsentUrl -TenantName xxx.com.cn, and then we used the global admin to login the consetURL, meet the screenshot issues, anybody know how to fix it?
Beta Was this translation helpful? Give feedback.
All reactions