Closed tjackson-bcg closed 12 months ago
@tjackson-bcg, Thank you for reporting this. Can you please confirm if you are in GCC or GCCH tenant? If its GCCH tenant you will have to run provisioning script for GCCH which will ask for PNP App Client ID which you have registered as mentioned.
Please do let us know if this helps.
We have a GCC tenant, not GCCH.
@tjackson-bcg, We hope you are running the script with SharePoint Administrator user.
Can you please confirm which version of PnPPowershell you are using?
When we are prompted for Azure login, we are specifying a global admin user which will have Sharepoint permissions by default. We are using version 2.2.114 of the PnP.PowerShell module in Powershell
@tjackson-bcg , Request you to kindly update the PnP version. Please run below commands and then try to run provisioning script again. Uninstall-Module -Name PnP.PowerShell -AllVersions -Force
Install-Module PnP.PowerShell -RequiredVersion 1.12 -Force
Please let us know if this help.
Downgraded PnP to 1.12 and re-ran the script. Same issue occurs. I was also using Powershell 7 originally and am now using Powershell 5.2. There is a slightly different error now.
@tjackson-bcg, Looks like permission issue. Please allow us some time to analyse this and we will update you ASAP. Meanwhile can you please try to open the site which is created and let us know if you are able to access that with the account you are trying to run the script?
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
While deploying the app, it creates the SP site but fails at what looks like List creation. The path to the XML is not long nor contains double quotes like most of the issues I see. I've deleted the site and rerun the script several times. I've also re-registered the PNP app accepting all permissions. Running as a global admin. What next?