IoT Central
5 TopicsEdge Module Authentication
Hi Folks, I've made my first IoT Edge Module (container), its just based off: FROM ubuntu:oracular For now, but it seems to start up and run correctly. I've pushed the container into ACR and added it to my manifest which pushed it down to my edge gateway and its up and running. So far so good. Now, I want my application in that container to publish events to the edgeHub, and subscribe to properties set in IoT Central. I followed some of the guides, but have had no luck. Firstly - not much love for a rust application, but aside from that, I've resorted to jumping into the container and trying to use the mosquitto clients likes so: $ docker exec -ti <module_id> bash # mosquitto_sub -d \ -V mqttv311 \ -h edgeHub \ -p 8883 \ -i "${IOTEDGE_DEVICEID}/${IOTEDGE_MODULEID}" \ -u "${IOTEDGE_IOTHUBHOSTNAME}/${IOTEDGE_DEVICEID}/${IOTEDGE_MODULEID}/?api-version=2018-06-30" \ -P "${SAS_TOKEN}" \ -t "devices/${IOTEDGE_DEVICEID}/modules/${IOTEDGE_MODULEID}/messages/events" \ --cafile /etc/ssl/certs/IoTHubRootCA.pem \ -q 1 Client <device_id>/<module_id> sending CONNECT OpenSSL Error[0]: error:0A000086:SSL routines::certificate verify failed Error: Protocol error I just cant get it to validate the certs in the edgeHub. If I look at the edgeHub container it shows: $ docker logs -f edgeHub <4> 2025-06-30 06:52:23.276 +00:00 [WRN] - "TLS handshake failed., System.AggregateException: One or more errors occurred. (Authentication failed, see inner exception.)\n ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.\n ---> Interop+OpenSsl+SslException: SSL Handshake failed with OpenSSL error - SSL_ERROR_SSL.\n ---> Interop+Crypto+OpenSslCryptographicException: error:0A000418:SSL routines::tlsv1 alert unknown ca\n --- End of inner exception stack trace ---\n at Interop.OpenSsl.DoSslHandshake(SafeSslHandle context, ReadOnlySpan`1 input, Byte[]& sendBuf, Int32& sendCount)\n at System.Net.Security.SslStreamPal.HandshakeInternal(SafeDeleteSslContext& context, ReadOnlySpan`1 inputBuffer, Byte[]& outputBuffer, SslAuthenticationOptions sslAuthenticationOptions)\n --- End of inner exception stack trace ---\n at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)\n --- End of inner exception stack trace ---, 0af563ac" That error suggests the edgeHub does not like the CA in my module ? I'm looking for any references to get the right CA's setup so that my translation app can publish events to the edgeHub container.79Views1like0CommentsIOT Central data export destination on waiting
Hello. I have successfully created a demo sensor in iot central and now I would like to connect it to my service bus queue. I went to data export tab and create a new destination using the connection strings of my queue, it seemed ok but the destination is on "waiting" state since 10 hours. Is it normal? Can I check anything? Thanks Gianpaolo87Views0likes0CommentsIntegrating external webserver to IoT Central
Hi, I have a external web server(mostly a registry of IoT devices, not related to IoT Central) that needs to be linked to IoT Central application. How can i go about integrating this external web server into IoT Central dashboard? I would greatly appreciate it if you could point me to any sample projects wherein external applications are integrated into IoT Central. Thanks, Sujay1.3KViews0likes2CommentsEvent Chart issue with Azure IoT Central
I've put together an app using Azure IoT Central (using the legacy option), and I've noticed that the Event Chart doesn't show older entries within the selected time range, only recent ones. Is this a known issue? Is there anything I could have missed?1.4KViews0likes3CommentsExporting IoT Central data to Azure SQL Database
Internet of Things (IoT) has emerged as one of the most disruptive forces driving the digital transformation. To help organizations start rapidly connecting devices and start to consume information generated and of course manage these devices Microsoft Azure have IoT Central offer. What is IoT Central? "IoT Central is an IoT application platform that reduces the burden and cost of developing, managing, and maintaining enterprise-grade IoT solutions. Choosing to build with IoT Central gives you the opportunity to focus time, money, and energy on transforming your business with IoT data, rather than just maintaining and updating a complex and continually evolving IoT infrastructure." https://docs.microsoft.com/en-in/azure/iot-central/core/overview-iot-central One of many features of the IoT Central is the one that you're able to export reported data from the devices on IoT Central and this is a useful feature since https://azure.microsoft.com/en-au/services/iot-central/#updates-announcements and another thing to keep in mind is once you enable the feature to export data you will only get data from the moment you turned on. https://docs.microsoft.com/en-us/azure/sql-database/sql-database-stream-analytics. Data export uses the JSON format and can include telemetry, device information, and device template information. Use the exported data for: Warm-path insights and analytics. This option includes triggering custom rules in Azure Stream Analytics, triggering custom workflows in Azure Logic Apps, or passing it through Azure Functions to be transformed. Cold-path analytics such as training models in Azure Machine Learning or long-term trend analysis in Azure SQL Database and Microsoft Power BI. I used it as the base for my IoT Central application and then later for the data export to Azure SQL Database was the Microsoft Learning module https://docs.microsoft.com/en-us/learn/modules/create-your-first-iot-central-app/. After you complete the module you need to follow these additional steps: https://docs.microsoft.com/en-us/azure/iot-central/core/howto-export-data https://docs.microsoft.com/en-us/azure/event-hubs/process-data-azure-stream-analytics https://docs.microsoft.com/en-us/azure/sql-database/sql-database-stream-analytics Additional settings These are the lessons learned that I had in this scenario. Azure SQL Database https://docs.microsoft.com/en-us/azure/sql-database/sql-database-networkaccess-overview#allow-azure-services Make sure your Table has the right Data Type, especially the Date Time Field that is some cases required the Type of datetime2 Azure Stream Analytics If your Stream Analytics Job fail to check the Activity Log, basically what happen with me was that even after I fix my Date Time column still throwing the same error in the Stream Analytics interface but the error was different on the Activity Log. (Cache?) GetMetadataPropertyValue is an Input Metadata function (Responsible to get information like DeviceID and others) it's not working for this specific scenario. I change my code to send DeviceID with the Telemetry. You can use the power to https://docs.microsoft.com/en-us/stream-analytics-query/stream-analytics-query-language-reference to do some nice things like for example extract the Latitude and Longitude from the field Location in JSON format simply using [Location].lat or [Location].lon Other Be careful to not forget your devices and services running, this type of test environment can easily consume your free tier quota and subscription credits. With more and more https://azure.microsoft.com/en-us/updates/?status=nowavailable,inpreview,indevelopment&query=IoT%20Central for sure IoT Central will be consolidated as the main Azure platform for IoT.3KViews0likes0Comments