I have an IoTHub with a route that points to an EventHub which triggers a Functions.
I\'m having problem getting the DeviceId and other IoT Hub properties
There are some upcoming updates that will simply this according to this:
Added first class binding data support for many of the important ServiceBus and EventHub message/event properties. For EventHub:
- PartitionContext
- PartitionKey
- Offset
- SequenceNumber
- EnqueuedTimeUtc
- Properties
- SystemProperties
For ServiceBus:
- DeliveryCount
- DeadLetterSource
- ExpiresAtUtc
- EnqueuedTimeUtc
- MessageId
- ContentType
- ReplyTo
- SequenceNumber
- To
- Label
- CorrelationId
- Properties
So you should be able to bind to these properties as well as the payload.