Azure IoT Hub, EventHub and Functions

前端 未结 3 637
失恋的感觉
失恋的感觉 2021-01-12 03:20

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

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-12 04:21

    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.

提交回复
热议问题