Tag: Application Insights


Introduction to Application Insights

Application Insights gives you the deep diagnostics and performance information you need to take control of your web apps, and bring sanity back to your life. Get actionable insights through application performance management and instant analytics.


What can you do with Application Insights ?

  • Detect and diagnose exceptions and application performance issues
  • Get answers to your tough questions, and take your applications to the next level
  • Detect trends in application performance and behavior, identify usage patterns, and get fast answers to probing questions about your website performance
  • Monitor Azure websites, including those hosted in containers, plus websites on-premises and with other cloud providers
  • Seamlessly integrate with your DevOps pipeline using Visual Studio Team Services (VSTS), GitHub, and webhooks
  • Quickly get started from within Visual Studio, or monitor existing applications without redeploying

Azure Application Insights is included with Visual Studio. You get automatic instrumentation for ASP.NET applications and application telemetry data right out of the box—including usage, exceptions, requests, performance, and logs.

Pricing Models

There are two offerings for Application Insights – Basic, and Enterprise.

With Basic, you pay based on the volume of telemetry your application sends, with a 1 GB free allowance per month. This free data allowance gives you a great way to try out Application Insights as you get started, and it also allows you to use Application Insights for free on an ongoing basis for debugging and low-volume applications.

In the Enterprise pricing option, you pay for the number of nodes that host your application, and you get a daily allowance of data per node. Additional data beyond the daily allowance is charged per GB. A “node” is a server, or Platform-as-a-Service instance that runs your application, and from which we receive telemetry.

The Enterprise option also provides unlimited, continuous export of data at no extra charge.


With Application Insights there is no upfront cost, no termination fees, and you only pay for what you need.

In my next post I’ll show you how easy it is to setup Application Insights with your application.








Azure Functions now with Application Insights integration

Earlier this month Azure Functions was updated to have direct integration with Application Insights and is currently only available on the “beta” version of Azure Functions. At this time it’s recommended to only try this out in non-production Azure Function apps until it’s a more stable release.

Getting Started

Before we can enable Azure Function Application Insights integration, we will need to setup an Application Insights instance. If you already have one skip to the next step.

  1. Create an Application Insights instance and Application Type should be General. Once your Application Insights is setup, copy the instrumentation key which we’ll need in the next step.
  2. Next you will need to update your Azure Function Application Settings to configure your function to run under the “beta” version and then to set your Application Insights Instrumentation Key.image
  3. Now go to Application Settings and then update App Setting “FUNCTIONS_EXTENSION_VERSION” from “~1” to “beta” and then add a new key named “APPINSIGHTS_INSTRUMENTATIONKEY” and set the value to the Application Insights Instrumentation key you copied in step 1. Now click Save to update your Azure Function.

Once this is done, your Application Insights instance will start collecting telemetry from your Azure Function without any code changes.

Using Application Insights

Going to your Application Insights, you can start to see some metrics showing up on the overview blade:image

Live Metrics Stream

You can get a lot more insights to real-time telemetry from the Live Metrics Stream to see what’s happening right now:


Another great resource of Application Insights is the Analytics portal, which provides you the ability to write your own custom queries.


The previous two options are great to see what is happening or what happened historically, but Alerts will tell you what’s happening. I suggest you checkout Alerts from the Application Insights blade, where you can define alerts based on a wide array of metrics.



You can now add Application Insights to your Azure Functions with minimal effort, which is a powerful tool for monitoring your applications. Keep in mind that this is currently only available in the “beta” version of Azure Functions, but is something that should be coming to the production release in the near future now that it’s been merged into the develop branch on github.



Azure Functions integration with Application Insights

Azure Functions now has direct integration with Application Insights

Application Insights

Live Metrics Stream docs