How to see logs of a failing Auth (EasyAuthModule_32/64) when Azure Functions run on a Consumption Plan?

Viewed 276

I have Azure Functions v2 running on a Consumption plan.

I would like to investigate the reasons why EasyAuth is returning 401 Unauthorized errors.

As described in the documentation, there is a way to investigate such issues by enabling application logging and looking for logs EasyAuthModule_32/64.

However, it is not possible to do so when running on a Consumption plan because the Diagnostics Logs functionality is disabled, as seen in the Azure Portal:

Unable to activate logs

Question

How can I get the logs from EasyAuthModule_32/64 when running on a Consumption Plan?

Update

As of now, when using Log streaming, I can only see the logs from my application. I am not sure if I have to enable anything else...

1 Answers

As an alternative, can you try using Log streaming to see your error? The option is immediately below Diagnostic logs in your screenshot above.

Related