title | description | author | ms.author | manager | ms.date | ms.topic | ms.service | services | ms.custom |
---|---|---|---|---|---|---|---|---|---|
Quickstart - Set up IoT Hub Device Provisioning Service in the Microsoft Azure portal |
Quickstart - Set up the Azure IoT Hub Device Provisioning Service (DPS) in the Microsoft Azure portal |
kgremban |
kgremban |
lizross |
08/06/2021 |
quickstart |
iot-dps |
iot-dps |
mvc, mode-ui |
The IoT Hub Device Provisioning Service enables zero-touch, just-in-time device provisioning to any IoT hub. The Device Provisioning Service enables customers to provision millions of IoT devices in a secure and scalable manner, without requiring human intervention. Azure IoT Hub Device Provisioning Service supports IoT devices with TPM, symmetric key, and X.509 certificate authentications. For more information, please refer to IoT Hub Device Provisioning Service overview
In this quickstart, you'll learn how to set up the IoT Hub Device Provisioning Service in the Azure portal.
To provision your devices, you will:
- Use the Azure portal to create an IoT Hub
- Use the Azure portal to create an IoT Hub Device Provisioning Service
- Link the IoT hub to the Device Provisioning Service
You'll need an Azure subscription to begin with this article. You can create a free account, if you haven't already.
[!INCLUDE iot-hub-include-create-hub]
-
In the Azure portal, select + Create a resource .
-
From the Categories menu, select Internet of Things then IoT Hub Device Provisioning Service.
-
Select Create.
-
Enter the following information:
-
Name: Provide a unique name for your new Device Provisioning Service instance. If the name you enter is available, a green check mark appears.
-
Subscription: Choose the subscription that you want to use to create this Device Provisioning Service instance.
-
Resource group: This field allows you to create a new resource group, or choose an existing one to contain the new instance. Choose the same resource group that contains the Iot hub you created in the previous steps. By putting all related resources in a group together, you can manage them together. For example, deleting the resource group deletes all resources contained in that group. For more information, see Manage Azure Resource Manager resource groups.
-
Location: Select a location that's close to your devices. For resiliency and reliability, we recommend deploying to one of the regions that support Availability Zones.
:::image type="content" source="./media/quick-setup-auto-provision/create-iot-dps-portal.png" alt-text="Enter basic information about your Device Provisioning Service instance in the portal blade":::
-
-
Select Review + Create to validate your provisioning service.
-
Select Create.
-
After the deployment successfully completes, select Go to resource to view your Device Provisioning Service instance.
In this section, you'll add a configuration to the Device Provisioning Service instance. This configuration sets the IoT hub for which devices will be provisioned.
-
In the Settings menu, select Linked IoT hubs.
-
Select + Add.
-
On the Add link to IoT hub panel, provide the following information:
-
Subscription: Select the subscription containing the IoT hub that you want to link with your new Device Provisioning Service instance.
-
Iot hub: Select the IoT hub to link with your new Device Provisioning Service instance.
-
Access Policy: Select iothubowner as the credentials for establishing the link with the IoT hub.
:::image type="content" source="./media/quick-setup-auto-provision/link-iot-hub-to-dps-portal.png" alt-text="Link the hub name to link to the Device Provisioning Service instance in the portal blade":::
-
-
Select Save.
-
Select Refresh. Now you should see the selected hub under the Linked IoT hubs blade.
The rest of the Device Provisioning Service quickstarts and tutorials use the resources that you created in this quickstart. However, if you don't plan on doing any more quickstarts or tutorials, you'll want to delete those resources.
To clean up resources in the Azure portal:
-
From the left-hand menu in the Azure portal, select All resources.
-
Select your Device Provisioning Service.
-
At the top of the device detail pane, select Delete.
-
From the left-hand menu in the Azure portal, select All resources.
-
Select your IoT hub.
-
At the top of the hub detail pane, select Delete.
Provision a simulated device with IoT hub and the Device Provisioning Service:
[!div class="nextstepaction"] Quickstart: Provision a simulated symmetric key device