pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
985 stars 665 forks source link

[BUG] "The user cannot create group sites in this tenant instance." #3035

Closed svermaak closed 3 years ago

svermaak commented 3 years ago

Reporting an Issue or Missing Feature

Error when trying to create new Geo site using New-PnPSite

Expected behavior

New team site created in the correct GEO location

Actual behavior

New-PnPSite : {"error":{"code":"-2146232832, Microsoft.SharePoint.SPException","message":"The user cannot create group sites in this tenant instance."}} image

Steps to reproduce behavior

Connect-PnPOnline -Url "https://XXXnam.sharepoint.com" -Credentials $cred; New-PnPSite -Type TeamSite -Title "Save to Delete" -Alias "XXXSV009" -Wait -PreferredDataLocation NAM; -or- Connect-PnPOnline -Url "https://XXXdefault.sharepoint.com" -Credentials $cred; New-PnPSite -Type TeamSite -Title "Save to Delete" -Alias "XXXSV009" -Wait -PreferredDataLocation NAM; The second one builds in "https://XXXdefault.sharepoint.com" not the GEO site

Which version of the PnP-PowerShell Cmdlets are you using?

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

3.28.2012.0

How did you install the PnP-PowerShell Cmdlets?

svermaak commented 3 years ago

any ideas?

svermaak commented 3 years ago

also, I have checked that all consents are given

svermaak commented 3 years ago

Issue was account must have the same PDL as the site if done via CSOM. Doing it via portal doesn't have this requirement