I want to move my local python 3.11 project to an Azure Functionapp. Somewhere in the deployment process, an error happens, such as an ModuleNotFoundError. I assume it's because a package that can be installed locally just fine, fails to install on the Azure Functionapp. I can't find the errors in the Azure Portal, so I don't know what is wrong.
I created a basic example app which demonstrates my problem
I looked in Application Insights -> Logs -> traces. It shows that my only HTTP endpoint was found, but not loaded. It does not say why.
The Log stream shows no errors.
I managed to find my errors deep inside the portal, at Diagnose and solve problems -> Availability and Performance -> Functions that are not triggering. Here it shows ModuleNotFoundError: No module named 'somenonexistingmodule'. However, these logs seem to be delayed by at least 15 minutes, so I have to wait 15 minutes after every deploy to figure out what is going wrong.
Is it possible to get any deploy errors straight away? Why doesn't the deploy process throw an error when a function doesn't want to load due to an error?


