Thursday, April 4, 2019

Monitoring Azure Webapps and Email Alerts (App Insights)

Introduction: The usage of cloud environment is increasing and the users are getting trust on cloud environment and its offered features. At the same time could providers also increasing their business by adding more features in to their product and getting developers and business attraction.

One on the critical feature in any product line is monitoring and its plays an important role when comes to the tracking of the performance and other issues.

A newly introduced Azure monitoring web app feature with the email alerts other than Subscription Owner, Subscription Contributor, and Subscription Reader roles

Here is the new role that been added for contributors/users is Monitoring Reader and Monitoring Contributor.   

Below are the list of rules/items that can be set/tracked and can send an email alert to the users

  • Failure Anomalies 
  • Slow page load time
  • Slow server response time
  • Long dependency duration
  • Degradation in server response time
  • Degradation in dependency duration
  • Degradation in trace severity ratio (preview)
  • Abnormal rise in exception volume (preview)
  • Potential memory leak detected (preview)
  • Potential security issue detected (preview)
  • Resource utilization issue detected (preview)
  • Billing data volume daily spike detected (preview)

By the time writing this article some of the rules are in preview. You may not be able to add the users.

Here are the steps to follow to enable the email alerts for the users.

I assume that you already have below things done as part of your project
  • Azure subscription (If you don't have, get it here)
  • Web app is created
  • Application Insights are enabled to the web app
Login to azure portal 

Go to the Resource Group 

Option: 1

Click on Access control (IAM)


Click on Add button on the ribbon


Click on Add role assignment, On the role assignment tab Select a role (Monitoring Reader)



Select appropriate Access,select the user name and click on Save.

If you want to add additional email recipients follow below steps.

Option: 2

Search for your webapp and click on it. Click on Application Insights and Click on View Application Insights data.


Click on Smart Detection ,Click on Settings




You can add extra email recipients here.


I highly appreciate your comments for correction and enhancements.


No comments:

Post a Comment