---
title: "How to Configure Application Insights Telemetry in ASP.NET Core?"  
description: "How to Configure Application Insights Telemetry in ASP.NET Core?"  
author: "Amrith Chandran"  
published: 2026-09-07  
updated: 2026-09-07  
canonical: https://answers.mindstick.com/qa/117159/how-to-configure-application-insights-telemetry-in-asp-net-core  
category: "Azure Monitor"  
tags: ["azure", "Application-Insights", "ASP-NET-Core", "Monitoring", "logging"]  
reading_time: 1 minute  

---

# How to Configure Application Insights Telemetry in ASP.NET Core?

Azure Application Insights provides cloud-scale application performance monitoring (APM) for web applications, offering automated dependency tracking, request logging, and performance diagnostics.

## Installing Application Insights SDK

Add the Application Insights NuGet package to your ASP.NET Core project:

- `Microsoft.ApplicationInsights.AspNetCore`

## Enabling Telemetry Service

Register Application Insights telemetry in your `Program.cs` file by supplying your Connection String:

```cs
var builder = WebApplication.CreateBuilder(args);

builder.Services.AddApplicationInsightsTelemetry(options =>
{
    options.ConnectionString = builder.Configuration["ApplicationInsights:ConnectionString"];
});

var app = builder.Build();
```

## Injecting Custom Telemetry

Track custom events or metrics using `TelemetryClient` inside your controllers or backend services:

```cs
using Microsoft.ApplicationInsights;

[ApiController]
[Route("api/[controller]")]
public class MetricsController : ControllerBase
{
    private readonly TelemetryClient _telemetryClient;

    public MetricsController(TelemetryClient telemetryClient)
    {
        _telemetryClient = telemetryClient;
    }

    [HttpPost("checkout")]
    public IActionResult Checkout()
    {
        _telemetryClient.TrackEvent("UserCheckoutCompleted");
        return Ok();
    }
}
```


---

Original Source: https://answers.mindstick.com/qa/117159/how-to-configure-application-insights-telemetry-in-asp-net-core

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
