Apply Template Tenant SharePoint Online

Environment: SharePoint Online Tools: SharePoint Online Management Shell Case: I want to apply template from SharePoint Look Book , I've...

Environment:
SharePoint Online

Tools:
SharePoint Online Management Shell

Case:
I want to apply template from SharePoint Look Book, I've tried  3 times to apply through that site directly but no luck, i got some exception messages like below:
  • Exception: Access denied. You do not have permission to perform this action or access this resource.
  • Exception: {"SiteId":"","SiteStatus":3,"SiteUrl":""}
apply direct - afahru.com
I did not trace the error, it might be provisioning issue if you directly apply the template. But, I've tried another way and it works for me like below.

Solutions:
  1. Clone from GitHub.
  2. Run as Admin SharePoint Online Management Shell.
  3. Connect-PnPOnline https://yoururl.sharepoint.com
    to connect with SharePoint Online.
  4. Then locate where you stored the (.pnp) file, in this case I applied template education.
  5. Apply-PnPTenantTemplate -Path .\eduportal.pnp
    to execute the process.
    process-afahru.com
  6. A new site created, also template has been applied.
    done-afahru.com
    new-afahru.com
Enjoy :)

You Might Also Like

0 comments