|
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: 06/05/2020 |
| 4 | +ms.date: 07/04/2020 |
5 | 5 | localization_priority: Priority
|
6 | 6 | ---
|
7 | 7 |
|
@@ -172,12 +172,28 @@ Copy the following provisioning template XML to a new file and save the file as
|
172 | 172 | 1. Go to the [Azure Portal](https://portal.azure.com).
|
173 | 173 | 1. Choose **+ Create a resource**.
|
174 | 174 | 1. Search for **Function App** and create a new function app. In the **Storage** field, select **Use existing**, and select the storage account that you created earlier. Set the other values as required.
|
175 |
| -1. Currently Function apps are created with the V2 runtime which does not support PowerShell functions. Change the runtime of the function app to V1 by navigating selecting **Platform features**, **Function app settings** and change the Runtime version from **~2** to **~1**. |
176 |
| -1. Create a new function: **Functions** > **New function**. |
| 175 | +1. Within the Function App select **Configuration** > **Function runtime settings** and change the runtime version from **~3** to **~1**. |
| 176 | + |
| 177 | +  |
| 178 | + |
| 179 | + > [!NOTE] |
| 180 | + > Function Apps based on the runtime version ~3 or ~2 only support PowerShell Core as programming language. At this moment, PnP PowerShell cmdlets can be only executed under PowerShell (and not on PowerShell Core). |
| 181 | + > |
| 182 | + > First, to make available Powershell at the level of the Function App, the runtime version has to be set to **~1**. |
| 183 | + > |
| 184 | + > Secondly, PowerShell can be only activated from the **classic experience** of the Azure Portal, by enabling the **Experimental Language Support**, at the level of the Function App. |
| 185 | + > |
| 186 | + > Read more about [Azure Functions runtime versions.](https://www.microsoft.com/download/details.aspx?id=35588) |
| 187 | +
|
| 188 | +1. Temporarly switch the Azure Function App's user interface to the **classic experience** from the current experience. Select **Overview** in the left-hand navigation and select **Switch to Classic experience** as shown in the following figure. |
| 189 | + |
| 190 | +  |
| 191 | + |
| 192 | +1. Create a new Azure Function **Functions** > **New function**: |
177 | 193 |
|
178 | 194 | 
|
179 | 195 |
|
180 |
| -1. Turn on experimental language support: |
| 196 | +1. Enable **Experimental Language Support**: |
181 | 197 |
|
182 | 198 | 
|
183 | 199 |
|
|
0 commit comments