Skip to content

[BUG] Set-PnPStorageEntity -Key <String> -Value <String> -Scope Site -> Its not working #5194

@jeganraj

Description

@jeganraj

Reporting an Issue

I tried setting the scope at the site collection level, but it is not working. I followed the document below:
https://pnp.github.io/powershell/cmdlets/Set-PnPStorageEntity.html

Set-PnPStorageEntity -Key -Value - Scope Site

Expected behavior

We need to set Set-PnPStorageEntity at the site collection level, but it is currently not working.

Actual behavior

It is working at the tenant level, but it is not working at the site collection level. When will we be able to make it work?

Connect-PnPOnline -Url https://tenant-admin.sharepoint.com -Interactive
Add-PnPSiteCollectionAppCatalog -Site https://tenant.sharepoint.com/sites/storagebag
Set-PnPSite -Identity https://tenant.sharepoint.com/sites/storagebag -DenyAddAndCustomizePages $false
Set-PnPSite -Identity https://tenant.sharepoint.com/sites/storagebag -NoScriptSite $false
Connect-PnPOnline -Url https://tenant.sharepoint.com/sites/storagebag -Interactive

Tenant Level

Set-PnPStorageEntity -Key "IsDev" -Value 'false' -> Its working

SiteCollection Level

I have tried two tenants

Set-PnPStorageEntity -Key "IsDev" -Value 'false' -Scope Site

WARNING: Site Collection App Catalog is not available on this site. -> One tenant error

Error: Access Denied -> Another tenant error

Which operating system/environment are you running PnP PowerShell on?

  • Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions