Forum Discussion
Creating site collections using Office Dev PnP provisioning framework fails
Pieter is right it seems your site collection is not created yet. did you add code to provision the site collection?
Thank you Deleted and Pieter Veenstra.
Yes, in the past I already succesfully created site collections using the SharePoint UI or Office Dev PnP New-SPOTenantSite command, before I provisioned the site templates using the Apply-SPOProvisioningTemplate. The Apply-SPOProvisioningTemplate reference an XML-file with the configuration located in a <pnp:ProvisioningTemplate> element. It seems this still is needed.
I'm still wondering: Why does the provisioning schema also includes elements regarding site collections, as described at https://github.com/OfficeDev/PnP-Provisioning-Schema/blob/master/ProvisioningSchema-2016-05.md#sitecollection?
<pnp:Provisioning>
<pnp:Sequence>
<pnp:SiteCollection>
... </pnp:SiteCollection>
</pnp:Sequence>
</pnp:Provisioning>
- Oct 10, 2016
HaroldvandeKamp, are you using the New-SPOTenantSite -template switch? Or are you creatig a site collection without applying a base sharePoint template?
- Soumyadev BhattacharyyaApr 25, 2017Copper Contributor
Trying to use Pnp provisioning framework to apply site template on existing created site collection or subsite is working.
However, I also could not see any usage of pnp:SiteCollection tag within pnp:Sequence
Wondering how to make use of this using c# code. Any suggestion on this.
- DeletedApr 26, 2017
You have to understand not all nodes in the schema are implemented in the code. The team asks in a community call which nodes have to be added or removed to come to a version of the template. After that it is still to the community to develop it.
In may there will be a new Schema 2017/04 if i am not mistaking. Which will have other newer request so if you are interested it may be a idea to become a contributer.