Hello @Jerry , 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
Choosing different subscriptions during linking the IoTHub to DPS.
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