Home

Provision new team site with custom SiteDesign using New-PnPSite

%3CLINGO-SUB%20id%3D%22lingo-sub-193051%22%20slang%3D%22en-US%22%3EProvision%20new%20team%20site%20with%20custom%20SiteDesign%20using%20New-PnPSite%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-193051%22%20slang%3D%22en-US%22%3E%3CP%3EI%20implemented%20a%20custom%20site%20design%20for%20modern%20Team%20sites%20in%20my%20tenant%2C%20which%26nbsp%3BI%20can%20create%20without%20issues%20using%20the%20Create%20Site%20button%20and%20select%20from%20a%20drop%20down.%26nbsp%3B%20But%20I'd%20like%20to%20provision%20my%20team%20sites%20using%20the%20%3CSTRONG%3ENew-PnPSite%3C%2FSTRONG%3Ecmdlet.%26nbsp%3B%26nbsp%3BThis%20cmdlet%20contains%20params%20for%20%3CSTRONG%3E-Type%3C%2FSTRONG%3Eand%20%3CSTRONG%3E-SiteDesign%3C%2FSTRONG%3E.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20set%20Type%3D%22CommunicationSite%22%26nbsp%3Band%26nbsp%3BSiteDesign%20to%20%22Topic%22%20or%20%22Showcase%22%20then%20New-PnPSite%26nbsp%3Bworks%20as%20expected.%26nbsp%3B%20But%20if%20Type%3D%22TeamSite%22%20and%20SiteDesign%3D%22%5BMy%20custom%20Team%20Site%20Design%5D%22%2C%26nbsp%3BPowershell%20reports%20an%20error%20of%20%22%3CEM%3E%3CSTRONG%3EA%20parameter%20cannot%20be%20found%20that%20matches%20parameter%20name%20'SiteDesign'.%3C%2FSTRONG%3E%3C%2FEM%3E%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20know%20if%20this%20is%20expected%20behavior%20and%20if%20so%2C%20why%3F%26nbsp%3B%20I%20realiz%20that%20OOTB%20there%20is%20only%20a%20single%20default%20site%26nbsp%3Bdesign%20for%20Team%20sites%2C%20so%20it%20would%20make%20sense%20that%20you%20can't%20set%20a%20SiteDesign%20by%20default.%26nbsp%3B%20But%20since%20its%20possible%20to%20create%20custom%20site%20designs%20for%20team%20sites%20it%20seems%20like%20the%20ability%20to%20specify%20the%20SiteDesign%20is%20just%20as%20important%20for%20team%20sites%20and%20comm%20sites.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ETom%20Castiglia%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-781518%22%20slang%3D%22en-US%22%3ERe%3A%20Provision%20new%20team%20site%20with%20custom%20SiteDesign%20using%20New-PnPSite%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-781518%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89255%22%20target%3D%22_blank%22%3E%40Tom%20Castiglia%3C%2FA%3E%26nbsp%3BDid%20you%20ever%20find%20a%20solution%20for%20this%3F%26nbsp%3B%20I%20am%20having%20the%20same%20issue.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Tom Castiglia
Contributor

I implemented a custom site design for modern Team sites in my tenant, which I can create without issues using the Create Site button and select from a drop down.  But I'd like to provision my team sites using the New-PnPSite cmdlet.  This cmdlet contains params for -Type and -SiteDesign

 

If I set Type="CommunicationSite" and SiteDesign to "Topic" or "Showcase" then New-PnPSite works as expected.  But if Type="TeamSite" and SiteDesign="[My custom Team Site Design]", Powershell reports an error of "A parameter cannot be found that matches parameter name 'SiteDesign'.".

 

Anyone know if this is expected behavior and if so, why?  I realiz that OOTB there is only a single default site design for Team sites, so it would make sense that you can't set a SiteDesign by default.  But since its possible to create custom site designs for team sites it seems like the ability to specify the SiteDesign is just as important for team sites and comm sites.

 

Regards,

Tom Castiglia

 

1 Reply

@Tom Castiglia Did you ever find a solution for this?  I am having the same issue.

Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies