azure data exporer ingestion iot from iot hub not showig system properties

Pavel Nikulin 1 Reputation point
2022-04-08T13:32:22.26+00:00

I cannot get message-id from system properties of iothub message. It's not present on the message despite being turned on in connection settings.

I was following this manual https://video2.skills-academy.com/en-us/azure/data-explorer/ingest-data-iot-hub-overview

191383-image.png
191384-image.png
191385-image.png
191347-image.png
191356-image.png

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
501 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 30,711 Reputation points MVP
    2022-04-08T14:40:11.38+00:00

    Hello @Pavel Nikulin ,

    you want to connect an IoT Hub to Azure Data Explorer so you see live data streaming.

    Did you check out the mapping?

    Check out this example mapping:

    .alter table Telemetry ingestion json mapping "JsonMapping"  
        '['  
            '{"Column": "messageId", "Properties": {"Path": "$.messageId"}},'  
            '{"Column": "deviceId", "Properties": {"Path": "$.deviceId"}},'  
            '{"Column": "temperature", "Properties": {"Path": "$.temperature"}},'  
            '{"Column": "humidity", "Properties": {"Path": "$.humidity"}},'  
            '{ "column" : "IotHubDeviceId", "Properties":{"Path":"$.iothub-connection-device-id"}},'  
            '{"Column": "IotHubEnqueuedTime", "Properties": {"Path": "$.iothub-enqueuedtime"}}'  
        ']'  
    

    Here, you see how the extra properties are added and mapped to columns.

    This is also described in the documentation.

    Now, the extra columns are shown:

    191432-image.png