Hello @Rakesh kumar,
welcome to this moderated Azure community forum.
I tried it myself and the enrichment of putting a system properties failed:
According to the documentation, adding systemproperties is not supported:
I also observed the original IoT hub system proerties are not outputted by the eventhub. These seems to 'get lost in translation'.
There are a couple of ways to solve this:
- if you connect the azure stream analytics directly to the iot hub (eventhub compatible endpoint) you can directly read the system properties. Keep in mind the iot hub eventhub compatible endpoint needs its own iot hub route if other routes are created
- add the devicename and subject as static enrichments
- add the devicename and subject as tags to the devicetwin
If possible I would go for option 1. And, give every consumer of the default compatible endpoint its own consumer group!
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.