The listener for function 'name' was unable to start.

Nguyen Thuan An 21 Reputation points
2022-12-21T02:35:08.643+00:00

Hello everyone, I tried to run Azure Function Event Hub trigger on my laptop but I got this error
272701-capture4.png
After that I changed AzureWebJobsStorage value in local.settings.json file from
"UseDevelopmentStorage=true" => "DefaultEndpointsProtocol" from AzureWebJobsStorage in Configuration (I read a post from stackoverflow)
272702-capture5.png
Now I got more error :(
272712-capture6.png
Can someone point out where I'm doing wrong? Thanks

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,249 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
556 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 68,471 Reputation points
    2022-12-23T05:31:12.903+00:00

    @Nguyen Thuan An You need to update the sample-workitems with the correct eventhub name that is created on your event hub namespace for which you want to trigger your function.

    273581-image.png

    You can navigate to your event hub resource in azure portal and then navigate to Event Hubs under the entity of your namespace. Now it will list the number of event hubs that are present on your namespace.

    273497-image.png

    As you can see in my namespace there are multiple eventhubs and I have used iotevents hub in the configuration of my azure app. Similarly you need to update the right eventhub name for your namespace.

    273526-image.png

    The error is expected as the event hub name is incorrect and doesn't exists in your namespace. Feel free to get back to me if you need any assistance.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.