Skip to content

Commit 195a330

Browse files
erwinvanhunenVesaJuvonen
authored andcommitted
Documentation updates (SharePoint#1125)
* Initial checkin * Updated image * Updated * Updated * updated * small typo fix * fixed markup * fix * typo * markup fixes * typo * Fixed typo * Replace Cmdlets with SPO cmdlets * Fixed syntax on cmdlet
1 parent 55ba7f3 commit 195a330

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/declarative-customization/site-design-pnp-provisioning.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,18 @@ Notice that we are using 2 environment variables, one called ```SPO_AppId```, th
206206
2. ```SPO_AppSecret```: set the value to the Client Secret you copied in the first step when creating your app on your tenant.
207207

208208
# 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.
210210

211-
First connect to your tenant using Connect-PnPOnline:
211+
First connect to your tenant using Connect-SPOService:
212212

213213
```powershell
214-
Connect-PnPOnline -Url https://[yourtenant]-admin.sharepoint.com
214+
Connect-SPOService -Url https://[yourtenant]-admin.sharepoint.com
215215
```
216216

217217
Now you can retrieve the existing Site Designs using
218218

219219
```powershell
220-
Get-PnPSiteDesign
220+
Get-SPOSiteDesign
221221
```
222222
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.
223223
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
246246
1. Open PowerShell and enter the following to copy the script into a variable and create the site script
247247
```powershell
248248
$script = Get-Clipboard -Raw
249-
Add-PnPSiteDesign -Title "Apply PnP Provisioning Template" -Content $script
250-
Get-PnPSiteDesign
249+
Add-SPOSiteScript -Title "Apply PnP Provisioning Template" -Content $script
250+
Get-SPOSiteScript
251251
```
252-
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
253253
1. Select the ID of the Site Script you just created and copy it to the clipboard
254254
1. Create the Site Design:
255255
```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"
257257
```
258258
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".
259260
# Concluding
260261
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.
261262

0 commit comments

Comments
 (0)