Connect integration#
Azure IoT Hub Device Provisioning Service (DPS) is a helper service for Azure IoT Hub that enables zero-touch provisioning of IoT devices at scale. Azure DPS ensures high availability by providing load balancing across multiple hubs and supporting reprovisioning based on a change in the device. For more information about Azure DPS, refer to the official documentation.
Coiote IoT DM communicates with Azure DPS to add a device to the right IoT hub and then receives the credentials to connect to the selected hub. To enable communication between Azure DPS and Coiote IoT DM, you first need to connect them using the Hyperscaler Integration Center in Coiote IoT DM. Follow the instruction below to learn how to do it.
Prerequisites#
- An active DPS with linked IoT hubs.
- An active IoT Hub with hub owner access permissions. Read here how to create a hub.
- A Coiote IoT DM user account with permissions to use the Azure DPS integration.
Create an Enrollment group#
This step describes how to create an Enrollment group. If you already have one, proceed to the Get the credentials section.
A device can be enrolled in Azure DPS either individually or as a group of devices that share a specific attestation mechanism. Currently, Coiote IoT DM doesn't support Individual Enrollments, so you need to choose the Enrollment group option.
To create an Enrollment group:
- Log in to the Azure portal and click on your Device Provisioning Service.
- Go to Manage enrollments from the left pane.
-
Click + Add enrollment group.
-
Provide the group name and select the Symmetric key option from the Attestation Type. Make sure that the Auto-generate keys checkbox is ticked. Click Save.
You’ve just created your enrollment group. The generated Symmetric Key will be used in the next step.
Info
On the Enrollment Group Details page, you can also select to which hub the enrollment group will be assigned. The list of hubs that are connected to this DPS is displayed in the drop-down menu under Select the IoT hubs this group can be assigned to. To add more hubs to this list, click Link a new IoT hub or go to the Linked IoT hubs page from the left pane.
You can also define how devices should be assigned to hubs. From the Select how you want to assign devices to hubs drop-down menu, the following options are available: Lowest latency, Evenly weighted distribution, Static configuration, or Custom. For more information, refer to the official Azure DPS documentation.
Get the credentials#
This step explains where you can get the credentials for setting up the Azure DPS integration in Coiote IoT DM.
ID Scope#
The ID Scope is used to identify the specific provisioning service for the device registration. The ID Scope is automatically generated and unique.
- Log in to the Azure portal and click on your Device Provisioning Service.
- On the Overview page, locate the ID Scope under the Essentials section. Paste it into Notepad or another place to keep it for later.
Enrollment group key#
- Select Manage enrollments from the left pane of your Azure DPS.
-
Under the Enrollment Groups tab, click on the group that you want to use.
-
In the Settings tab, under Attestation Type, copy Primary Key.
Set up the Azure DPS integration#
- In your Coiote IoT DM account, go to Administration —> Hyperscaler Integration Center.
-
In the Integration tab, locate the Azure DPS tale and click Connect.
-
In the dialog that appears, provide the credentials for your Azure DPS integration:
- ID Scope: paste the ID Scope copied from the Overview page.
- Enrollment group key: paste the Primary Key copied from the Enrollment group.
- Device Provisioning Service hostname: API HTTP host. It can be left as it is:
global.azure-devices-provisioning.net
What happens next#
After you set up Azure DPS and connect your Azure DPS integration in Coiote IoT DM, device provisioning and reprovisioning to the proper IoT hub are automated. You aren’t required to make any changes in Coiote IoT DM.
Importing and exporting devices, upgrading device firmware, and setting observations—all these operations happen at the level of individual hubs. The detailed instructions are provided in our Azure IoT Hub documentation.
To see to which hub a device has been assigned:
- Go to Manage enrollments from the left pane.
- Under the Enrollment Groups tab, click on the group.
- Select the Registration Records tab and see the Assigned IoT Hub column.
Next steps#
Removing devices#
When a device is removed from Coiote IoT DM then it is not removed from DPS enrollment group and corresponding IoT Hub