pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
988 stars 662 forks source link

Can't create a Modern Communication site and specify -Owners parameter #2262

Open Zerg00s opened 5 years ago

Zerg00s commented 5 years ago

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

image

Expected behavior

New-PnPSite -Type **CommunicationSite** should allow us specify -Owners parameter. Similar to New-PnPSite -Type **TeamSite** -Owners

image

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?

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

3.13.1909.0

How did you install the PnP-PowerShell Cmdlets?

ghost commented 5 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Zerg00s commented 5 years ago

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
holylander commented 4 years ago

Same issue here. Also, new version of pnp-powershell present issues with the new-pnpSite ... it takes ages to complete

andersidahl commented 4 years ago

still the same :/

holylander commented 4 years ago

updating the current pnp-powershell version may help