You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
[CmdletHelp("BETA: This cmdlet is using early release APIs. Notice that functionality and parameters can change. Creates a new site collection",
18
+
"The New-PnPSite cmdlet creates a new site collection for the current tenant. Currently only 'modern' sites like Communication Site and the Modern Team Site are supported. If you want to create a classic site, use New-PnPTenantSite.",
18
19
OutputType=typeof(string),
19
20
OutputTypeDescription="Returns the url of the newly created site collection",
20
-
DetailedDescription=@"The New-PnPSite cmdlet creates a new site collection for the current tenant. Currently only 'modern' sites like Communication Site and the Modern Team Site are supported. If you want to create a classic site, use New-PnPTenantSite.",
Remarks=@"This will create a new Modern Team Site collection with the title 'Contoso' and the url 'https://tenant.sharepoint.com/sites/contoso' and sets the site to public.",
49
49
SortOrder=7)]
50
-
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Title",Mandatory=true,HelpMessage=@"Specifies the title of the new site collection",ParameterSetName="CommunicationBuiltInDesign")]
50
+
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Title",Mandatory=true,HelpMessage=@"Specifies the title of the new site collection",ParameterSetName="Communication Site With Built-in Design")]
51
51
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Title",Mandatory=true,HelpMessage=@"Specifies the title of the new site collection",ParameterSetName="CommunicationCustomInDesign")]
52
-
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Url",Mandatory=true,HelpMessage=@"Specifies the full url of the new site collection",ParameterSetName="CommunicationBuiltInDesign")]
52
+
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Url",Mandatory=true,HelpMessage=@"Specifies the full url of the new site collection",ParameterSetName="Communication Site With Built-in Design")]
53
53
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Url",Mandatory=true,HelpMessage=@"Specifies the full url of the new site collection",ParameterSetName="CommunicationCustomInDesign")]
54
-
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Description",Mandatory=false,HelpMessage=@"Specifies the description of the new site collection",ParameterSetName="CommunicationBuiltInDesign")]
54
+
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Description",Mandatory=false,HelpMessage=@"Specifies the description of the new site collection",ParameterSetName="Communication Site With Built-in Design")]
55
55
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Description",Mandatory=false,HelpMessage=@"Specifies the description of the new site collection",ParameterSetName="CommunicationCustomInDesign")]
56
-
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Classification",Mandatory=false,HelpMessage=@"Specifies the classification of the new site collection",ParameterSetName="CommunicationBuiltInDesign")]
56
+
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Classification",Mandatory=false,HelpMessage=@"Specifies the classification of the new site collection",ParameterSetName="Communication Site With Built-in Design")]
57
57
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Classification",Mandatory=false,HelpMessage=@"Specifies the classification of the new site collection",ParameterSetName="CommunicationCustomInDesign")]
58
-
[CmdletAdditionalParameter(ParameterType=typeof(SwitchParameter),ParameterName="AllowFileSharingForGuestUsers",Mandatory=false,HelpMessage=@"Specifies if guest users can share files in the new site collection",ParameterSetName="CommunicationBuiltInDesign")]
58
+
[CmdletAdditionalParameter(ParameterType=typeof(SwitchParameter),ParameterName="AllowFileSharingForGuestUsers",Mandatory=false,HelpMessage=@"Specifies if guest users can share files in the new site collection",ParameterSetName="Communication Site With Built-in Design")]
59
59
[CmdletAdditionalParameter(ParameterType=typeof(SwitchParameter),ParameterName="AllowFileSharingForGuestUsers",Mandatory=false,HelpMessage=@"Specifies if guest users can share files in the new site collection",ParameterSetName="CommunicationCustomInDesign")]
60
-
[CmdletAdditionalParameter(ParameterType=typeof(OfficeDevPnP.Core.Sites.CommunicationSiteDesign),ParameterName="SiteDesign",Mandatory=false,HelpMessage=@"Specifies the site design of the new site collection. Defaults to 'Topic'",ParameterSetName="CommunicationBuiltInDesign")]
60
+
[CmdletAdditionalParameter(ParameterType=typeof(OfficeDevPnP.Core.Sites.CommunicationSiteDesign),ParameterName="SiteDesign",Mandatory=false,HelpMessage=@"Specifies the site design of the new site collection. Defaults to 'Topic'",ParameterSetName="Communication Site With Built-in Design")]
61
61
[CmdletAdditionalParameter(ParameterType=typeof(GuidPipeBind),ParameterName="SiteDesignId",Mandatory=true,HelpMessage=@"Specifies the site design id to use for the new site collection. If specified will override SiteDesign",ParameterSetName="CommunicationCustomInDesign")]
62
-
[CmdletAdditionalParameter(ParameterType=typeof(uint),ParameterName="Lcid",Mandatory=false,HelpMessage=@"Specifies the language of the new site collection. Defaults to the current language of the web connected to.",ParameterSetName="CommunicationBuiltInDesign")]
62
+
[CmdletAdditionalParameter(ParameterType=typeof(uint),ParameterName="Lcid",Mandatory=false,HelpMessage=@"Specifies the language of the new site collection. Defaults to the current language of the web connected to.",ParameterSetName="Communication Site With Built-in Design")]
63
63
[CmdletAdditionalParameter(ParameterType=typeof(uint),ParameterName="Lcid",Mandatory=false,HelpMessage=@"Specifies the language of the new site collection. Defaults to the current language of the web connected to.",ParameterSetName="CommunicationCustomInDesign")]
64
-
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Title",Mandatory=true,HelpMessage=@"Specifies the title of the new site collection",ParameterSetName="TeamSite")]
65
-
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Alias",Mandatory=true,HelpMessage=@"Specifies the alias of the new site collection",ParameterSetName="TeamSite")]
66
-
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Description",Mandatory=false,HelpMessage=@"Specifies the description of the new site collection",ParameterSetName="TeamSite")]
67
-
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Classification",Mandatory=false,HelpMessage=@"Specifies the classification of the new site collection",ParameterSetName="TeamSite")]
68
-
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="IsPublic",Mandatory=false,HelpMessage=@"Specifies if new site collection is public. Defaults to false.",ParameterSetName="TeamSite")]
64
+
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Title",Mandatory=true,HelpMessage=@"Specifies the title of the new site collection",ParameterSetName="Team Site")]
65
+
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Alias",Mandatory=true,HelpMessage=@"Specifies the alias of the new site collection",ParameterSetName="Team Site")]
66
+
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Description",Mandatory=false,HelpMessage=@"Specifies the description of the new site collection",ParameterSetName="Team Site")]
67
+
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="Classification",Mandatory=false,HelpMessage=@"Specifies the classification of the new site collection",ParameterSetName="Team Site")]
68
+
[CmdletAdditionalParameter(ParameterType=typeof(string),ParameterName="IsPublic",Mandatory=false,HelpMessage=@"Specifies if new site collection is public. Defaults to false.",ParameterSetName="Team Site")]
69
69
publicclassNewSite:PnPCmdlet,IDynamicParameters
70
70
{
71
71
[Parameter(Mandatory=true,HelpMessage="@Specifies with type of site to create.")]
[CmdletHelp("Creates a new site collection for the current tenant",
15
-
DetailedDescription=@"The New-PnPTenantSite cmdlet creates a new site collection for the current company. However, creating a new SharePoint
15
+
@"The New-PnPTenantSite cmdlet creates a new site collection for the current company. However, creating a new SharePoint
16
16
Online site collection fails if a deleted site with the same URL exists in the Recycle Bin. If you want to use this command for an on-premises farm, please refer to http://blogs.msdn.com/b/vesku/archive/2014/06/09/provisioning-site-collections-using-sp-app-model-in-on-premises-with-just-csom.aspx ",
[CmdletExample(Code=@"PS:> Get-PnPAvailableApp",Remarks=@"This will return all available app metadata from the tenant app catalog. It will list the installed version in the current site.",SortOrder=1)]
16
+
[CmdletExample(Code=@"PS:> Get-PnPAvailableApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f",Remarks=@"This will the specific app metadata from the app catalog.",SortOrder=2)]
17
+
publicclassGetApp:PnPCmdlet
18
+
{
19
+
[Parameter(Mandatory=false,Position=0,ValueFromPipeline=true,HelpMessage="Specifies the Id of an app which is available in the app catalog")]
0 commit comments