Skip to content

[BUG] - Invoke-PnPSiteTemplate from a pnp package stored in a SharePoint library #1200

@eprach

Description

@eprach

Reporting an Issue or Missing Feature

Cannot invoke template from a SharePoint document library

Expected behavior

When executing the following:
Invoke-PnPSiteTemplate -Path "https://tenant.sharepoint.com/sites/templatestorage/Documents/template.pnp"
I expect having the template applied to the site I am connected to.

Actual behavior

The command returns
"only .pnp package files are supported from a sharepoint library"

Steps to reproduce behavior

  1. Generate a template and save it in a SharePoint Online document library
  2. Connect to the SharePoint site with Connect-PnPOnline
  3. Run the Invoke-PnPSiteTemplate command

What is the version of the Cmdlet module you are running?

3.10

Which operating system/environment are you running PnP PowerShell on?

  • [ X] Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • [ X] Azure Functions
  • Other : please specify

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