Skip to content

Commit eba3542

Browse files
committed
Update this page for "Create the Azure Function"
Fixes SharePoint#5960
1 parent 1329bf1 commit eba3542

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed
Loading
Loading
Loading

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

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,31 @@ Copy the following provisioning template XML to a new file and save the file as
172172
1. Go to the [Azure Portal](https://portal.azure.com).
173173
1. Choose **+ Create a resource**.
174174
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+
![Screenshot of the Azure portal with the Function runtime settings screen highlighted](images/pnpprovisioning-runtime-settings.png)
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+
![Screenshot of the Azure portal with the Function runtime settings screen highlighted](images/pnpprovisioning-switch-classic-experience.png)
192+
193+
1. Create a new function: **Functions** > **New function**:
177194

178195
![Screenshot of the Azure portal with the New function option highlighted](images/pnpprovisioning-create-function.png)
179196

180-
1. Turn on experimental language support:
197+
1. Turn on **Experimental Language Support**:
181198

182-
![Screenshot of the Azure portal with the Experimental Language Support switch highlighted](images/pnpprovisioning-experimental-features.png)
199+
![Screenshot of the Azure portal with the Experimental Language Support switch highlighted](images/pnpprovisioning-experimental-features.PNG)
183200

184201
1. Create a new Queue Triggered function based upon PowerShell:
185202

0 commit comments

Comments
 (0)