Apply-PnPProvisioningTemplate #254
-
Hello, Are You planning to add Apply-PnPProvisioningTemplate function to PnP.PowerShell? I was using SharePointPnPPowerShellOnline with Powershell 5.1 and I managed to built some scripts. I wanted to improve them with Azure functions but there is an issue that you can use only Powershell 7.0 with Azure function apps. Or maybe You can help me out with some workaround? Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It's there, but we renamed it. It's called |
Beta Was this translation helpful? Give feedback.
-
Thank You, it works now. I would like to contribute and share the code that works now. I was folowing this manual https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-pnp-provisioning and then faced problem described above. I have been thinking that Invoke-PnPSiteTemplate is only providing new templates but like Ervin wrote it work same as Apply-PnPProvisioningTemplate. One more thing - I had to convert my template using Convert-PnPProvisioningTemplate - here's manual https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/convert-pnpprovisioningtemplate?view=sharepoint-ps The other thing I had to reslove and had problems was how to define $env: parameters - You do it in function app / configuration / app settings
|
Beta Was this translation helpful? Give feedback.
It's there, but we renamed it. It's called
Invoke-PnPSiteTemplate
now. Same parameters, same functionality.