You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/declarative-customization/site-design-pnp-provisioning.md
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -206,18 +206,18 @@ Notice that we are using 2 environment variables, one called ```SPO_AppId```, th
206
206
2.```SPO_AppSecret```: set the value to the Client Secret you copied in the first step when creating your app on your tenant.
207
207
208
208
# Creating the Site Design
209
-
Open PowerShell and make sure you either have the Microsoft Office 365 Management Shell or the PnP PowerShell Module installed. Both will work, but the cmdlets are named slightly different. In this walkthrough we will use the [PnP PowerShell Cmdlets](https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/?view=sharepoint-ps).
209
+
Open PowerShell and make sure you have the Microsoft Office 365 Management Shell installed.
210
210
211
-
First connect to your tenant using Connect-PnPOnline:
211
+
First connect to your tenant using Connect-SPOService:
Now you can retrieve the existing Site Designs using
218
218
219
219
```powershell
220
-
Get-PnPSiteDesign
220
+
Get-SPOSiteDesign
221
221
```
222
222
In order to create a Site Design you first need to create a Site Script. Think of a Site Design as a container which refers to 1 or more Site Scripts.
223
223
1. Copy the following JSON code to your clipboard and modify it. Set the url property to the value you copied when creating the flow. The URL looks alike :
@@ -246,16 +246,17 @@ In order to create a Site Design you first need to create a Site Script. Think o
246
246
1. Open PowerShell and enter the following to copy the script into a variable and create the site script
1. You should be presented with a list of one or more site script, including the site script you just created
252
+
1. You should be presented with a list of one or more site scripts, including the site script you just created
253
253
1. Select the ID of the Site Script you just created and copy it to the clipboard
254
254
1. Create the Site Design:
255
255
```powershell
256
-
Add-PnPSiteDesign -Title "Site with footer" -SiteScriptIds [Paste the ID of the Site Script here] -WebTemplate TeamSite
256
+
Add-SPOSiteDesign -Title "Site with footer" -SiteScripts [Paste the ID of the Site Script here] -WebTemplate "64"
257
257
```
258
258
259
+
The Add-SPOSiteDesign will associate the site design with the Team Site. If you want to associate the design with a Communication Site use "68".
259
260
# Concluding
260
261
After you created your Storage Queue, you created the app Id for the app only access, you correctly created the Azure Function, you created the Site Design and triggered the correct Microsoft Flow from the Site Design, you are all good to go.
0 commit comments