Closed horihiro closed 3 years ago
According to following documetation of IoT Hub, it seems that the built-in Event Hub endpoint in IoT Hub is for only event reading, not writing.
So if the output binding uses the built-in endpoint, I suspect the binding cannot write event.
Hello @soninaren , could you please look into this?
Hello @soninaren , could you please look into this?
I'm interested too, I have confirmed the same issue.
Yes this would be the expected behaviour on attempting to publish to an IotHub EventHub endpoint as they are read only. I'm not sure if there is an connection string or identity that would solve the issue OR if the documentation is incorrect. I can confirm the same result and would be interested in any solution or update on this ticket. Thanks!
The IotHub template is actually an alias for eventHub Trigger. The function expected eventhub connection string with manage permissions. The messages are read from eventhub directly. Functions runtime does not connect to the IotHub directly.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
I tried IoT Hub output binding from Node.js function as following documentation. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-iot-output?tabs=javascript
But following error shows and the function is failed.
It seems that a connection string, which starts with
Endpoint=sb:// ...
and was set when adding the binding from portal, doesn't have enough permission.Is this binding supported currently? # documentation says this is supported. If this is supported, could you please let me know how to get appropriate connection string?
# As long as I know, EventHubs extention is used for IoT Hub binding, so I filed to this repo. Please let me know if this is wrong.