How to get IoT Edge Custom modules using Kusto query

Khandu Shinde 110 Reputation points
2024-01-10T02:31:42.29+00:00

Hi All

I have an IoT Edge Device which contains multiple modules including custom module. I have to get the running status of all such modules but not able to get such information. Using below query, I got only IoT Edge system modules but not custom modules. Also not having such information of running status in the output of below query.

Is it possible to get all these information using Kusto query? Or do we have any other alternative way to information about IoT Edge Custom modules?

Thank you in advance!

AzureDiagnostics
| where ResourceProvider == "MICROSOFT.DEVICES" and ResourceType == "IOTHUBS"
| extend prop= parse_json(properties_s) 
| where prop.deviceId == 'edge_device_id'
Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
550 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,143 questions
Azure IoT Operations
Azure IoT Operations
Azure IoT Operations is a set of modular services enabled by Azure Arc.
13 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde 30,321 Reputation points MVP
    2024-01-10T07:11:04.2933333+00:00

    Hello @Khandu Shinde ,

    welcome to this moderated Azure community forum.

    I'm not sure if the diagnostics of the IoT Hub expose this information.

    But there is a more obvious way.

    If you build a serious IoT solution, you probably start collecting IoT hub system events for audit or historical purposes.

    Check out the events. This blog post explains what is shared regarding iot edge module-related messages.

    Notice this relies on event application settings, those are not imported into Azure Data Explorer without moving them into the message body. In more detail, the data connection mapping does not support those properties.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments

0 additional answers

Sort by: Most helpful