Transfer ownership of IoTHub to another subscription

ena dedic 36 Reputation points
2021-03-23T17:37:31.68+00:00

Hello,
While we are aware that the azure subscription can be transferred to another tenant, is this possible if Azure IoT hub is part of subscription?

Also do we need to touch the devices or will the SAS keys work directly with Azure IoT ?

With gratitude
Ena

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
377 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,112 questions
0 comments No comments
{count} vote

Accepted answer
  1. Sander van de Velde 28,161 Reputation points MVP
    2021-03-23T19:39:18.663+00:00

    Hello @ena dedic ,

    Due to the fact, an IoT Hub has a public endpoint and specific credentials and specific routes to services, it seems complicated to move an IoT Hub to another tenant.

    Especially for cases like this, the Device Provisioning service is a great way for migration.

    The typical migration path is (from the top of my hat):

    1. Have all your devices use a DPS to connect to an IoT Hub.
    2. Create a second IoT hub somewhere in the world (it can be part of a second subscription).
    3. Link the new IoT hub to the same DPS (the REST API support adding a connection string of an IoT HUb living in another subscription)
    4. Connect that IoT Hub to services, routes, etc. but do not provide it device registrations.
    5. Each device enrollment related to the 'old' iot hub, add the new iot hub and give it a 'static configuration' to that new iot hub
    6. give the device registration in the old IoT hub new credentials.

    Because the device cannot connect to the old IoT hub, it will try to reprovision. Then it will be redirected to the new iot hub.

    It's possible to migrate data. Please check the DPS documentation.

    Due to the amount of work, You could try to automate this using the REST API of both the IoT Hub and DPS.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful