EventHubTrigger : connection: Azure IoTHub

Samy 1 Reputation point
2022-12-05T22:25:11.02+00:00

Hi,
I tried to configure the EventHubTrigger.

https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-iot-trigger?tabs=in-process%2Cfunctionsv2%2Cextensionv5&pivots=programming-language-csharp

Could yo help me to configure the field "Connection" ?

Which field can I put from "Built-in endpoints" in IotHub ?
Endpoint ?
SharedAccessKeyName ?
SharedAccessKey ?
...

Best regards.

Samy

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,124 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. QuantumCache 20,031 Reputation points
    2022-12-06T06:28:38.053+00:00

    Hello @Samy

    We can make use of the EventHub compatible endpoint to make the Azure Function trigger. Below is something which i have used!

    Get the Eventhub compatible endpoint address!

    267624-image.png

    Use your IotHub name and the EventHub compatible endpoint.

    267517-image.png

    267595-image.png

    Sample output showing the triggered events from the Azure Function app!

    267556-image.png

    This is a very straight way to use the built-in endpoint, please comment in the below section if you need further help in this matter!

    1 person found this answer helpful.

  2. Samy 1 Reputation point
    2022-12-08T19:55:56.243+00:00

    ![268723-image.png]1


  3. Samy 1 Reputation point
    2022-12-08T19:59:06.47+00:00

    ![268742-image.png]1