Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Azure icon
Labs

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.

Azure icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 15m
Published
Clock icon May 02, 2024

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. 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.

  2. 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 the NewOrderOrchestration, CreateTicket and CreateNightlyReport functions.

  3. 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.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans