Author Archives: Abhijit Jana

About Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.

Real Time Telemetry for your Azure Function App using Application Insights

Application Insights helps us to track applications health in real time. You can track your application availability, performance issues, user’s session and diagnose crashes faster than ever. It provides a real-time dashboard for your app to monitor your application. It is fast, very easy to configure and provide very powerful insights for your application. We can capture the real-time telemetry using Application Insights for our Azure Function App as well. There are several ways to do that integration.

Integrate Application Insights While Creating your Azure Function App

 Navigate and Login to your Azure Portal, From New ->  Compute ->  Select Function App, or Search Function App in the Search the marketplace box. Then Create the Function App, by providing all required details including App Name, Subscription Details, Hosting Plan etc. 

To enable the Application Insight, set the last option  “Application Insights“ to ON.

ApplicationInsights

Fig:  Integrate Application Insight while creating Azure Function App

With that, along with creating your Azure Function App, you will have an Application Insight created with mapped with current Azure Function.

Must Read : 5 simple steps to create and test your first Azure Function App

 Using existing Application Insights for Azure Function App

If you have Application Insight already created and you want to integrate it with your Azure Function App, you can do that easily post your Azure Function is created.

Once you Azure Function is created, and you don’ t have configuration done, you will find Configured Features is empty under Overview Tab.

newfunctionappsettings

Fig: Configuration Tab

 

Navigate to “Platform Features” Tab and under General Settings, select “Applications Settings

AppSettingsFig : Application Settings

There along with other settings add a new entry for Application Insights

APPINSIGHTS_INSTRUMENTATIONKEY = <Instrumentation Key>

Follow the Steps to get the Instrumentation Key for an Application Insights: Application Insights Settings –>  Properties –>  Instrumentation Key

instrumentationkey

Fig: Getting Instrumentation Key

Must Read : Getting an Application Insights Instrumentation Key inside Visual Studio itself

Once Application Settings is updated, you may go back again to Overview Tab. Now you will find “Application Insights” is listed under Configured Features. It may take a while to appear in this list.

appinsightadded

Fig: Azure Function App Configuration List

Click on the Application Insights link, it will open the Application Insight Dashboard from where you can start monitoring and review all telemetry data.

AppinsightsForAzureFunction

Fig: Application Insights Dashboard for Azure Function App

5 simple steps to create and test your first Azure Function App

Azure Functions let us execute our code in a serverless environment. This does not require create a solution or publish it as Azure Apps. In short, just focus on code and your functional aspect, and don’t need to worry about infrastructure. Azure Function, can be used in different business scenarios and with different integration aspects. In this post let’s try and create a basic Azure Function from Azure portal.

Continue reading

Real Time Telemetry for your BoT using Application Insights

Application Insights helps us to track applications health in real time. You can track your application availability, performance issues, user’s session and diagnose crashes faster than ever. It’s provides a real time dashboard for your app to monitor your application. It is fast, very easy to configure and provide very powerful insights for your application. We can capture the real time telemetry using Application Insights for our BoT as well. There are several ways to do that integration…

Continue reading

Rapid Development of Intelligent Bot Using Azure Bot Service

Azure Bot Service is the Bot-Service powered by the Microsoft Bot Framework and Microsoft Azure. It enables rapid intelligent bot development. In one of my previous post I talked about how we can leverage the Bot Framework and Build Your First Bot using Microsoft Bot Framework.  With this Bot cloud service, you can build, connect, deploy and manage intelligent bots faster than ever. Be it is development, Configuration, connect with an of the Channel, adding intelligence everything! can be done in a single place – in fact over few clicks.

Continue reading

Building Your First Bot using Microsoft Bot Framework

Microsoft Bot Framework is a comprehensive  suite of tools and offering to build and deploy the conversational chat bots for your app users.  You can build and publish your intelligent bot that interacts naturally wherever your users are talking – from Skype, Facebook Messenger, Office 365 mail and other conversational medium. Read more about Bot framework over here..  In this post we will explore how to get it started.

Continue reading

Using an InkToolbar with InkCanvas in your Windows Universal Apps

Universal Windows Platform introduced a InkCanvas (Easy drawing and inking using new InkCanvas Control for Universal Windows App) control to easy drawing and a new Inking API to manage the inking. Binding an InkToolbar to the InkCanvas control will now enhance the capability of this control all together.  You can now have several options for drawing, erasing and highlighting etc. By default, the InkToolbar provides UI control for selecting ink, stroke size, ink color, pen tip as well as options for erasing.

Continue reading

“Explore Related Telemetry Trends” in Application Insight Search Window inside Visual Studio

The Application Insights Trends tool in Visual Studio can analyze the data from the different set of telemetry types, time range and group by them in to different category.  The quickest ways to launch the Telemetry Trends tool is from  the solution explorer, under ApplicationInsights.config , select “Explore Telemetry Trends” or even we can launch it from “Application Insights Trends”  window from View –> Other Windows.

Continue reading

Turning On/Off Application Insights Exception display for CodeLens in Visual Studio

In the previous post you have seen how we can use the CodeLens to display the Application Insights Exception Telemetry in Visual Studio . CodeLens displays the exception details when you are connected with the Application Insights services.  You can turn this feature on or off from the CodeLens Options dialog window.

Continue reading

Using CodeLens to display the Application Insights Exception Telemetry in Visual Studio

You can now leverage the CodeLens to display the Exception telemetry inside Visual Studio. Application Insights Exception details now can be accessible and display via CodeLens in Visual Studio. As long as you are connected with Application Insights, the CodeLens exception indicator will display the count of exception and details for each method over the past 24 hrs.

Continue reading

Explore Telemetry Trends using Application Insights Trends Tool in Visual Studio

Recent updates of Visual Studio 2015 introduced a new tool for analyzing how your application behaviors over time  using the Telemetry data. The Application Insights Trends tool in Visual Studio can analyze the data from the different set of telemetry types, time range and group by them in to different category.  You can launch this window form the solution explorer by selecting “Explore Telemetry Trends” option.

Continue reading

Turn On / Off – “In-App XAML Inspection Toolbar” from Visual Studio 2015

Using the In-App XAML Inspection toolbar we can directly access the Live Visual Tree and Live Property Explorer from the running application. Live Visual Tree shows the hierarchy of all UI elements in the app that we are debugging and the Live Property Explorer shows properties of UI elements at runtime. Combination of these two tool allow you to take a deep into your xaml code and review the necessary change at runtime. This really helps developer to find and fix many UI related changes, also to dealing with different styles. This quick tip talks about how we can turn on/off the In-App XAML Ispection toolbar.

Continue reading

Track Focused Element – “In-App XAML Inspection Toolbar” – Visual Studio 2015

Visual Studio 2015 introduced many tools for debugging and diagnostic. We have seen excellent feature for inspecting and debugging XAML UI, which enables great capability for developers to Visualize and modify the XAML UI within a running application and review the dynamic changes.  We have also seen the In-App XAML Inspection Toolbar , that allow access to the Live Visual Tree and Live Property Explorer directly from the App.

Continue reading