@Jean Paul Tecson @Jeff Liu Thanks for reaching out. As you are using requests
and azure-storage-blob
module in your azure function and when there is a missing dependency, you should see the below error message in application insights that you have configured for your function app. Whenever you received 500 errors then you can always navigate to application insights logs to get more details on the actual exception in the case of 500 or any error code.
ModuleNotFoundError: No module named 'requests'
ModuleNotFoundError: No module named 'azure-storage'
If you have any requirement where you need to use any other packages that are not predefined in the functions then you need to add the names or names along with versions of the required packages to the requirements.txt file. Please refer to this document for more details
To troubleshoot these types of errors you can always refer to this document.
Your requirement.txt file will be as below per the exception but in case if you are using any other packages then please make sure that you have defined the same.
azure-functions
requests
azure-storage-blob
For your reference, I will suggest you to review this article which will can help you to monitor azure function. Once you have set it up you can see the above error in application insights. You can also see these exceptions in the storage account that you have configured on your function app.
For Community: Please refer to Azure function python document to get more familiar with the development.
Feel free to get back to me if you still observe the issue. I will initiate the private comment so you can share your function app name so I can assist you further.