Reputation: 1
Is it possible to retrieve the deviceId from the Service Bus Message in the Azure Function? I am currently using ServiceBusReceivedMessage.
Here is the message route:
Is it possible to retrieve the device id that sent the message to the Iothub in this case?
Upvotes: 0
Views: 167
Reputation: 8235
Can you check an ApplicationProperties of the received message?
It should be there, "iothub-connection-device-id".
In the case if ApplicationProperties collection is null/empty, see here.
Upvotes: 0