- Lab
- A Cloud Guru
Configure Application Insights with Azure
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.
Path Info
Table of Contents
-
Challenge
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.
-
Challenge
Configure Application Insights for the Azure Web App
- 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.
- Verify that Application Insights is enabled.
- In the Azure web app, enable Application Insights with a basic collection level under the .NET tab of Instrument your application.
-
Challenge
Create and Configure the URL Ping Test
- Inside of Application Insights, choose Availability under Investigate to create a new URL ping test using the URL of the Azure web app.
- 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).
- Check your email to verify that the notification has been set up.
-
Challenge
Cause an App Service Failure
- Stop the Azure web app to create a failure in the URL ping test.
- 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.
- Verify that you have received an email message detailing the failure.
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.