How to add n devices in Azure IOT hub using Azure Device Provisioning service

A Arockia Jabamalai Eldsin 20 Reputation points
2023-07-28T06:47:48.9566667+00:00

Hi,

I create one Azure Device Provisioning service and create one IOT hub also.

In DPS service I add the IOT hub and the Enrolment Group also I created for the Device Provisioning service.

In the coding area I add the Global device endpoint and ID Scope of the DPS service and the Enrolment Group Primary key and secondary key also.

User's image

If I run the code, it is showing this error and the code was written by C#.

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
391 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 30,866 Reputation points MVP
    2023-07-28T14:28:41.79+00:00

    Hello @A Arockia Jabamalai Eldsin ,

    if you use a group enrollment, each device still needs to be unique.

    Check out this example based on symmetric keys explaining how to add an individual device using a group enrollment.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.


0 additional answers

Sort by: Most helpful