Forum Discussion

Alan Marshall's avatar
Alan Marshall
Iron Contributor
Dec 19, 2017

Any success with the new Site Design functionality?

The new Site Design PowerShell commands starting to work for me this morning so I created my first script and site design.  The new design appears in the choices when I create a new team site but none of the actions in my script are followed.  Has anyone else had success?

This is the sample JSON to create an issues list and set the theme to a custom one I have in my tenant.  I have been changing the version number as I made updates"

{
    "$schema": "schema.json",
        "actions": [
            {
                "verb": "createSPList",
                "listName": "Issue Tracking",
                "templateType": 1100,
                "subactions": [
                    {
                        "verb": "SetDescription",
                        "description": "List of Porject Issues"
                    }
                ]
            },
            {
                "verb": "applyTheme",
                "themeName": "Black n Blue"
            }
        ],
        "bindata": { },
        "version": 1.2
}
 

5 Replies

  • And if I run a Get-SPOSiteScript after, the Content is empty.  I tried using a file reference as well as passing in a string for the Content parameter.

     

    Id          : 04e7c086-83cc-46d8-8cfa-84826dcfe65a
    Title       : Create project lists and customizations
    Description : Creates lists for project site
    Content     :
    Version     : 1

    • Alan Marshall's avatar
      Alan Marshall
      Iron Contributor

      The Content is returned if I specify the ID so it definitely has the definition

      • Patrick Abel's avatar
        Patrick Abel
        Brass Contributor

        Not yet unfortunately, it looks like this hasn't fully rolled out to targeted release tenants yet.

         

        I've got several site designs and their associated site scripts in place but none are being applied on site creation at the moment. On Team Sites (via O365 Groups) I'm receiving no prompts.

         

        When creating Communication Sites with a custom Site Design, I am seeing the processing pane but it just hangs at initialization (see screenshot).

Resources