Skip to content

Commit 998f76a

Browse files
committed
some fixes
1 parent fb53a27 commit 998f76a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

articles/iot-dps/how-to-use-custom-allocation-policies.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ In this section, you create an Azure function that implements your custom alloca
9797
9898
2. In the *Search the Marketplace* search box, type "Function App". From the drop-down list select **Function App**, and then select **Create**.
9999
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**:
101101
102102
**Resource Group**: Select the **contoso-us-resource-group** to keep all resources created in this article together.
103103
@@ -110,7 +110,7 @@ In this section, you create an Azure function that implements your custom alloca
110110
**Region**: Select the same region as your resource group. This example uses **West US**.
111111
112112
> [!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**.
114114
115115
![Create an Azure Function App to host the custom allocation function](./media/how-to-use-custom-allocation-policies/create-function-app.png)
116116
@@ -235,7 +235,7 @@ In this section, you create an Azure function that implements your custom alloca
235235
// This is a Contoso Heat pump Model 008
236236
else if (regId.Contains("-contoso-hpsd-088"))
237237
{
238-
//Find the "-heatpumps-" IoT hub configured on the enrollment
238+
//Find the "-heatpumps-" IoT hub configured on the enrollment
239239
foreach(string hubString in hubs)
240240
{
241241
if (hubString.Contains("-heatpumps-"))
@@ -295,9 +295,9 @@ In this section, you'll create a new enrollment group that uses the custom alloc
295295
296296
1. Still on the [Azure portal](https://portal.azure.com), open your provisioning service.
297297
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.
299299
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.
301301
302302
**Group name**: Enter **contoso-custom-allocated-devices**.
303303
@@ -309,7 +309,7 @@ In this section, you'll create a new enrollment group that uses the custom alloc
309309
310310
![Add custom allocation enrollment group for symmetric key attestation](./media/how-to-use-custom-allocation-policies/create-custom-allocation-enrollment.png)
311311
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.
313313
314314
Execute this step for both of your divisional IoT hubs.
315315
@@ -458,7 +458,7 @@ This sample code simulates a device boot sequence that sends the provisioning re
458458
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:
459459
460460
```
461-
\azure-iot-sdk-c\cmake\azure_iot_sdks.sln
461+
azure-iot-sdk-c\cmake\azure_iot_sdks.sln
462462
```
463463
464464
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
478478
hsm_type = SECURE_DEVICE_TYPE_SYMMETRIC_KEY;
479479
```
480480
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**.
482482
483483
### Simulate the Contoso toaster device
484484
@@ -498,7 +498,7 @@ This sample code simulates a device boot sequence that sends the provisioning re
498498
499499
Save the file.
500500
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.
502502
503503
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:
504504
@@ -527,7 +527,7 @@ This sample code simulates a device boot sequence that sends the provisioning re
527527
528528
Save the file.
529529
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.
531531
532532
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:
533533
@@ -570,13 +570,13 @@ The steps here assume you created all resources in this article as instructed in
570570
571571
To delete the resource group by name:
572572
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**.
574574
575575
2. In the **Filter by name...** textbox, type the name of the resource group containing your resources, **contoso-us-resource-group**.
576576
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**.
578578
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.
580580
581581
## Next steps
582582

0 commit comments

Comments
 (0)