Skip to content

Bug report: 'm365 spo site appcatalog list' returns deleted site collection app catalog #6794

@Saurabh7019

Description

@Saurabh7019

Priority

(Low) Something is a little off

Description

This isn't necessarily a bug, but it can be confusing.

The m365 spo site appcatalog list command returns entries for site collection app catalogs even when the corresponding site collections have been deleted. Can this command be enhanced to follow the approach used in PnP PowerShell, which supports an -ExcludeDeletedSites flag in Get-PnPSiteCollectionAppCatalog?

Steps to reproduce

  • Delete a site collection that has an app catalog enabled.
  • Run the command
  • Verify the sites returned in the results

Expected results

The command should provide an option to exclude deleted sites from the results.

Actual results

It returns the list of site collections including the deleted sites.

Diagnostics

No response

CLI for Microsoft 365 version

v10.8.0

nodejs version

v22.16.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions