Share via


Add Application Insights with Visual Studio Connected Services

With Visual Studio, you can connect different types of services and applications to Application Insights by using the Connected Services feature. The functionality adds all the required references and connection code to your project, and modifies your configuration files appropriately. You can choose to connect to the live Application Insights service running in Azure or use a local emulator.

This article describes how to connect Application Insights to your application by using Connected Services.

Prerequisites

To complete the procedures in this article, the following prerequisites must be satisfied:

  • Visual Studio with the Azure workload installed. Download Visual Studio now.

  • A project that implements a supported connection type to Application Insights, for example:

    • .NET Framework console app
    • ASP.NET Model-View-Controller (MVC) (.NET Framework)
    • ASP.NET Core
    • .NET Core (including console app, WPF, Windows Forms, class library)
    • Azure Functions
    • Universal Windows Platform App
  • An Azure account. If you don't have an Azure account, activate your Azure benefits for Visual Studio subscribers or sign up for a free trial.