References
Getting the Azure IoT Hub Connection String
To get the Azure IoT Hub Connection String, you need to have valid Azure credentials.
- Log on to the Azure Portal.
- In the jumpbar, click New, then click Internet of Things, and then click Azure IoT Hub.
- In the New IoT Hub blade, specify the desired configuration for the IoT Hub.
- Once the new IoT hub options are configured, click Create. It can take a few minutes for the IoT hub to be created. To check the status, you can monitor the progress on the Startboard. Or, you can monitor your progress from the Notifications section.
- After the IoT hub has been created successfully, open the blade of the new IoT hub, take note of the hostname URI, and click Shared access policies.
- Select the Shared access policy called iothubowner, then copy and take note of the connection string on the right blade.
- Your IoT hub is now created, and you have the connection string you need to use the Device Explorer tool. This connection string enables applications to perform management operations on the IoT hub such as adding a new device to the IoT hub.
For more details, refer here.