|
1 | 1 | ---
|
2 | 2 | title: Tutorial - Provision devices across load balanced hubs using Azure IoT Hub Device Provisioning Service
|
3 |
| -description: This tutorial demonstrates how Device Provisioning Service (DPS) enables automatic device provisioning across load balanced IoT hubs in Azure Portal |
4 |
| -author: wesmc7777 |
5 |
| -ms.author: wesmc |
6 |
| -ms.date: 11/12/2019 |
| 3 | +description: This tutorial demonstrates how Device Provisioning Service (DPS) enables automatic device provisioning across load balanced IoT hubs in the Azure portal. |
| 4 | +author: anastasia-ms |
| 5 | +ms.author: v-stharr |
| 6 | +ms.date: 10/18/2021 |
7 | 7 | ms.topic: tutorial
|
8 | 8 | ms.service: iot-dps
|
9 | 9 | services: iot-dps
|
@@ -32,20 +32,25 @@ Follow the steps in the [Provision device to a hub](tutorial-provision-device-to
|
32 | 32 |
|
33 | 33 | ## Add an enrollment list entry to the second device
|
34 | 34 |
|
35 |
| -The enrollment list tells the Device Provisioning Service which method of attestation (the method for confirming a device identity) it is using with the device. The next step is to add an enrollment list entry for the second device. |
| 35 | +The enrollment list tells the Device Provisioning Service which method of attestation (the method for confirming a device identity) it is using with the device. The next step is to add an enrollment list entry for the second device. |
36 | 36 |
|
37 |
| -1. In the page for your Device Provisioning Service, click **Manage enrollments**. The **Add enrollment list entry** page appears. |
| 37 | +1. In the page for your Device Provisioning Service, click **Manage enrollments**. The **Add enrollment list entry** page appears. |
38 | 38 | 2. At the top of the page, click **Add**.
|
39 |
| -2. Complete the fields and then click **Save**. |
| 39 | +3. Complete the fields and then click **Save**. |
40 | 40 |
|
41 | 41 | ## Set the Device Provisioning Service allocation policy
|
42 | 42 |
|
43 | 43 | The allocation policy is a Device Provisioning Service setting that determines how devices are assigned to an IoT hub. There are three supported allocation policies:
|
44 | 44 |
|
45 | 45 | 1. **Lowest latency**: Devices are provisioned to an IoT hub based on the hub with the lowest latency to the device.
|
46 |
| -2. **Evenly weighted distribution** (default): Linked IoT hubs are equally likely to have devices provisioned to them. This is the default setting. If you are provisioning devices to only one IoT hub, you can keep this setting. |
| 46 | +2. **Evenly weighted distribution** (default): Linked IoT hubs are equally likely to have devices provisioned to them. This is the default setting. If you are provisioning devices to only one IoT hub, you can keep this setting. If you plan to use on IoT hub, but expect to increase the number of hubs as the number of devices increases, it's important to note that, when assigning to an IoT Hub, the policy doesn't take into account previously registered devices. All linked hubs hold an equal chance of getting a device registration based on the weight of the linked IoT Hub. However, if an IoT hub has reached its device capacity limit, it will no longer receive device registrations. You can, however, adjust the weight of allocation for each linked IoT Hub. |
| 47 | + |
47 | 48 | 3. **Static configuration via the enrollment list**: Specification of the desired IoT hub in the enrollment list takes priority over the Device Provisioning Service-level allocation policy.
|
48 | 49 |
|
| 50 | +### How the allocation policy assigns devices to IoT Hubs |
| 51 | + |
| 52 | +It may be desirable to use only one IoT Hub, until a specific number of devices is reached. In that scenario, it's important to note that, once a new IoT Hub is added, a new device has the potential to be provisioned to any one of the IoT Hubs. If you wish to balance all devices, registered and unregistered, then you'll need to re-provision all devices. |
| 53 | + |
49 | 54 | Follow these steps to set the allocation policy:
|
50 | 55 |
|
51 | 56 | 1. To set the allocation policy, in the Device Provisioning Service page click **Manage allocation policy**.
|
|
0 commit comments