Forum Discussion

KjoniX's avatar
KjoniX
Copper Contributor
May 31, 2024

Best practise for create sites based on template include folders/files

I have a site with lot of folders and subfolders, and some template documents.

 

Bases on this site I want to create project sites from a Power App.

 

I have created a Power App which trigger a Power Automate that trigger a Azure Automation Runbook.

 

It works, but:

Takes long time to run the runbook. Any optimizing that can be done?

What is the best Powershell cmdlet to create folder/subfolder/files?

 

And most important question....am I on the right path? In some way it feels like overengineering

 

 

 

 

 

1 Reply

  • Two options at least here:
    (1) You generate a PnP template including the folders and other setup from the site and apply that template in new sites as part of your automation
    (2) You generate everything you need in the site with PnP PowerShell cmdlets

Resources