Add-PnPSiteDesign

Creates a new Site Design on the current tenant.

Syntax

Add-PnPSiteDesign
   -Title <String>
                    -SiteScriptIds <GuidPipeBind[]>
                    -WebTemplate <SiteWebTemplate>
                    [-Description <String>]
                    [-IsDefault [<SwitchParameter>]]
                    [-PreviewImageAltText <String>]
                    [-PreviewImageUrl <String>]
                    [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Add-PnPSiteDesign -Title "My Company Design" -SiteScriptIds "e84dcb46-3ab9-4456-a136-66fc6ae3d3c5","6def687f-0e08-4f1e-999c-791f3af9a600" -Description "My description" -WebTemplate TeamSite

Adds a new Site Design, with the specified title and description. When applied it will run the scripts as referenced by the IDs. Use Get-PnPSiteScript to receive Site Scripts. The WebTemplate parameter specifies that this design applies to Team Sites.

Required Parameters

-SiteScriptIds

An array of guids of site scripts

Type:GuidPipeBind[]
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Title

The title of the site design

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-WebTemplate

Specifies the type of site to which this design applies

Type:SiteWebTemplate
Position:Named
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Description

The description of the site design

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-IsDefault

Specifies if the site design is a default site design

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-PreviewImageAltText

Sets the text for the preview image

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-PreviewImageUrl

Sets the url to the preview image

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False