0

Is there a way to provide a modern ui site template based on an XML file? This doesn't seem to work.

$site_script = Get-Content -Path "./siteTemplate1.xml" -Raw
$SiteScript = Add-SPOSiteScript  -Title "siteTemplate XML"  -Content $site_script  -Description "siteTemplate1 XML" 
Add-SPOSiteDesign  -Title "siteTemplate XML"  -WebTemplate "64"  -SiteScripts $SiteScript.Id  -Description "siteTemplate1 XML"

I tried different ways with PnP-provisioning but making an JSONfile from scratch is just a real pain in the a .. arm.

Some sitetemplates need managed metadata column and connected to a specific hubsite... others sitetemplates need different coloring, ...

Any ideas?

0

I think you are stuck with using JSON I'm afraid.

Have you tried using e.g. this tool to get a start on the JSON? https://www.sitedesigner.io/#/ so that you do not have to start from scratch.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.