Connect DPS from one directory (tenant) with IoT Hub from a different directory (tenant)

Angelos Christopoulos 1 Reputation point
2022-02-23T13:28:26.367+00:00

Hi,

We are trying to link a DPS, that lies in one directory, to an IoTHub that lies in a different directory.

Do you know if that is possible?

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

2 answers

Sort by: Most helpful
  1. Sander van de Velde | MVP 32,011 Reputation points MVP
    2022-02-23T20:09:14.577+00:00

    Hello @Angelos Christopoulos ,

    You can add multiple IoT Hubs to a Device Provisioning Service.

    Unfortunately, the Azure portal limits you to adding other IoT Hubs.

    The Azure IoT DPS Rest API makes it possible to add any IoT Hub, you only need to provide connection strings.

    1 person found this answer helpful.
    0 comments No comments

  2. QuantumCache 20,266 Reputation points
    2022-02-23T19:51:08.793+00:00

    Hello @Angelos Christopoulos Thanks for posting the interesting question!

    Could you please add more info on this scenario like the use case such as during any disaster recovery incident? or is it required by your Architectural design?

    This is possible today, this is not possible via Portal as you would only see the Hubs on the same tenant. But you can use either Rest APIs or CLI for this.
    Yes, Using SDKs or CLI you can link Hub connection string from another tenant

    Please follow the response provided by SandervandeVelde42 .

    0 comments No comments

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.