pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets

Home Page:https://pnp.github.io/powershell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

svermaak opened this issue · comments

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?

  • PnP PowerShell for SharePoint 2013
  • PnP PowerShell for SharePoint 2016
  • PnP PowerShell for SharePoint 2019
  • PnP PowerShell for SharePoint Online

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

3.28.2012.0

How did you install the PnP-PowerShell Cmdlets?

  • MSI Installed downloaded from GitHub
  • Installed through the PowerShell Gallery with Install-Module
  • Other means

any ideas?

also, I have checked that all consents are given

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