PNP xml Template to multiple site collections (CSV)

Copper Contributor

Hi all, im a little lost here. I have created a template in xml format from an existing site collection (source site) in our SharePoint Online tenant which I have deployed to another site collection that works fine. However I have multiple site collections (alot) which I want to deploy to with the same template. 


Is it possible to create a CSV file to read from with the site collections I want the template applied too, run the PS script and one by one via script deploy the template? this would help alot from me doing this manually.



1 Reply
Of course it's possible. You just need to write some PowerShell code that iterates through your CSV file and apply the PnP Template to each file...there are bunch of samples of reading a CSV with PowerShell that might help you