sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Creating an in-memory provisioning template from an xml string

Open rjn71 opened this issue 7 years ago • 3 comments

Category

  • [x] Question
  • [ ] Typo
  • [ ] Bug
  • [ ] Additional article idea

Creating an in-memory provisioning template from an xml string

All the examples I've come across for applying a provisioning template involve reading the template from a physical file path. I would like to create an in memory template reading from an xml string and then call Apply-PnPProvisioningTemplate. Reason being I'm executing the powershell script in Azure function and I'm passing the template as a string parameter to the azure function. I've tried creating a template object using New-PnPProvisioningTemplate, but after that I couldn't figure out how to set the template with the xml supplied. I looked at Read-PnPProvisioningTemplate, but that also expects a file path as input.

Thanks

rjn71 avatar Apr 14 '19 09:04 rjn71

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Apr 14 '19 09:04 msft-github-bot

This question is probably best posted to the PnP Core repo as that's where all the work & people involved with it address feedback: https://github.com/SharePoint/PnP-Sites-Core

andrewconnell avatar Apr 16 '19 13:04 andrewconnell

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 24 '20 18:01 msft-github-bot