Is there a way to get logs from all recently-run Azure Functions?

Viewed 77

Is it possible to get the name, type, associated resource group, trigger time, trigger type, and trigger source for all Azure Functions within a subscription? We have set up a number of Azure Functions over time but they are not cleanly organized or properly documented, so we only know that we have a lot of Functions executing but we don't know when they're scheduled to execute, what triggers their execution, etc. Having this information would help us better balance jobs and more effectively plan how to add and schedule other automated tasks.

1 Answers

Yes, you can get to know the trigger, which is triggering at which time, by enabling application insights while creating your function app like below:

enter image description here

Then when you run the trigger, you can check in logs of appinsights of function app which trigger is running like below.

You can use kusto query to get the details of functions running:

enter image description here

Another query:

enter image description here

Over here you will get to know about the logs of function app:

enter image description here

Related