- Lab
- A Cloud Guru
View Logs with Azure Monitor
In this lab you'll learn how to use the Azure Portal to view the logs for Azure Functions that are connected to an Azure Application Insights instance. - First you'll navigate into a pre-provisioned Azure Functions application. - Then you'll use the **Get Function URL** link for the **NewOrderOrchestration_HttpStart** function, to copy the link to the clipboard making sure that you have selected the **Default Function Key** for that function. - Then in a new browser tab, you'll trigger the **NewOrderOrchestration_HttpStart** function by calling that URL. - Then you'll return to the Azure portal and navigate into the **Monitor** tab for the **NewOrderOrchestration_HttpStart** function. - It is likely that logs have not appeared yet, so keep refreshing for a couple of minutes and an invocation should appear. - Click on the date-time link for the invocation, and the logs should appear. - At this point, feel free to also explore the logs for several other functions that will have run: including **NewOrderOrchestration** (a Durable Functions orchestrator function), **CreateTicket** (the Activity function called three times by the Durable Functions orchestration), and **CreateNightlyReport** (which is a timer-triggered function that runs every minute). - Also, in the log view for a function invocation, try clicking on the **Run Query in Application Insights** link to navigate into Application Insights with a pre-populated KQL query showing the logs for that function invocation.
Path Info
Table of Contents
-
Challenge
Trigger a new Durable Functions Orchestration
You'll get hold of the URL including the secret key of the
NewOrderOrchestration_HttpStart
function in order to start a new Durable Functions orchestration. -
Challenge
View the Log Output
You'll use the Monitor tab in the Portal for
NewOrderOrchestration_HttpStart
to view the function invocation history and view the logs for a particular invocation. You can also do the same for theNewOrderOrchestration
,CreateTicket
andCreateNightlyReport
functions. -
Challenge
View the Log Output in Application Insights
You'll click Run Query in Application Insights in the log view for any of the function invocation logs that you looked at, in order to navigate into Application Insights and view those logs shown by a pre-populated KQL query.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.