File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
docs/declarative-customization Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
title : Calling the PnP provisioning engine from a site script
3
3
description : Build a complete SharePoint site design using the PnP provisioning engine
4
- ms.date : 02/17 /2021
4
+ ms.date : 03/23 /2021
5
5
localization_priority : Priority
6
6
---
7
7
@@ -210,12 +210,14 @@ Copy the following provisioning template XML to a new file and save the file as
210
210
# Write out the queue message and insertion time to the information log.
211
211
Write-Host "PowerShell queue trigger function processed work item: $QueueItem"
212
212
Write-Host "Queue item insertion time: $($TriggerMetadata.InsertionTime)"
213
- Connect-PnPOnline -ClientId [insertyourAzureAppIdhere]] -CertificatePath D:\home\site\wwwroot\InvokePnPSiteTemplate\cert.pfx -Url $QueueItem
213
+ Connect-PnPOnline -ClientId [insertyourAzureAppIdhere] -CertificatePath D:\home\site\wwwroot\InvokePnPSiteTemplate\cert.pfx -Tenant 'contoso.onmicrosoft.com' -Url $QueueItem
214
214
Write-Output "Connected to site"
215
215
Invoke-PnPSiteTemplate -Path D:\home\site\wwwroot\InvokePnPSiteTemplate\FlowDemoTemplate.xml
216
216
```
217
217
218
218
Replace **[insertyourAppIdHere]** with the value that the `Register-PnPAzureApp` cmdlet returned for AzureAppId.
219
+
220
+ Replace **'contoso.onmicrosoft.com'** with your tenant details.
219
221
220
222
## Create the site design
221
223
You can’t perform that action at this time.
0 commit comments