question

Jerry-2565 avatar image
0 Votes"
Jerry-2565 asked SatishBoddu-MSFT commented

Linking third party IoT Hub

I've been running a DPS service with connected IoT hubs in my account.

How would I link a 3rd party IoT Hub to one of my enrollments so I can register to them?

I tried having the third add me to their IoT Hub resource, but it seems like I wind up having a separate directory that I can't access between them.

Is there a good way to give access to our DPS from their IoT Hub so that we can link to it? And what permissions would that need?

azure-iot-hubazure-iot-dps
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @Jerry-2565,Just checking back, could you please let us know if you need further help in this matter.

0 Votes 0 ·

Hello @Jerry-2565,Just checking back, could you please let us know if you need further help in this matter. Please accept the below helpful response as 'Answer', which will be helpful to others as well with similar question, so that we can close this thread.

0 Votes 0 ·

1 Answer

SatishBoddu-MSFT avatar image
0 Votes"
SatishBoddu-MSFT answered SatishBoddu-MSFT commented

Hello @Jerry-2565, Thanks for reaching out to us!.

Using the Azure portal:

Link the IoT hub and your Device Provisioning Service

Using Azure CLI : az iot dps linked-hub create

24232-image.png

Choosing different subscriptions during linking the IoTHub to DPS.

24157-image.png

When creating the Azure IoT Hub DPS resource, you can pass the list of IoT Hubs to link to as part of the properties.

Example:

 {
   "location": "East US", 
   "type": "Microsoft.Devices/ProvisioningServices",
   "properties": {
      "iotHubs": [
         {
           "applyAllocationPolicy": true,
           "allocationWeight": "1",
           "connectionString": "HostName=iothub-001.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=xxxxxxxx",
           "location": "East US"
         },
         {
           "applyAllocationPolicy": true,
           "allocationWeight": "1",
           "connectionString": "HostName=iothub-002.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=xxxxxxxx",
           "location": "East US"
         }
       ]
   }
 }

More on this in the documentation of the Azure IoT Hub DPS resource. Ref



image.png (22.5 KiB)
image.png (207.5 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @Jerry-2565,
Once you have Azure subscription access, you will be able to access the IoTHub for linking. Please accept helpful responses as 'Answer', which will be helpful to others as well with similar question.

Please let us know if you need further help in this matter.

1 Vote 1 ·

Hello @Jerry-2565,Please accept the helpful responses as 'Answer', which will be helpful to others as well with similar question, so that we can close this thread.

0 Votes 0 ·