What is the hostname for an IoT Central Application?
Can IoT Central be used to instantiate a Device Client instance from the IoT Hub SDK?
What is the hostname for an IoT Central Application?
Can IoT Central be used to instantiate a Device Client instance from the IoT Hub SDK?
Hello @Omar-7550
What is the hostname for an IoT Central Application?
Underlying IoTHub (If you are looking for this) hostname is not visible when going via IoT Central implementation!
Before a device connects to IoT Central, it must be registered and provisioned in the underlying services.
When you add a device to an IoT Central application, IoT Central adds an entry to a DPS enrollment group.
Information from the enrollment group such as the ID scope, device ID, and keys is surfaced in the IoT Central UI.
When a device first connects to your IoT Central application, DPS provisions the device in one of the enrollments group's linked IoT hubs. The device is then associated with that IoT hub. DPS uses an allocation policy to load balance the provisioning across the IoT hubs in the application. This process makes sure each IoT hub has a similar number of provisioned devices.
Below are required as part of connecting your application to IoT Central.
$env:IOTHUB_DEVICE_SECURITY_TYPE='DPS'
$env:IOTHUB_DEVICE_DPS_ID_SCOPE='<application ID scope>'
$env:IOTHUB_DEVICE_DPS_DEVICE_KEY='<device primary key>'
$env:IOTHUB_DEVICE_DPS_DEVICE_ID='<your device ID>'
$env:IOTHUB_DEVICE_DPS_ENDPOINT='global.azure-devices-provisioning.net'
Thank you for this response. Specifically, I'm interested in using an AZ CLI command:
az iot edge set-modules
It seems like the --login argument may be an option... the documentation only mentions -l. It is not very clear in my opinion.
It appears to be requesting the DPS connection string which is no longer available for IoT Central
"DPS Keygen should no longer be used for Azure IoT Central."
https://github.com/Azure/dps-keygen
7 people are following this question.