Microsoft Azure – IoT Hub parameter settings
To create a new workspace, proceed as follows:
Enter a name for your new workspace (maximum of 20 characters)
Select the Workspace type Cloud integration
Select the Cloud provider Azure IoT Hub
Upload the MQTT connection configuration file
Click on the "Create workspace" button
Microsoft Azure – IoT Hub MQTT connection configuration file
Create a .json configuration file to be imported into the AI Asset Manager:
{
"ca_cert": "content of ${root_certificate_authority}",
"x509_certificate": "content of ${x509_certificate}",
"x509_private_key": "content of ${x509_private_key}",
"endpoint": "tls://${iot-hub_name}.azure-devices.net:8883",
"topic_prefix": "devices/${device_id}",
"client_id": "${device_id}",
"username": "${iot-hub_name}/${device_id}/?api-version=${api_date}"
}
MQTT configuration files field explanation
${iot-hub_name} and ${device_id} should match the Azure resources you already have in the IoT Hub.
${root_certificate_authority} is a pem formatted root certificate authority file used by Azure Cloud. Example:
DigiCertGlobalRootG2.crt.pem
publicly available on the internet.${x509_certificate} is a pem formatted certificate file. The common name (CN) in the subject field of the certificate must be equal to the ${device_id}.
${x509_private_key} is the pem formatted private key pair of the ${x509_certificate}.
${api_date} is equal to:
2021-04-12
(as of 2022.09.06)
x509 Certificate creation methods
For more information on x509 certificates, visit Authenticate devices using X.509 CA certificates.