How to send messages from Iot Edge Module to Storage Account through route?
I have an IoT Edge Module filtermodule which sends telemetry using send_message (docs) with IoTHubModuleClient every minute. When I run this module, the IoT Hub message counter in the portal is incrementing. Also, I used this route in the IoT Edge Hub…
Device ID and Subject Not Being Enriched in Azure IoT Hub Messages
I am trying to perform transformations on telemetry messages flowing through Azure IoT Hub to Event Hub and then being received by Stream Analytics. The goal is to transform these messages based on device ID and subject, but I am unable to retrieve the…
Deploying Defender for IoT Sensor in Azure OT Lab Environment
Hello, I am exploring the use of Microsoft Defender for IoT in my OT lab environment, which is hosted in Azure. My lab setup includes the following resources: OpenPLC SCADA BR FactoryIO Kali Linux I would like to know if it is possible to deploy a…
Retrieving Data from an Existing Mosquitto MQTT Broker
What are the steps to retrieve data from an existing Mosquitto MQTT broker? I have no control on the broker, I only have the required information to subscribe to it. I have found the documentation on Azure to be increasingly convoluted, making it…
Failover RTO for IoT Hub
Question #1: Refer to the Azure document https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-ha-dr#microsoft-initiated-failover For Microsoft-initiated failover, the RTO is about 2-26 hours. I would like to clarify the RTO here means when the primary…
Vulnerabilities not displaying in Defender for IOT.
We have recently launched Defender for IOT with some sensors at a site. If I go directly to the sensor I can run a risk report, which shows a few vulnerabilities. When I go to the Azure Portal-Defender for IOT- Workbooks- Vulnerabilities nothing will…
Issue with Azure IoT Hub during Module Deployment
Hello, I have been experiencing some issues with Azure IoT Hub when deploying updates to my module. My IoT Edge device has been working well for over a month, but recently I've started encountering errors. The specific error message is: Set Modules…
Azure IoT Middleware for Freertos - Failed to establish MQTT connection, error 0x00000006
I used the ESP32S3 for azure iot connection and according to the code I have done the following: DPS: prvConnectToServerWithBackoffRetries --> OK AzureIoTProvisioningClient_Init --> OK AzureIoTProvisioningClient_Register -->…
How do we determine list of possible IP addresses to whitelist for IoT hub.
Is there a master list of IP addresses that a device may communicate with the IoT hub. When we ping the hostname of our IoT hub, we receive back an address of 20.44.8.225. This IP address however is not found in the Azure IP address JSON file.
Keep-alive timeout for IoTHub connection without device SDK
I am connecting to IoT Hub using an embedded solution, that does not support the device SDK. The solution is using a GSM modem, where the interaction with IoT Hub is implemented by AT commands. Authentification is x509 certificates (no SAS token). My…
Latency of receiving data in IoT central device
Currently, i am using a Python script to send simulated data to my IoT central device. The script works perfectly fine but the only problem I have is the latency. It takes 3~10 mins to actually appear in the Device's raw data. How can I fix this…
Why do DPS queries occasionally run slow.
I have a function app that queries the DPS to determine what hub a device is attached to so it can send a device to cloud message. Normally these run quickly, but occasionally they are sow. I have no exceptions or errors: How can I diagnose the…
SAS Token not working for FileUpload IoTHub
I'm trying to replicate this https://github.com/Azure/azure-iot-sdk-csharp/blob/main/iothub/device/samples/getting%20started/FileUploadSample/FileUploadSample.cs example to upload a file. This part works: `// Note: GetFileUploadSasUriAsync and…
How to expose localhost through azure services?
Hi community, Scenario- A local raspberry pi connected to an ip camera relaying a RTSP stream on its local port ( eg 554 ). Stream accessible locally via a rtsp url. Requirement- Need to make this RTSP stream globally available aka. creating a link…
Correct way to stop and start custom modules in Azure IoT
Hi, I have created 2 Custom Modules, 1st module gets message from an API and sends it to the 2nd Module. 2nd Module does some processing and sends it to IoT Hub. I have followed steps from tutorial-csharp-module after I do build and publish and…
What Does ProvisioningTransportHandler Do
When using the Device provisioning service with Azure a client is created with var provClient = ProvisioningDeviceClient.Create(_global_provisioning_endpoint, dpsScope, security, transportHandler); There are 3 choices for transport handler, why would I…
How to do Certificate-based authentication in React Native using Rest API?
Hi I want to do certificate based authentication in React Native, for that I am using Rest API. And from the docs https://learn.microsoft.com/en-us/azure/iot-dps/how-to-control-access#certificate-based-authentication I found out this cURL, and I need…
Netx Secure Client cert initialize error NX_SECURE_PKCS1_INVALID_PRIVATE_KEY
Hi, I'm using a STM32F732 dev board with threadx, netx + secure. I have my own mqtt broker and a set of self signed certs, I have tested the broker and client certs using MQTT Explorer and can connect with 2-way cert validation without issue. I have…
Azure iot defender micro agent - [procfs_reader.c/read_data_from_procfs:101] Error getting username in pid
Hi, When configuring the azure iot defender micro agent on the iot edge device (azure vm) we uncounted the following error message - [procfs_reader.c/read_data_from_procfs:101] Error getting username in pid When checking the status its running, its…
How to check Azure Device Update has successfully connected
I am using Azure Device Update agent version 1.1.0. Is there a programmatic way to test is the update agent has successfully connected to the hub? I am looking to implement a fallback strategy that confirms the ADU agent has re-established a connection…