Open robertcaretta opened 6 years ago
Apparently this is the proper format to be used. Is the documentation out of date?? New-PnPSite -Type TeamSite -Title Contoso -Alias contoso
Any update on this ? I have the same issue. My Binary version is the 2.27.18
@AlainCote - Try the alias parameter, that worked for me. Pretty sure it defaults to /sites/[ALIAS]
Hi Robert, Tks for the quick response. Even if I add the alias parameter, the URL does not show (u can see in the attachment). Could it be related to my version of powershell ISE ? Sometime when I open ISE and type a get-help on New-PnPsite, there is no detail in the help menu, it's totally blank. I close and restart ISE and boom, the detail appear.
I see the same thing. The -URL parameter is not available, hence the ticket. :) You don't need the URL parameter though if you use -Alias. It gets you to the same place.
The loading issue happens to me occasionally as well. I think the program sometimes takes a bit to load the modules in. I have a lot of them. It's a quirk of the program IMO.
I have the same problem. -url parameter apparently not supported. I have version 3.4.1812.2.
The -alias workaround is not good for me, since I want some sites to be created as https://tenant/sites/site name and others as https://tenant/teams/site name
I had hoped for -url in order to accomplish this dynamic setup. Any ideas on how to make it happen?
Regards Leif
Reporting an Issue or Missing Feature
New-PnPSite -Url parameter is not working. I updated the module but still does not work.
Expected behavior
Code should function per the examples in the documentation here. https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/new-pnpsite?view=sharepoint-ps
Actual behavior
Receive an error ...
New-PnPSite_ : A parameter cannot be found that matches parameter name 'Url'. At line:1 char:42
Steps to reproduce behavior
Run the following code ... New-PnPSite -Type TeamSite -Title $title -Url $url;
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing
Get-Module -Name *pnppowershell* -ListAvailable
) Binary 2.27.18 Binary 2.26.18 Binary 2.26.18 Binary 2.25.18 Binary 2.25.18How did you install the PnP-PowerShell Cmdlets?