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 Internet of Things
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 36,761 Reputation points MVP Volunteer Moderator
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.