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."}}
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
[X] 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
[X] Installed through the PowerShell Gallery with Install-Module
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](https://user-images.githubusercontent.com/12259728/102700463-b0e68f80-42a1-11eb-86e0-f3bfdb64a9d9.png)
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?