Cli-microsoft365: spo hubsite list fails when using includeAssociatedSites switch

Created on 30 Oct 2019  路  2Comments  路  Source: pnp/cli-microsoft365

When using the spo hubsite list --includeAssociatedSites -o json command to return Hubsites with associated sites, the command fails because it's looking at the root SharePoint site instead of the SharePoint Admin site, the error message returned is;

{"message":"List 'DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECOLLECTIONS' does not exist at site with URL 'https://<tenant>.sharepoint.com'."}

At line 75 in hubsite-list.ts

https://github.com/pnp/office365-cli/blob/cd657ed0fbdd5bec319d846f2dce906390f28dc2/src/o365/spo/commands/hubsite/hubsite-list.ts#L75

bug work in progress

Most helpful comment

The fix for this issue is available in the latest beta which you can get through npm i -g @pnp/office365-cli@next. Once again, thank you for reporting 馃憤

All 2 comments

Thank you for reporting it @phillipharding. We'll look into it asap.

The fix for this issue is available in the latest beta which you can get through npm i -g @pnp/office365-cli@next. Once again, thank you for reporting 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arjunumenon picture arjunumenon  路  3Comments

garrytrinder picture garrytrinder  路  3Comments

joshua-probst picture joshua-probst  路  3Comments

vineet2907 picture vineet2907  路  3Comments

VelinGeorgiev picture VelinGeorgiev  路  3Comments