Hello @Chirantan Datta
Here are a few things you can check:
- Make sure that you have included all the necessary dependencies in your Docker image. You can check this by running the following command inside your Docker container:
pip freeze
This will show you a list of all the installed Python packages. Make sure that all the packages required by your Azure Function are included in this list. - Check if your Docker container is running on the correct port. By default, Azure Functions run on port 80. Make sure that your Docker container is also running on port 80. You can specify the port using the
-p
option when running thedocker run
command. - Check if your Azure Function is being triggered correctly. Make sure that the function is being triggered by the correct HTTP endpoint. You can check this by running the following command inside your Docker container:
func azure functionapp list-functions.
This will show you a list of all the functions in your Azure Function app. Make sure that the function you are trying to trigger is listed here. - Check if your Docker container is able to connect to the Azure Function app. Make sure that your Docker container is able to connect to the internet and that it is able to connect to the Azure Function app. You can check this by running the following command inside your Docker container:
ping .azurewebsites.net
This will show you if your Docker container is able to connect to the Azure Function app.
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.