Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Provisioning LP Template #644

Open
gregcogdell opened this issue Feb 14, 2025 · 0 comments
Open

Issue Provisioning LP Template #644

gregcogdell opened this issue Feb 14, 2025 · 0 comments

Comments

@gregcogdell
Copy link

I had initially posted this to the custom-learning-office-365 repo but was advised that this question might be better suited for this group.

UPDATE: It was suggested that the permissions for my app might be insufficient and so we added AllSites.FullControl to it and are still getting the same results.

I am attempting to install the v5 version of M365 Learning Pathways and am receiving an error. I have done the following:

Installed PowerShell 7.5
Installed PnP PowerShell
Updated PnP PowerShell to the latest version
Created the target communication site
Checked the Tenant App Catalog site to ensure it was created and my account had access
Registered a new client app to support the interactive login in PnP PowerShell
Downloaded the M365LP.pnp site from GitHub
I then use the following commands (tried both) for connecting
a) Connect-PnPOnline -Interactive -ClientID
b) Connect-PnPOnline -Interactive -ClientID
Both of these pop up an interactive login screen and appears to establish connectivity
I then use the following commands (tried both) to install the template
a) Invoke-PnPSiteTemplate -Parameters @{"SiteUrl"=""} - Verbose
b) Invoke-PnPTenantTemplate -Parameters @{"SiteUrl"=""} - Verbose
Regardless of the command that I use, it pops up a message that it is "Initializing Engine" and then errors with the message
"Invoke-PnPSiteTemplate: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

As additional information, we do use PIM and my SharePoint Online Admin Role was activated for this test. I also had one of our Tenant Admins login (at step 8 above) and then run step 9 with his credentials and we got the same error.

Thank you in advance for any help you can provide!!

Provide related screen-shots to help us understand your question

Here is the trace log

Image

@gregcogdell gregcogdell changed the title Issue Installing Template Issue Provisioning LP Template Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant