Catalog
github/appinsights-instrumentation

github

appinsights-instrumentation

Instrument a webapp to send useful telemetry data to Azure App Insights

global
New~601
v1.0Saved Jun 26, 2026

AppInsights instrumentation

This skill enables sending telemetry data of a webapp to Azure App Insights for better observability of the app's health.

When to use this skill

Use this skill when the user wants to enable telemetry for their webapp.

Prerequisites

The app in the workspace must be one of these kinds

  • An ASP.NET Core app hosted in Azure
  • A Node.js app hosted in Azure

Guidelines

Collect context information

Find out the (programming language, application framework, hosting) tuple of the application the user is trying to add telemetry support in. This determines how the application can be instrumented. Read the source code to make an educated guess. Confirm with the user on anything you don't know. You must always ask the user where the application is hosted (e.g. on a personal computer, in an Azure App Service as code, in an Azure App Service as container, in an Azure Container App, etc.).

Prefer auto-instrument if possible

If the app is a C# ASP.NET Core app hosted in Azure App Service, use AUTO guide to help user auto-instrument the app.

Manually instrument

Manually instrument the app by creating the AppInsights resource and update the app's code.

Create AppInsights resource

Use one of the following options that fits the environment.

  • Add AppInsights to existing Bicep template. See examples/appinsights.bicep for what to add. This is the best option if there are existing Bicep template files in the workspace.
  • Use Azure CLI. See scripts/appinsights.ps1 for what Azure CLI command to execute to create the App Insights resource.

No matter which option you choose, recommend the user to create the App Insights resource in a meaningful resource group that makes managing resources easier. A good candidate will be the same resource group that contains the resources for the hosted app in Azure.

Modify application code

  • If the app is an ASP.NET Core app, see ASPNETCORE guide for how to modify the C# code.
  • If the app is a Node.js app, see NODEJS guide for how to modify the JavaScript/TypeScript code.
  • If the app is a Python app, see PYTHON guide for how to modify the Python code.
Files7
7 files · 9.1 KB

Select a file to preview

Overall Score

76/100

Grade

B

Good

Safety

78

Quality

73

Clarity

78

Completeness

72

Summary

This skill guides agents through instrumenting web applications (ASP.NET Core, Node.js, Python) to send telemetry data to Azure App Insights. It provides language-specific code modification guides, templates for infrastructure-as-code (Bicep), and CLI commands for resource creation and configuration, with a preference for auto-instrumentation when available.

Detected Capabilities

file readingcode analysisenvironment variable configurationAzure CLI command executioninfrastructure-as-code template modificationpackage manager operations (dotnet, npm, pip)

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

app insights telemetryazure application monitoringinstrument web appadd app insightsconfigure application observabilityopentelemetry setupazure monitor integration

Risk Signals

INFO

Azure CLI command execution referenced in scripts/appinsights.ps1 for resource and environment management

SKILL.md, references/ASPNETCORE.md, references/NODEJS.md, references/PYTHON.md
INFO

Connection string handling (APPLICATIONINSIGHTS_CONNECTION_STRING environment variable)

references/ASPNETCORE.md, references/NODEJS.md, references/PYTHON.md
INFO

Instrumentation of application code via package installation and SDK integration

references/ASPNETCORE.md, references/NODEJS.md, references/PYTHON.md

Referenced Domains

External domains referenced in skill content, detected by static analysis.

learn.microsoft.comportal.azure.com

Use Cases

  • Enable application telemetry and observability in Azure App Insights
  • Auto-instrument ASP.NET Core or Node.js web apps hosted in Azure App Service without code changes
  • Manually add App Insights instrumentation to ASP.NET Core, Node.js, or Python web applications
  • Configure App Insights connection strings as environment variables in cloud-hosted applications
  • Integrate Azure Monitor OpenTelemetry SDK into existing web applications

Quality Notes

  • Strengths: Clear language-specific guides for three major platforms; explicit preference for auto-instrumentation reduces code modification burden; proper security guidance to use environment variables instead of deprecated appsettings.json approach
  • Strengths: Well-structured conditional logic (AUTO vs MANUAL paths) with clear prerequisites
  • Strengths: Supporting files (Bicep template, PowerShell script references) provide concrete implementation examples
  • Weaknesses: References to scripts/appinsights.ps1 appear multiple times but the file content is not fully shown; unclear what exact Azure CLI commands the agent should execute
  • Weaknesses: No explicit error handling guidance for failed deployments or telemetry issues
  • Weaknesses: PYTHON.md contains a broken reference to scripts/appinsights.ps1 (missing parentheses) and is less complete than ASPNETCORE.md and NODEJS.md regarding environment variable configuration
  • Weaknesses: No guidance on handling existing instrumentation or removing/replacing previous telemetry configurations
  • Completeness: All referenced files are present in the manifest except full content of scripts/appinsights.ps1 PowerShell script was not shown
Model: claude-haiku-4-5-20251001Analyzed: Jun 26, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Add github/appinsights-instrumentation to your library

Command Palette

Search for a command to run...