Skip to content

Commit 89603ed

Browse files
Merge pull request SharePoint#6829 from groveale/patch-1
Azure function script example fix
2 parents e66cfe7 + 09c338f commit 89603ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Calling the PnP provisioning engine from a site script
33
description: Build a complete SharePoint site design using the PnP provisioning engine
4-
ms.date: 02/17/2021
4+
ms.date: 03/23/2021
55
localization_priority: Priority
66
---
77

@@ -210,12 +210,14 @@ Copy the following provisioning template XML to a new file and save the file as
210210
# Write out the queue message and insertion time to the information log.
211211
Write-Host "PowerShell queue trigger function processed work item: $QueueItem"
212212
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
214214
Write-Output "Connected to site"
215215
Invoke-PnPSiteTemplate -Path D:\home\site\wwwroot\InvokePnPSiteTemplate\FlowDemoTemplate.xml
216216
```
217217
218218
Replace **[insertyourAppIdHere]** with the value that the `Register-PnPAzureApp` cmdlet returned for AzureAppId.
219+
220+
Replace **'contoso.onmicrosoft.com'** with your tenant details.
219221
220222
## Create the site design
221223

0 commit comments

Comments
 (0)