Invoke-PnPSiteTemplate issue with header image and alignment
levesquesamuel opened this issue · comments
##Describe the bug
Source URL: https://tenant.sharepoint.com/sites/DepartementTemplate
Destination URL: https://tenant.sharepoint.com/sites/DepartementTemplateV2
Set the Header layout to extended and provide a background image.
Connect-PnPOnline -Url https://tenant.sharepoint.com/sites/DepartementTemplate -Interactive
$template = Get-PnPSiteTemplate -OutputInstance -PersistBrandingFiles -IncludeAllClientSidePages -Handlers SiteHeader
Disconnect-PnPOnline
Connect-PnPOnline -Url https://tenant.sharepoint.com/sites/DepartementTemplateV2 -Interactive
Invoke-PnPSiteTemplate -InputInstance $template -ClearNavigation -Handlers SiteHeader
##Error:
These images are not copied from the PersistBrandingFiles and not applied to the header:
extendedHeaderBackgroundImage*
rectSitelogo*
The Logo alignement is not persisted.
##Expected behavior
There should be an extended header at the destination but it is empty and the image is not copied over from the site asset.
##Environment details (development & target environment)
PNP version: 2.3.0
OS: Windows 11
PSVersion: 7.4
PSEdition: Core
@levesquesamuel did you ever resolve this? I'm having the similar issue for pnp:footer template where we expected the display name and logo to actually be set when we run Invoke-PnPSiteTemplate, but that does not seem to be the case and it's only the existing navigational nodes that is being overwritten.