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: articles/iot-dps/tutorial-custom-allocation-policies.md
+26-15Lines changed: 26 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,26 +132,37 @@ In this section, you create an Azure function that implements your custom alloca
132
132
133
133
1. On the **Function App** create page, under the **Basics** tab, enter the following settings for your new function app and select **Review + create**:
| **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. |
144
144
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**.
147
147
148
-

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.":::
149
149
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.
151
151
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**.
153
153
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).
155
166
156
167
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.
0 commit comments