Configure Application Insights with Azure

1.25 hours
  • 4 Learning Objectives

About this Hands-on Lab

Application Insights can assist you in determining the availability and performance of your web applications. In this lab, you deploy Application Insights into the Azure lab environment and use it to run a URL ping test against the sample web app.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Verify the Existence of Azure Resources

Log in to the Azure portal with the provided credentials. You should land in the resource group deployed as a part of the lab environment. Familiarize yourself with the resources already provisioned for you:

  • An Azure web application service plan
  • An Azure web app
  • A Log Analytics workspace

If you do not land in the resource group, click on All Resources in the navigation hub menu to view the provisioned resources.

Configure Application Insights for the Azure Web App
  1. In the Azure web app, enable Application Insights with a basic collection level under the .NET tab of Instrument your application.

    Note: When enabling Application Insights, use the Log Analytics workspace that was provisioned as a part of the lab environment; do not create a new one.

  2. Verify that Application Insights is enabled.
Create and Configure the URL Ping Test
  1. Inside of Application Insights, choose Availability under Investigate to create a new URL ping test using the URL of the Azure web app.
  2. Modify the default alert rule for the ping test, creating a new action group with a notification to your email when the ping test fails (A failure is triggered when at least two errors are detected).
  3. Check your email to verify that the notification has been set up.
Cause an App Service Failure
  1. Stop the Azure web app to create a failure in the URL ping test.
  2. You can monitor for the failure by selecting the ping test; it may take several minutes, so you should refresh until at least two regions show as failed.
  3. Verify that you have received an email message detailing the failure.

Additional Resources

You are the web administrator for User Illusions, a virtual reality gaming company based in Hollywood, CA. You must ensure that your company website is up and running at all times. If an outage is detected, you must be notified so that you can take action quickly.

You will need to:

  • Enable Application Insights on an Azure web app
  • Create a URL ping test in Application Insights
  • Configure an action group to notify you (via email) of an outage

If you get stuck, feel free to check out the solution video or the detailed instructions under each objective. Good luck!

Lab Suffix

Pre-deployed lab resources will all end with a unique five-character suffix. Make note of this suffix, as you may need it when naming resources during the lab.

WARNING: Be Prepared for UI Changes

Given the fluid nature of Microsoft cloud tools, you may experience user interface (UI) changes that were made following the development of this hands-on lab that do not match up with lab instructions. When any such changes are brought to our attention, we will attempt to update the content accordingly. However, if changes occur, students will have to adapt to the changes and work through them in the hands-on labs as needed.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?