Not seeing PageLayout.aspx in .pnp file

Highlighted
Contributor

Hi,

 

When i use powershell to create a provisioning template I notice I am not seeing the my PageLayout.aspx files when I open the .pnp file. This I think causes ApplyProvisioningTemplate() to fail. Any ideas?

2 Replies
Highlighted
try with the flag PersistPublishingFiles when calling Get-PnPProvisioningTemplate
https://github.com/SharePoint/PnP-PowerShell/blob/master/Documentation/GetPnPProvisioningTemplate.md
it should get the custom PageLayouts then.
Highlighted

is the pagelayout not content instead of the xml for your provisioning?