question

Omar-7550 avatar image
0 Votes"
Omar-7550 asked Omar-7550 commented

Hostname for IoT Cental Application

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?

azure-iot-hubazure-iot-centralazure-iot-dps
· 1
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 @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'

Install the SDK and samples




0 Votes 0 ·

1 Answer

Omar-7550 avatar image
0 Votes"
Omar-7550 answered Omar-7550 commented

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.


· 1
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.

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

0 Votes 0 ·