Hi,
This is a fairly well known bug with the portal where it gives you no information or logs, but the function will be failing to load.
You can review this GitHub issue on this problem here where it has many fixes depending on your code and libraries: https://github.com/Azure/azure-functions-python-worker/issues/1262
The comments on this issue will have lots of different fixes you can try. Essentially it will be failing to load silently due to the requirements text file or the libraries you’re importing.
The reason it works locally is likely due to the Azure Function running a different OS version to your desktop.
A common fix is not to have anything before the import azure.functions as func
.
You can also try and go to the diagnose and solve area in the Function, within the portal, and locate the category “functions not triggering” to see if it can help give you an error log on what is failing.
If this was useful, please mark as accepted so others can see this and the GitHub issue thread.