Skip to content

Commit d1475ec

Browse files
committed
Update create function flow
1 parent 7a70d4a commit d1475ec

File tree

4 files changed

+26
-15
lines changed

4 files changed

+26
-15
lines changed
32.6 KB
Loading
36 KB
Loading
17.1 KB
Loading

articles/iot-dps/tutorial-custom-allocation-policies.md

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -132,26 +132,37 @@ In this section, you create an Azure function that implements your custom alloca
132132
133133
1. On the **Function App** create page, under the **Basics** tab, enter the following settings for your new function app and select **Review + create**:
134134
135-
| Parameter | Value |
136-
|--------------------|------------------------------|
137-
| **Subscription** | Make sure that the subscription where you created the resources for this tutorial is selected. |
138-
| **Resource Group** | Select the resource group that you created in the previous section. The default is **contoso-us-resource-group**. |
139-
| **Function App name** | Provide a name for your function app. |
140-
| **Publish** | Code |
141-
| **Runtime Stack** | .NET |
142-
| **Version** | 3.1 |
143-
| **Region** | West US |
135+
| Parameter | Value |
136+
|--------------------|-------|
137+
| **Subscription** | Make sure that the subscription where you created the resources for this tutorial is selected. |
138+
| **Resource Group** | Select the resource group that you created in the previous section. The default provided in the previous section is **contoso-us-resource-group**. |
139+
| **Function App name** | Provide a name for your function app.|
140+
| **Do you want to deploy code or container image?** | **Code** |
141+
| **Runtime Stack** | **.NET** |
142+
| **Version** | Select any **in-process model** version. |
143+
| **Region** | Select a region close to you. |
144144
145-
> [!NOTE]
146-
> By default, Application Insights is enabled. Application Insights is not necessary for this tutorial, but it might help you understand and investigate any issues you encounter with the custom allocation. If you prefer, you can disable Application Insights by selecting the **Monitoring** tab and then selecting **No** for **Enable Application Insights**.
145+
> [!NOTE]
146+
> By default, Application Insights is enabled. Application Insights is not necessary for this tutorial, but it might help you understand and investigate any issues you encounter with the custom allocation. If you prefer, you can disable Application Insights by selecting the **Monitoring** tab and then selecting **No** for **Enable Application Insights**.
147147
148-
![Create an Azure Function App to host the custom allocation function](./media/tutorial-custom-allocation-policies/create-function-app.png)
148+
:::image type="content" source="./media/tutorial-custom-allocation-policies/create-function-app.png" alt-text="Screenshot that shows the Create Function App form in the Azure portal.":::
149149
150-
1. On the **Summary** page, select **Create** to create the function app. Deployment may take several minutes. When it completes, select **Go to resource**.
150+
1. On the **Review + create** tab, select **Create** to create the function app.
151151
152-
1. On the left pane of the function app **Overview** page, select **Functions** and then **+ Create** to add a new function.
152+
1. Deployment may take several minutes. When it completes, select **Go to resource**.
153153
154-
1. On the **Create function** page, make sure that **Development environment** is set to **Develop in portal**. Then select the **HTTP Trigger** template followed by the **Create** button.
154+
1. On the left pane of the function app **Overview** page, select **Create function**.
155+
156+
:::image type="content" source="./media/tutorial-custom-allocation-policies/create-function-in-portal.png" alt-text="Screenshot that shows selecting the option to create function in the Azure portal.":::
157+
158+
1. On the **Create function** page, select the **HTTP Trigger** template then select **Next**.
159+
160+
1. On the **Template details** tab, select **Anonymous** as the **Authorization level** then select **Create**.
161+
162+
:::image type="content" source="./media/tutorial-custom-allocation-policies/function-authorization-level.png" alt-text="Screenshot that shows setting the authorization level as anonymous.":::
163+
164+
>[!TIP]
165+
>If you keep the authorization level as **Function**, then you'll need to configure your DPS enrollments with the function API key. For more information, see [Azure Functions HTTP trigger](../azure-functions/functions-bindings-http-webhook-trigger.md).
155166
156167
1. When the **HttpTrigger1** function opens, select **Code + Test** on the left pane. This allows you to edit the code for the function. The **run.csx** code file should be opened for editing.
157168

0 commit comments

Comments
 (0)