PnP-PowerShell icon indicating copy to clipboard operation
PnP-PowerShell copied to clipboard

New-PnPSite: suggest to seperate it into 2 commands

Open Tran-Kien opened this issue 8 years ago • 1 comments

Hi,

This is rather a suggestion than an issue.

I spent quite some time to understand why sometimes the command New-PnPSite would give an error with certain parameters and sometimes it won't.

I came to the conclusion that when running the command with -Type TeamSite or -Type CommunicationSite, the cmdlet would expose/require different parameters (-Alias, -Url, -SiteDesign). This can get really confusing.

I guess there is only 2 possible -Type values so why not make 2 commands out of it since each -Type uses different sets of parameters anyway?

New-PnPTeamSite New-PnPCommunicationSite

Thanks

Tran-Kien avatar Jun 14 '18 15:06 Tran-Kien

The way it currently designed makes it scalable. I don't see the engineers changing this.

robertcaretta avatar Jun 18 '18 21:06 robertcaretta