PnP-PowerShell
PnP-PowerShell copied to clipboard
Can't create a Modern Communication site and specify -Owners parameter
Reporting a Missing Feature
There seems to be no way to create a modern communucation site when using Azure AD App authentication with a certificate.
Connect-PnPOnline `
-Thumbprint '3F662A18E394693DA8EFD6A6C214E155B4909323' `
-Tenant <Tenant>.onmicrosoft.com `
-ClientId 60546258-XXX-4337-8848-2965c75b75ee `
-Url https://<Tenant>-admin.sharepoint.com
New-PnPSite -Type CommunicationSite -Title "Comm1" -Url https://<Tenant>.sharepoint.com/sites/Comm1
Expected behavior
New-PnPSite -Type **CommunicationSite**
should allow us specify -Owners parameter. Similar to New-PnPSite -Type **TeamSite** -Owners
Actual behavior
When using New-PnPSite -Type CommunicationSite , there is no way to specify an Owner.
Steps to reproduce behavior
Type New-PnPSite -Type CommunicationSite
and then try to specify an Owner
Which version of the PnP-PowerShell Cmdlets are you using?
- [ ] PnP PowerShell for SharePoint 2013
- [ ] PnP PowerShell for SharePoint 2016
- [x] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
3.13.1909.0
How did you install the PnP-PowerShell Cmdlets?
- [ ] MSI Installed downloaded from GitHub
- [x] Installed through the PowerShell Gallery with Install-Module
- [ ] Other means
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Workaround
We can use the old New-PnPTenantSite commandled. It seems to work fine. But I'm not sure if it causes any issues when creating modern Communication sites with it:
New-PnPTenantSite -Title $currentSite.SiteTitle -Url $fullSiteUrl -Owner $SiteOwner -Template 'SITEPAGEPUBLISHING#0' -TimeZone 10 -Wait
Same issue here. Also, new version of pnp-powershell present issues with the new-pnpSite ... it takes ages to complete
still the same :/
updating the current pnp-powershell version may help