Azure IoT Hub Device Provisioning Service Scope ID

Erwin Bainto 21 Reputation points
2023-01-18T01:44:51.1033333+00:00

Hi,

I have an existing IoT Hub DPS instance and need to move to new Azure subscriptions with the same DPS scope ID. Not sure if this possible and what are the impact /risks moving the existing DPS instance to new Azure tenant. Thanks

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

3 answers

Sort by: Most helpful
  1. QuantumCache 20,366 Reputation points Moderator
    2023-03-10T00:50:25.1633333+00:00

    It is possible to move an IoT Hub Device Provisioning Service (DPS) instance to a new Azure subscription with the same DPS scope ID. However, there are some risks and impacts that you should be aware of before making the move.

    Here is the repro of the scenario which i have tested to confirm on the initial query!

    User's image

    I see that the Scope ID is same: For the DPS after the move to new subscription.
    User's image

    User's image

    Firstly, moving the DPS instance to a new subscription will cause downtime for your devices during the migration process. You will need to update your device configurations with the new endpoint information once the move is complete, which can take some time depending on the number of devices you have.

    Secondly, you will need to ensure that all of the required Azure resources (such as IoT Hubs, storage accounts, and virtual networks) are set up in the new subscription before you begin the move. You may also need to update your access policies and firewall rules to allow access from the new subscription.

    Finally, there may be some additional costs associated with moving your DPS instance to a new subscription, such as network egress charges or Azure Data Transfer fees.

    To minimize the risks and impacts of moving your DPS instance, it is recommended that you carefully plan the migration process and test it thoroughly before making any changes in production. You should also consider working with a qualified Azure consultant or support team to ensure that the move is executed smoothly and efficiently.

    Happy to help you further on this, please leave your comment in the below section for further section!

    1 person found this answer helpful.
    0 comments No comments

  2. Sander van de Velde | MVP 36,766 Reputation points MVP Volunteer Moderator
    2023-01-18T16:58:42.1633333+00:00

    Hello @Erwin Bainto ,

    As seen in eg. the CLI interface for manipulating one or more Azure Device provisioning services, it is not possible to change the ScopeID afterward.

    If you want to move over to another DPS, you need to export/import all enrollment registrations of your devices first and then change the device security credentials: connection string, certificates, or TPM enrollments for each device.

    The device can still exist on the IoT Hub and that registration will probably not change (please still test :-) ).

    An alternative is moving the complete DPS service to another subscription as @Satish explains very well. Check his words about risk mitigation.


    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 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.