PowerShell to copy a SPO site (belonging to a Group)?


Hello all,  


I am looking for the best solution to copy a SPO site (belonging to a Group) between sites, and ideally create a template from it.  


Since we unfortunately did not set this up as a Standalone Team Site, using the 'Save Site as Template' option is now not available for us in this instance.  


Is there a way for PowerShell to do the job? 

1 Reply
best response confirmed by Beau Cameron (MVP)
Take a look at PnP Provisioning Stufff....It will allow you to extract the definition of your site and use as template to any new site you provision with PowerShell / Code / Flow