Not seeing PageLayout.aspx in .pnp file




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
try with the flag PersistPublishingFiles when calling Get-PnPProvisioningTemplate
it should get the custom PageLayouts then.

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