I want to save a SharePoint Online modern site collection as a template with SPFx application extension and want to create a SharePoint Online modern site collection using saved template.


You can use Get-PnPProvisioningTemplate, however the preferred method is Site Design scripts in addition to an external service to create the site via CSOM for what Site Designs are unable to do, for example using Azure Functions.

  • Yes, Site design is the preferred one for SharePoint Online.I want to include the my SPFX app while create a site collection. Is it possible? Nov 27 '19 at 4:31
  • If you deploy your app with the tenant wide option selected when trusting the app, yes. If not, you will need to use a CSOM method to deploy your app once the site is ready (e.g. use an Azure Function).
    – Trevor Seward
    Nov 27 '19 at 4:32
  • But here the problem is user have many customization in their site collection and SPFX app. So we cannot use site design here. we need to save like template. Is it possible to give them as a template with all those customization. Nov 27 '19 at 4:49
  • There's no easy solution. You will need to choose one of the solutions I previously mentioned.
    – Trevor Seward
    Nov 27 '19 at 4:52
  • Yes, but we should not suggest the user to run ps for create site collections. We are looking like SharePoint native(OOB) site/sitecollection creation method. Thanks for your quick response. Nov 27 '19 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.