SharePoint Monitoring Using Azure Application Insights

Application Insights is a great way to dig deep and  troubleshoot issues with any application hosted locally or on the cloud. It's quite easy to configure. There are 3 ways to configure 

  • Build Time
  • Run Time
  • Both of above

We can collect the following type of reports diagnostics using Application Insights

  • Diagnostic trace logs 
  • Dependency rates
  • Response times
  • Failure rates
  • AJAX Calls, Exceptions
  • Host diagnostics 
  • Page views and load performance
  • User and session counts
  • Performance counters
  • Custom events and metrics

Let me show you a step by step example how to configure Azure Application Insights to monitor SharePoint Site. In my example below I am configuring office 365 site (It does not matter either local or on Cloud)

  1. In PowerShell use below command in order to connect with Azure


  2. Click + button and search for "Application Insights"

  1. Click "Create" button

  1. Provide credentials; I  gave the name "Test_ApplicationInsights"

  1. Service is only available in the following regions right now. Perhaps  later Microsoft will offer it in other regions

  1. Here you can see the properties of "Application Insights"

  1. Click "Getting Started" in order to pull script (This is the script you will insert in your SharePoint site pages)

  1. After copying script paste in SharePoint Site using SharePoint ribbon to insert script as shown below

  1. After inserting users, session and page views will be visible in Azure Portal (Application Insights)

  1. There you go, you can see the graphs/stats from different angles