How to access the backend logs of an azure function written in python?

Wolfgang Rothmayer 1 Reputation point
2021-11-22T10:34:42.167+00:00

Dear colleagues,

I have written an azure function on platform python to analyze an excel file using pandas.
Generally i am quite familiar with pandas, but I have difficulties to get the downstream of the excel file out of a blob storage.
In trying this, I find it quite hard to figure out what really is going as I do not know how to access the backend logs of an azure function.
Is it possible to access the backend logs to figure out if a module maybe missing etc.

This would be great to know.

Kind regards,
Wolfgang

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,812 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,303 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 68,656 Reputation points
    2021-11-23T05:03:31.847+00:00

    @Wolfgang Rothmayer If you have configured the application insights on your function app then you can view these application insights logs to find the full exception stack/error message for your function app execution or if there is an issue. You can also review Azure Functions diagnostics blade to get the insights and the possible solution to mitigate the different issues.

    If there is any module missing then most probably your function app will fail with 500 errors during execution. You can either look into application insights logs or the diagnostics 500 error and it will provide more information if there is any module not found on your function app.

    0 comments No comments