Skip to content

New-PnPSite can't create new team site #405

@tina-palomino

Description

@tina-palomino

Reporting an Issue or Missing Feature

Reporting and issue with New-PnPSite, the condole hangs after I run the script. They O365 group is created but the site isn't.

Expected behavior

Team site and O365 group assigned get created.

Actual behavior

O365 group is created but team site isn't.

Steps to reproduce behavior

Running PowerShell 7.1 and version 1.3.0 or pnp.powershell.

#1
#.csv with general access sites details

$sites = Import-Csv C:\Code\SPFileSystem\OpsGeneralAccess\OpsGeneralSite.csv

$Creds = Get-Credential

#2
#SharePointPnP Create sites
#Connect SharePointPnP
Register-PnPManagementShellAccess
Connect-PnPOnline -url "https://xxxxx.sharepoint.com" -Credentials $Creds

foreach ($site in $sites){

New-PnPSite -Type $site.type -Title $site.title -Alias $site.alias

}

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

Running PowerShell 7.1 and version 1.3.0 or pnp.powershell.

Which operating system/environment are you running PnP PowerShell on?

  • [x ] Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions