Forum Discussion
Martin Segelfeldt
Sep 29, 2016Copper Contributor
Provision sub site using PnP Site provisioning schema?
I am trying to provision a site hierarchy using the PnP site provisioning engine and an .xml file. One thing I am having a bit of a problem with is how do I provision sub sites? I want to provisi...
Sep 30, 2016
PnP engine does not provision any sites. It is only able to apply templates on an existing site or extract a template from an existing site. So from your code or powershell, first provision a new sub site and then apply a template on it. This can be done using pnp.core extensions or using plain csom/rest api's. Within the PnP schema there is a sequence element available in order to define a site structure (site collections and sites). Only the PnP engine does not do anything (yet) with the sequences.