Skip to content

Get-PNPSiteCollectionAppcatalogs slower in 1.11.0 and later #2986

@Ambergahill

Description

@Ambergahill

Reporting an Issue or Missing Feature

I recently noticed that calling the Get-PNPSiteCollectionAppcatalogs command used to take a few seconds and now seems to run forever. I tracked it down to it working fine in 1.10.0. In 1.11.0, it errors out. This was the same time you introduced Get-PNPSiteCollectionAppcatalog (singular) and started throwing a warning to stop using Get-PNPSiteCollectionAppcatalogs. I am assuming it is related to this. In 1.12.0, the error with it crashing seems to be fixed, but now it does not run quickly anymore. The results are the same whether you use Get-PNPSiteCollectionAppcatalog or Get-PNPSiteCollectionAppcatalogs

Expected behavior

Get-PNPSiteCollectionAppcatalog should return all sites with an app catalog in a reasonable amount of time.

Actual behavior

Works fine in 1.10.0. Crashes in 1.11.0. Takes forever in 1.12.0 and later. See screenshot
AppCatalogIssue

Steps to reproduce behavior

Load PnP module 1.12.0 or later. Connect to tenant. Run Get-PNPSiteCollectionAppcatalog. Our tenant is very large with 108,457 sites and 4,554 sites have app catalog. Not sure if you will be able to repro this is a small environment.

What is the version of the Cmdlet module you are running?

Works fine in 1.10.0. Crashes in 1.11.0. Takes forever in 1.12.0 and later.

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

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    azure-automationIncludes Azure Functions or Azure RunbooksenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions