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.
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.