Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to create Communication site via PnP PowerShell #1542
Reporting an Issue or Missing Feature
When trying to create a new communication site via PnP Powershell I receive an error noting that the site url is blank. I include the error below under actual behaviour. Note this always use to work and I have not changed any of my code. I include a code sample below. Interestingly, we have a dev tenancy and the same command ran against this tenancy does work as expected. The issue appears to be confined to our production tenancy: uob.sharepoint.com. However, to my knowledge nothing has changed which could results in this error. We have checked with multiple Global admin accounts on different machines and with services running on Azure. In all cases we get the below error when attempting to create sites in the Production tenancy. Has anyone come across this before?
Communication site created and url returned.
Steps to reproduce behavior
$title = "Sandpit site"
$communicationSiteUrl = New-PnPSite -Type CommunicationSite -Title $title -Description $description -Url $site_url -Classification $classification -SiteDesign Topic
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
How did you install the PnP-PowerShell Cmdlets?
Hi all, I raised this ticket with Microsoft Support and apparently the issue was down to a Microsoft problem which effected the creation of site collections on certain tenancies. This has now been resolved in my tenancy and my PnP provisioning engine is now working correctly.