Replies: 8 comments
-
| @veronicageek - can you also try and reproduce this issue ? I couldn't , so not sure if we can do anything about this. For me, it works everytime. | 
Beta Was this translation helpful? Give feedback.
-
| @gautamdsheth @veronicageek - Could it be due to our Tenant being a GCC? | 
Beta Was this translation helpful? Give feedback.
-
| No idea, can you maybe try setting the owner parameter the same as the one you use to connect to and try again ? | 
Beta Was this translation helpful? Give feedback.
-
| My bad, I need to update to original code. I specified the owner being an email address when in fact it is an Azure AD Group. Therefore the  | 
Beta Was this translation helpful? Give feedback.
-
| @gautamdsheth @veronicageek any updates? | 
Beta Was this translation helpful? Give feedback.
-
| No updates and we can't repro it either, will move it to discussion forum in case someone in the community has idea. | 
Beta Was this translation helpful? Give feedback.
-
| We are encountering the exact same issue. However, we noticed that changing a specific setting in the SharePoint admin center resolves it immediately. We've tested this multiple times, and it consistently shows the same behavior. Disabling "Show the options to create a site in SharePoint and create a shared library from OneDrive" and running: Enabling the setting and running the same command works fine. Mentioned Setting: https://learn.microsoft.com/en-us/sharepoint/manage-site-creation | 
Beta Was this translation helpful? Give feedback.
-
| Same issue here when provisioning a CommunicationSite (TeamSite works fine). Notably running Add-PnPHubSiteAssociatio after creating a communication site functions as expected. New-PnPSite -Type CommunicationSite -Title 'Test' -Url 'https://mytenant.sharepoint.com/sites/test' -HubSiteId '30c5bf44-b5aa-427f-a21b-ec9366aaa329' | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Reporting an Issue or Missing Feature
Reopening #3594
I'm unable to run New-PnpSite when providing a
-hubSiteID. When I run it without providing the-HubSiteID, it works. I have the SharePoint Admin role active and in the SharePoint admin center I can perform this action.More information - GCC Tenant - The hub does not require authorization, as the SharePoint Admin I have created and am a admin over all site collections.
Expected behavior
Create a site with a hub association during creation.
Actual behavior
Steps to reproduce behavior
I performed the suggestion by @gautamdsheth to use the GUID to create the site, this did not work. As mentioned by OP and now me, running
Add-PnPHubSiteAssociationafter the site creation succeeds.What is the version of the Cmdlet module you are running?
In PS-ISE - v1.12.0
In vsCode and PowerShell v7.4.1 - v2.3.0
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions