What can the PNP provisioning engine do for You?

What can the PNP provisioning engine do for You?

The PnP Provisioning Engine can do the work for you. There are basically two types of templates that the engine understands: Site Templates (also called Provisioning Templates) and the extended version: Tenant Templates. When the engine was introduced the only template type available was the Site Template.

How to get a template for a PNP handler?

Get-PnPSiteTemplate -Out template.pnp -PersistBrandingFiles Extracts a provisioning template in Office Open XML from the current web and saves the files that make up the composed look to the same folder as where the template is saved. EXAMPLE 7 Get-PnPSiteTemplate -Out template.pnp -Handlers Lists, SiteSecurity

How to get a PNP connection in PowerShell?

Specify a JSON configuration file to configure the extraction progress. Prompts you for confirmation before running the cmdlet. Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

What to do with get-pnpsitetemplate you PNP PowerShell?

It can be used to specify the DisplayName of the template file that will be extracted. It can be used to specify the ImagePreviewUrl of the template file that will be extracted. It can be used to specify custom Properties for the template file that will be extracted.

How to extract a provisioning template from the web?

Extracts a provisioning template in Office Open XML from the current web and saves the files that make up the composed look to the same folder as where the template is saved. Extracts a provisioning template in Office Open XML from the current web, but only processes lists and site security when generating the template.

How to extract a list from a PNP template?

Specify the lists to extract, either providing their ID or their Title. Returns the template as an in-memory object, which is an instance of the SiteTemplate type of the PnP Core Component. It cannot be used together with the -Out parameter.

How to get PNP template in Office Open XML?

Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources Extracts a provisioning template in Office Open XML from the current web, and for supported artifacts it will create a resource file for each supported language (based upon the language settings of the current web).

How to provision a website in officedev PNP?

Let’s say you have defined a sample site with a custom homepage: Besides the custom homepage you created a few events in the out of the box Events list: To export that site as a provisioning template, you can either use PowerShell or CSOM code, with some extension methods, which are provided by the OfficeDev PnP Core Library.

Where can I find the PNP provisioning schema?

As you can see, the XML elements are fairly self-explanatory. The XML schema used in the example references the 201909 version of the PnP provisioning schema, which has been defined together with the SharePoint PnP Community, and which can be found on GitHub at PnP-Provisioning-Schema.

What are the two types of templates in PNP?

There are basically two types of templates that the engine understands: Site Templates (also called Provisioning Templates) and the extended version: Tenant Templates. When the engine was introduced the only template type available was the Site Template.