Skip to content

Bug Report: BackgroundImageUrl PropertyBagEntry Not Working in PnP Provisioning #646

@nirav-raval

Description

@nirav-raval

I'm trying to set a custom header background image for a SharePoint site using the PnP provisioning template by adding a PropertyBagEntry with the key BackgroundImageUrl. However, after provisioning, the image is not being applied or used by the site as expected.

PnP Template Snippet Used:

<pnp:PropertyBagEntries>
  <pnp:PropertyBagEntry Key="BackgroundImageUrl" Value="/sites/branding/SiteAssets/bg.jpg" Overwrite="true" />
</pnp:PropertyBagEntries>

Notes

  • Image URL is accessible and tested
  • tested on multiple tenants
  • Behavior is the same across all communication sites
  • No visual change is observed on the site after provisioning
  • Used invoke-PnPSiteTemplate -Path '' to apply template

Environment Info

  • PnP PowerShell : 3.1.0
  • Applied on: Communication site
  • Used Windows 11 and used
  • PowerShell version - 7.5.1

Related Context

There's an ongoing issue in the PnP PowerShell repo (#4959) regarding the Set-PnPWebHeader command, which could be related to or impact similar customization attempts.

Request

Please confirm:

  • Is BackgroundImageUrl still a supported property for a provisioning?

  • If not, what is the recommended approach to apply a custom background header using provisioning or scripting?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions