New Release of Azure Functions
A new release of Azure Functions is now available, version 1.0.10917. The main things in this release are:
- Application Insights integration (Preview)
- Native TypeScript support (preview)
- Improvements to binding extensibility for binding authors
- Miscellaneous bug fixes and improvements
New Experience for Azure Functions
The Azure Functions portal was also completely re-vamped with a new UI experience. Some of the improvements are:
- A dedicated browse blade for Function Apps.
- A tree view that allows viewing and managing multiple Function Apps
- Filters on subscription and app name, as well as an option to scope the view to just one app
- One-click access to all App Service platform features
- A convenient way to manage features that have already been configured
- Overall UI enhancements to be more consistent with the rest of the Azure portal
You can read more about the portal changes in the announcement blog.
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.
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.
- 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.
- 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.
- 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:
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
Live Metrics Stream docs
Curious about what’s new in Visual Studio 2017? The Visual Studio team has released an infographic with all the new features. Take a look.