Background

Today, Internet of Things (IoTs) are everywhere. They are in our homes, our cars, in wearables, in offices, on roads, and everywhere you can imagine and almost every industry is moving towards the IoT implementation to automate and control their industrial as well as manufacturing assets.
Implementing the IoT devices for a business solution might be easy but managing millions of devices including their data and entire device life cycle including deployment, upgradation and securing the IoT devices is much more difficult with their limitations. Microsoft introduces a service in its its Azure cloud called Azure IoT Hub Device Provisioning service that helps us manage devices life cycle.
Let's learn about the IoT Hub Device Provisioning Service.

What is Azure IoT Hub DPS?

Azure IoT hub device provisioning service is responsible to enroll IoT devices before devices get registered into the Azure IoT hub.
Understanding The Azure IoT Hub Device Provisioning Service
Devices can be directly registered with IoT hub, but Azure device provisioning service make easier to manage the entire life cycle of millions of IoT devices. Enrollments of devices can be done via the portal as well programmatically with the help of Azure DPS REST services or the SDK. The devices enrolled into the Azure DPS can be registered into the Azure IoT hub with the help of REST Services as well as the SDK.
Features of Device Provisioning Service
  • Device provisioning service helps to manage and connect thousands of IoT devices without worrying about setup configuration
  • Device provisioning service helps of automatically balance the load of device across the multiple IoT Hubs
  • Device provisioning service provides the feature to automatically connect the device to the IoT hub with the nearest location of device
  • Whenever required change in the configuration of existing connected device, Device provisioning service provides the feature of how the device will be reprovisioned without or changing the existing configuration
  • Easily secure the devices with X509 certificate and TPM which allow verifying the identity of the device when device trying to connect from a deployed location
  • Device provisioning service allows to connect individual or group of devices to the IoT hub with the help of devices enrolled using the feature group and individual enrollment
  • Device provisioning service helps to manage the configuration of single or group of devices

Creating Azure IoT Hub Device Provisioning Service

Now let’s create an Azure device provisioning service in a step by step tutorial via Azure portal.
Prerequisites
To create any service in Azure portal, we required a valid azure subscription whether it’s paid or trial subscription. Please make sure you have a valid azure subscription.
Step 1 - Go to Azure Portal
Navigate to the portal.azure.com using a Web Browser and login into the portal with valid credentials, as shown in following image.
Understanding The Azure IoT Hub Device Provisioning Service
After successful login, page will be redirected to the azure portal default dashboard page as shown in the following image.
Understanding The Azure IoT Hub Device Provisioning Service
Step 2 - Create IoT Hub Device Provisioning Service on Portal
Find the create resource option which can be found in the left top side of the portal as shown into the following image or follow any other option which you may know to create the resource (service) in azure portal.
Understanding The Azure IoT Hub Device Provisioning Service
Click on the left side option to create a resource & type IoT hub device provisioning service into the populated search box. It will pop up the following screen which is shown in the following image.
Understanding The Azure IoT Hub Device Provisioning Service
As shown in the preceding image click on create button. It will show the following screen.
Understanding The Azure IoT Hub Device Provisioning Service
Provide required details as shown in the preceding image as
Valid Name
Invalid Name
Compilemode-dps-001
compilemode@-01_
Compilemode-dps
Compilemode dps
After providing all required details, click on create button. It will take some time to create the service. Once the service is created, you will see a notification as shown in following image.
Understanding The Azure IoT Hub Device Provisioning Service
Now click on Go to resource button it will redirected to the newly created IoT hub device provisioning service as shown in the following image.
Understanding The Azure IoT Hub Device Provisioning Service
Let’s setup the IoT hub device provisioning service settings and overview section:
Following are the allocation policies can be set:

Summary

Hope this article useful to understand the basics about the Azure IoT hub device provisioning service. In this series of Azure IoT article, next we will learn about the Azure IoT hub.
Next Recommended Article >> Consuming ASP.NET Core 2.0 Web API Using HttpClient.