New-PnPSite: suggest to seperate it into 2 commands
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
The way it currently designed makes it scalable. I don't see the engineers changing this.