get a template with content so that the template can be used to create a site with content

Iron Contributor

Site Design and Site Script can be used to create modern sites.

 

However, i have not found any way to get a template with content so that the template can be used to create a site with lists and libraries with content.

 

the save site as a template still features in the Modern Sites however when applied sts#3 does not match #0.

 

 

1 Reply

Sounds like a job for the PnP Provisioning Engine.

 

You can use PowerShell or CSOM to extract a template, then apply it to another site. The PnP provisioning template can include lists and libraries as well as pages and client side components (web parts), as well as other things like permissions, groups, navigation etc. All this is configurable within the extracted PnP template.

 

https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/pnp-provisioning-engine-and-the-co...