How to specify device Id which is different than registration Id for group enrollment

Sachin Koyeti 20 Reputation points
2025-03-13T15:53:12.97+00:00

I'm using azure-iot-sdk for registering a device using azure DPS for assigning the device to a IoT hub.

I was looking for a way to specify a device Id which I want it to be different than a registration Id for group enrollment

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,251 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manas Mohanty 2,035 Reputation points Microsoft External Staff
    2025-03-13T18:00:23.4733333+00:00

    Hi Sachin Koyeti

    Setting the desired device ID is only supported in individual enrollments

    Reference on device-id

    Reference on Individual enrollments

    Reference on Group enrollments

    You can create individual enrollment from DPS service to set desired device id.

    Please check provision_symmetric_key_with_group for sample usage.

    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    Thank You.

    0 comments No comments

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.