Hi @Ankit Gautam
Going through kudu will not help resolve your issue. Kudu for function apps has less feature than app service. To resolve your issue, leverage the Azure Function Diagnostics tools. Since you are seeing a moduleNotFoundError
you can use these tools to determine which module is failing. But since you're using an ARM template to deploy, my guess is that you haven't told the platform to build you project. In your template, you need to make sure that ENABLE_ORYX_BUILD=true
and SCM_DO_BUILD_DEPLOYMENT=true
. This instructs the platform to build your app code which will run pip install -r requirements.txt
. The following documentation, https://learn.microsoft.com/en-us/azure/azure-functions/recover-python-functions?tabs=vscode%2Cbash&pivots=python-mode-decorators#the-package-cant-be-found, also list out other methods for troubleshooting your python function app.
Why I am not able to see my function in kudu even after successful deployment
Ankit Gautam
0
Reputation points
I tried deploying my function app using ARM template where I used zip deploy to deploy my functions code which is uploaded to my public git repo. I can see that function deployed inside my function app(python, linux) but I can't see those files inside kudu wwwroot which is causing me moduleNotFoundError.
How can I fix this.
I created a deploy.json and then used build your own template thing to deploy my function app and function.
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,936 questions
1 answer
Sort by: Most helpful
-
Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
2024-03-01T14:12:19.4166667+00:00