SOLVED

Hi Guys, Who knows that how to create a SPO site from a customized template?

Copper Contributor

I want to create a site with my own customized template rather than "team site or communication site" template provided by default. Who knows how to achieve this? in powershell or portal or anyway is ok.

2 Replies
best response confirmed by HarrysProfile (Copper Contributor)
Solution
You can absolutely do this in SharePoint Online and this is what you have to take a look:
(1) Learn how to create and apply PnP Templates to SPO Sites...A PnP Template is an XML file that contains all the customizations you want for your sites. This approach implies you are going to create your sites and apply the template by means of PowerShell Code, #C Code (in an Azure Function) or Flow...there are different patterns to do that.
(2) As an alternative to PnP Templates, take a look at Site Scripts & Site Designs...A Site Script is a JSON file that contains customizations to be applied to new and existing sites. A Site Design can contain more than one Site Scripts and Site Design can be applied to a new or existing site in the following ways: Directly in the SPO UI using the Site Desings option available in the settings menu for existing sites or at the moment of creating a communication site, PS Code, C# code or Flow

Thanks so much, Juan, I will do more research according to your advice @Juan Carlos González Martín

1 best response

Accepted Solutions
best response confirmed by HarrysProfile (Copper Contributor)
Solution
You can absolutely do this in SharePoint Online and this is what you have to take a look:
(1) Learn how to create and apply PnP Templates to SPO Sites...A PnP Template is an XML file that contains all the customizations you want for your sites. This approach implies you are going to create your sites and apply the template by means of PowerShell Code, #C Code (in an Azure Function) or Flow...there are different patterns to do that.
(2) As an alternative to PnP Templates, take a look at Site Scripts & Site Designs...A Site Script is a JSON file that contains customizations to be applied to new and existing sites. A Site Design can contain more than one Site Scripts and Site Design can be applied to a new or existing site in the following ways: Directly in the SPO UI using the Site Desings option available in the settings menu for existing sites or at the moment of creating a communication site, PS Code, C# code or Flow

View solution in original post