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/how-to-use-custom-allocation-policies.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ In this section, you create an Azure function that implements your custom alloca
97
97
98
98
2. In the *Search the Marketplace* search box, type "Function App". From the drop-down list select **Function App**, and then select **Create**.
99
99
100
-
3. On **Function App** create page, under the **Basics** tab, enter the following settings for your new function app and click **Review + create**:
100
+
3. On **Function App** create page, under the **Basics** tab, enter the following settings for your new function app and select **Review + create**:
101
101
102
102
**Resource Group**: Select the **contoso-us-resource-group** to keep all resources created in this article together.
103
103
@@ -110,7 +110,7 @@ In this section, you create an Azure function that implements your custom alloca
110
110
**Region**: Select the same region as your resource group. This example uses **West US**.
111
111
112
112
> [!NOTE]
113
-
> By default, **Application Insights** is enabled. Application Insights is not necessary for this article, but it might help you understand If you want to, you can disable it by selecting the **Monitoring** tab and selecting **No** for **Enable Application Insights**.
113
+
> By default, Application Insights is enabled. Application Insights is not necessary for this article, 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**.
114
114
115
115

116
116
@@ -235,7 +235,7 @@ In this section, you create an Azure function that implements your custom alloca
235
235
// This is a Contoso Heat pump Model 008
236
236
else if (regId.Contains("-contoso-hpsd-088"))
237
237
{
238
-
//Find the "-heatpumps-" IoT hub configured on the enrollment
238
+
//Find the "-heatpumps-" IoT hub configured on the enrollment
239
239
foreach(string hubString in hubs)
240
240
{
241
241
if (hubString.Contains("-heatpumps-"))
@@ -295,9 +295,9 @@ In this section, you'll create a new enrollment group that uses the custom alloc
295
295
296
296
1. Still on the [Azure portal](https://portal.azure.com), open your provisioning service.
297
297
298
-
2. Select **Manage enrollments** on the left pane, and then click the **Add enrollment group** button at the top of the page.
298
+
2. Select **Manage enrollments** on the left pane, and then select the **Add enrollment group** button at the top of the page.
299
299
300
-
3. On **Add Enrollment Group**, enter the following information, and click the **Save** button.
300
+
3. On **Add Enrollment Group**, enter the following information, and select the **Save** button.
301
301
302
302
**Group name**: Enter **contoso-custom-allocated-devices**.
303
303
@@ -309,7 +309,7 @@ In this section, you'll create a new enrollment group that uses the custom alloc
309
309
310
310

311
311
312
-
4. On **Add Enrollment Group**, click **Link a new IoT hub** to link both of your new divisional IoT hubs.
312
+
4. On **Add Enrollment Group**, select **Link a new IoT hub** to link both of your new divisional IoT hubs.
313
313
314
314
Execute this step for both of your divisional IoT hubs.
315
315
@@ -458,7 +458,7 @@ This sample code simulates a device boot sequence that sends the provisioning re
458
458
2. In Visual Studio, open the **azure_iot_sdks.sln** solution file that was generated by running CMake earlier. The solution file should be in the following location:
459
459
460
460
```
461
-
\azure-iot-sdk-c\cmake\azure_iot_sdks.sln
461
+
azure-iot-sdk-c\cmake\azure_iot_sdks.sln
462
462
```
463
463
464
464
3. In Visual Studio's *Solution Explorer* window, navigate to the **Provision\_Samples** folder. Expand the sample project named **prov\_dev\_client\_sample**. Expand **Source Files**, and open **prov\_dev\_client\_sample.c**.
@@ -478,7 +478,7 @@ This sample code simulates a device boot sequence that sends the provisioning re
478
478
hsm_type = SECURE_DEVICE_TYPE_SYMMETRIC_KEY;
479
479
```
480
480
481
-
6. Right-click the **prov\_dev\_client\_sample** project and select **Set as Startup Project**.
481
+
6. Right-click the **prov\_dev\_client\_sample** project and select **Set as Startup Project**.
482
482
483
483
### Simulate the Contoso toaster device
484
484
@@ -498,7 +498,7 @@ This sample code simulates a device boot sequence that sends the provisioning re
498
498
499
499
Save the file.
500
500
501
-
2. On the Visual Studio menu, select **Debug** > **Start without debugging** to run the solution. In the prompt to rebuild the project, click **Yes**, to rebuild the project before running.
501
+
2. On the Visual Studio menu, select **Debug** > **Start without debugging** to run the solution. In the prompt to rebuild the project, select **Yes**, to rebuild the project before running.
502
502
503
503
The following output is an example of the simulated toaster device successfully booting up and connecting to the provisioning service instance to be assigned to the toasters IoT hub by the custom allocation policy:
504
504
@@ -527,7 +527,7 @@ This sample code simulates a device boot sequence that sends the provisioning re
527
527
528
528
Save the file.
529
529
530
-
2. On the Visual Studio menu, select **Debug** > **Start without debugging** to run the solution. In the prompt to rebuild the project, click **Yes** to rebuild the project before running.
530
+
2. On the Visual Studio menu, select **Debug** > **Start without debugging** to run the solution. In the prompt to rebuild the project, select **Yes** to rebuild the project before running.
531
531
532
532
The following output is an example of the simulated heat pump device successfully booting up and connecting to the provisioning service instance to be assigned to the Contoso heat pumps IoT hub by the custom allocation policy:
533
533
@@ -570,13 +570,13 @@ The steps here assume you created all resources in this article as instructed in
570
570
571
571
To delete the resource group by name:
572
572
573
-
1. Sign in to the [Azure portal](https://portal.azure.com) and click **Resource groups**.
573
+
1. Sign in to the [Azure portal](https://portal.azure.com) and select **Resource groups**.
574
574
575
575
2. In the **Filter by name...** textbox, type the name of the resource group containing your resources, **contoso-us-resource-group**.
576
576
577
-
3. To the right of your resource group in the result list, click **...** then **Delete resource group**.
577
+
3. To the right of your resource group in the result list, select **...** then **Delete resource group**.
578
578
579
-
4. You'll be asked to confirm the deletion of the resource group. Type the name of your resource group again to confirm, and then click **Delete**. After a few moments, the resource group and all of its contained resources are deleted.
579
+
4. You'll be asked to confirm the deletion of the resource group. Type the name of your resource group again to confirm, and then select **Delete**. After a few moments, the resource group and all of its contained resources are deleted.
0 commit comments