Hi guys,

First of all, I want to thank you all for the massive interest for the Site Designs Studio. I was sure it can be a useful tool but I didn’t expect such an amount of reactions. Thank you very much !

Yesterday, I released the source code of the Site Designs Studio WebPart in version 1.0. You can check out the related post here.

[EDIT] The latest version (1.1) of Site Designs Studio, is now maintained under a PnP repository here

Since it is a tool mainly targeting business end-users, I wanted to provide a way to install the WebPart that will not involve technical knowledge for compiling, bundling, etc…

Actually, you will need to type a few commands in PowerShell, but I will try to explain them accurately enough so no amiguities would persist.

## The prerequisites

• Site Designs is a feature only available on SharePoint Online currently, this tool is then not suitable for on-premises setup
• You must be a tenant administrator or be a friend of your tenant administrator 😉
• Office 365 CDN must be enabled
• The installer is a PowerShell script relying on PnP PowerShell, you will also need to install this .msi on your computer.
• Download the Install archive

## Setup the Office 365 CDN

Once the SPO Management Shell is installed, launch it.
In the console, type the following commands

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters

 # Replace "yourtenant" by the name of your tenant Connect-SPOService –Url https://yourtenant-admin.sharepoint.com

view raw

connect-spo.ps1

hosted with ❤ by GitHub

You will be invited to enter your tenant administrator credentials

Get the status of your CDN

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters

 Get-SPOTenantCdnEnabled –CdnType Public Get-SPOTenantCdnOrigins –CdnType Public Get-SPOTenantCdnPolicies –CdnType Public


Value
-----
True

PS C:\tmp> Get-SPOTenantCdnOrigins -CdnType Public
*/MASTERPAGE
*/STYLE LIBRARY
*/CLIENTSIDEASSETS
PS C:\tmp> Get-SPOTenantCdnPolicies -CdnType Public

Key Value
--- -----
IncludeFileExtensions CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF
ExcludeRestrictedSiteClassifications
ExcludeIfNoScriptDisabled False



If you see True as the return of the first command, and you see, at least, */CLIENTSIDEASSETS as the result of the second command, the CDN is properly configured to install our WebPart and you can jump directly to the next section. Otherwise, we have to use a few more commands:

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters

 # Enable the CDN Set-SPOTenantCdnEnabled –CdnType Public # Check the CDN status Get-SPOTenantCdnOrigins –CdnType Public

view raw

Set-CDN.ps1

hosted with ❤ by GitHub

After executing the first command (Set-SPOTenantCdnEnabled), it might will take about 15 minutes to be configured, you can check the setup status with the second command (Get-SPOTenantCdnOrigins). As long as you see the mention “(configuration pending)”, the setup is not complete, re-execute the second command after 15 minutes to check if this mention disappeared. When it did, we’re good to go.

## Install the WebPart

Extract the content of the package.zip archive, in the extracted folder, open a PowerShell console.

If you are on Windows 10, you can do as in the exhibit below

Or you can change directory directly in any PowerShell console (cd \path\to\folder)

Once in the PowerShell console, just type the following command

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters

 # Replace yourtenant by the name of your tenant # Replace yoursite by your site name .\install.ps1 –Url https://yourtenant.sharepoint.com/sites/yoursite

view raw

install-sds.ps1

hosted with ❤ by GitHub

You will be prompted for credentials, here enter again the tenant administrator credentials.

## That’s it ! Enjoy !

You can now try the WebPart and start creating your own Site Designs and Site Scripts !

Hope it will be useful,

Cheers,
Yannick