EventHub account connection string does not exist

Nguyen Thuan An 21 Reputation points
2022-12-19T09:43:31.027+00:00

Hello everyone,

I follow this video on youtube to make a Device Simulator and receive message from it:
https://www.youtube.com/watch?v=PQ58jYDxNOg&list=LL&index=4

But when I created Event Hub trigger, copy IoT Hub endpoint and paste it to local.settings.json file
272072-capture323.png

After that I published to Azure and get this error, can somebody help me to fix it, thanks.
272062-captur555e.png

Azure Internet of Things
0 comments No comments
{count} votes

Answer accepted by question author
  1. LeelaRajeshSayana-MSFT 17,866 Reputation points Moderator
    2022-12-19T15:04:01.853+00:00

    Hello @Nguyen Thuan An , thank you for posting this question.

    The function might have missed the connection string parameter reference during the deployment. You can address this by navigating to the configuration section of the Azure function on the cloud portal and add the application setting. Please refer the below image for more details.

    272145-image.png

    Make sure to name your application setting parameter as EventHub and provide the same endpoint value as used in your local.settings.json file. Note that no quotes are needed when you provide the key and value for the parameters.

    Please refer to this resource Azure Event Hubs trigger for Azure Functions if you need any information on Event Hub Triggers.

    Let us know if you still run into any issues after trying the above recommendation.

    ----------

    Kindly accept answer or upvote if the response is helpful so that it would benefit other community members facing the same issue. I highly appreciate your contribution to the community.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.