Skip to content

Issue Provisioning LP Template #644

@gregcogdell

Description

@gregcogdell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions