Sp-starter-kit: Is it possible to showcase SP Starter Kit with a limited scope of tenant changes?

Created on 8 Jul 2020  路  5Comments  路  Source: pnp/sp-starter-kit

Category

  • [x] Question

Question

Hi there, thank you for sharing this project and generally for the whole PnP initiative!

I've come across the SP Starter Kit after discovering the Lookbook and related parts on GitHub. So actually what I would like to do, is to test one or another configuration for a communication site.

While we do have a test tenant for such experiments, I've noticed that the SP Starter Kit aims to modify tenant level settings as well. Is it possible to narrow the deployment scope just to a communication site as far as possible, with this or related project?

Author Feedback no-recent-activity question SharePoint Online

Most helpful comment

@synergiator another option is to take the provisioining xml template, take out the tenant settings and other sequence objects you do you need and create your own pnp provisioning package.

General steps:

You can find the base startkit.xml template file here: .\source\templates\starterkit.xml.

Create a copy of this file and make changes as necessary. You could just include a sequence step that provisions a comm site. Be aware that if you want to use any of the webparts from the kit, you will have to follow @bcameron1231 advise.

You can then read and create a new .pnp file by running the following two ps commandlets from the ./provisioning folder

$kit = Read-PnPTenantTemplate -Path ..\source\templates\starterkit-dev.xml
Save-PnPTenantTemplate -Template $kit -Out starterkit-dev.pnp

change starterkit-dev.pnp filename to whatever you create.

From there, you can now apply the custom provisioning template as you normally would, just change the name from startkit.pnp to your custom pnp package.

All 5 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Hi! Thank you for the question!

Unfortunately, the Starter Kit has many tenant level configurations that need to be deployed (e.g, Site Designs, Term Store Terms, etc..). So there isn't a way to deploy using the Provisioning Service on a single site collection, as the Starter Kit deploys much more than that.

It is however entirely possible to just upload the SPPKG files to your App Catalog, and only configure the web parts and any supporting lists (e.g, Alerts) and configure it all manually. The documentation we have does outline some of those supporting assets on how you would need to configure the lists and such. This is probably easier than re-building the PnP Provisioning Template to just include assets for a single communication site.

Is there some specific web parts you are looking to use or?

@synergiator another option is to take the provisioining xml template, take out the tenant settings and other sequence objects you do you need and create your own pnp provisioning package.

General steps:

You can find the base startkit.xml template file here: .\source\templates\starterkit.xml.

Create a copy of this file and make changes as necessary. You could just include a sequence step that provisions a comm site. Be aware that if you want to use any of the webparts from the kit, you will have to follow @bcameron1231 advise.

You can then read and create a new .pnp file by running the following two ps commandlets from the ./provisioning folder

$kit = Read-PnPTenantTemplate -Path ..\source\templates\starterkit-dev.xml
Save-PnPTenantTemplate -Template $kit -Out starterkit-dev.pnp

change starterkit-dev.pnp filename to whatever you create.

From there, you can now apply the custom provisioning template as you normally would, just change the name from startkit.pnp to your custom pnp package.

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.

Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicholas-morris picture nicholas-morris  路  7Comments

jonasbjor picture jonasbjor  路  8Comments

ShowMeTheGita picture ShowMeTheGita  路  7Comments

diver7 picture diver7  路  7Comments

dmitryrogozhny picture dmitryrogozhny  路  7Comments