PnP
PnP copied to clipboard
Get-PnPTenantSite IsHubSite HubSiteID bad data output
Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you. If you have a actual question, we would ask you to use SharePoint Developer Group at Microsoft Tech Community. Thanks!
Category
[x] Bug
Environment
[x] Office 365 / SharePoint Online
Expected or Desired Behavior
When running the Get-PnPTenantSite with Select IsHubSite and/or HubSiteID, I should get the same correct results as Get-SPOSite with Select IsHubSite and/or HubSiteId. Had another admin give it a test, same result.
Observed Behavior
Get-PnPTenantSite | Select URL,IsHubSite,HubSiteId | ?{$_.Url -like "valid hub site"} Result: URL - correct, IsHubSite - False, HubSiteId - (GUID is all 0's)
Same command with Get-SPOSite - all valid data returned.
Steps to Reproduce
Edit: Screenshot cut it off, module full version number is 3.11.1907.0
Thanks for your contribution! Sharing is caring.
Can you try with Get-PnPSite - this is the O365 GROUP version.
The commands I'd use are ;
- Get-PnPSite
- Get-PnPTenantSite