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
+21-4Lines changed: 21 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -172,14 +172,31 @@ 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. Navigate within the Function App just created to **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 support only PowerShell Core as programming language for the functions.
181
+
> At this moment, PnP PowerShell cmdlets can be only executed under PowerShell (and not on PowerShell Core).
182
+
>
183
+
> First, to make available Powershell at the level of the Function App, the runtime version has to be set to **~1**.
184
+
>
185
+
> Secondly, PowerShell can be only activated from the **classic experience** of the Azure Portal, by switching on the **Experimental Language Support**, at the level of the function app.
186
+
>
187
+
> Read more about [Azure Functions runtime versions.](https://www.microsoft.com/download/details.aspx?id=35588)
188
+
189
+
1. Switch temporarly the Function App user interface to the **classic experience** (previous Azure Portal experience). Choose **Overview** from the left navigation and next **Switch to Classic experience** from the command bar.
190
+
191
+

192
+
193
+
1. Create a new function: **Functions** > **New function**:
177
194
178
195

179
196
180
-
1. Turn on experimental language support:
197
+
1. Turn on **Experimental Language Support**:
181
198
182
-

199
+

183
200
184
201
1. Create a new Queue Triggered function based upon PowerShell:
0 commit comments