Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Get-PnPHubSiteChild returns results that are not children of the specified hub #3768

Open
AndyBoyet opened this issue Feb 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@AndyBoyet
Copy link

AndyBoyet commented Feb 20, 2024

Notice

Many bugs reported are actually related to the PnP Framework which is used behind the scenes. Consider carefully where to report an issue:

Reporting an Issue or Missing Feature

Get-PnPHubSiteChild returns results that are inconsistent with the Admin center. These results are not children of the specified hub.

Expected behavior

Get-PnPHubSiteChild returns results that are verifiable against the admin center

Actual behavior

When using Get-PnPHubSiteChild, some sites are returned showing associations with hub sites that do not exist according to the admin center.

Steps to reproduce behavior

Run Get-PnPHubSiteChild and compare with Admin Center hub site settings. It seems to happen on sites with multiple levels of hub sites.

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

(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable)
2.3.0

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

  • [ X] Windows
@AndyBoyet AndyBoyet added the bug Something isn't working label Feb 20, 2024
@markgort86
Copy link
Contributor

Is there a way how to reproduce this issue? I created just a random HubSite and associated three SharePoint sitecollection to it. All those results are reflected running this cmdlet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants