Microsoft's official skill for troubleshooting Azure production issues: App Service, Container Apps, Functions, AKS, VMs and messaging, using AppLens, Azure Monitor, resource health and KQL.
Application Insights Instrumentation Skill
Microsoft's official Azure skill for instrumenting web apps with Application Insights: SDK setup, auto-instrumentation and OpenTelemetry references for .NET, Node.js and Python.
Install
Other ways to install
About
- Guidance for adding Application Insights telemetry to Azure-hosted web apps
- Covers ASP.NET Core, Node.js, Python and Azure Container Apps
- Prefers auto-instrumentation for ASP.NET Core on App Service
- Creates the App Insights resource via Bicep or Azure CLI
- Azure Monitor OpenTelemetry Distro and Exporter references (Python, TypeScript, Java)
- Routes actual code changes to the azure-prepare skill
appinsights-instrumentation is one of the skills in microsoft/azure-skills, Microsoft's official agent plugin for Azure. It is a reference skill: it teaches an agent how to add Azure Application Insights telemetry to a web app, and deliberately hands the actual project changes to the sibling azure-prepare skill when the user says "add App Insights to my app".
Supported apps. The skill scopes itself to four kinds of workload: an ASP.NET Core app hosted in Azure, an Azure Container App, a Node.js app hosted in Azure and a Python app hosted in Azure.
How it works. The agent first establishes the language, framework and hosting tuple by reading the source, and is told to always ask where the app is hosted (a personal machine, App Service as code or as a container, Container Apps). From there:
- Auto-instrumentation is preferred for a C# ASP.NET Core app on App Service.
- Manual instrumentation creates the Application Insights resource, either by adding it to an existing Bicep template or with an Azure CLI script, ideally in the same resource group as the app, then edits the code using per-language guides for ASP.NET Core, Node.js and Python.
SDK references. Quick references cover the Azure Monitor OpenTelemetry Distro for Python and TypeScript and the OpenTelemetry Exporter for Python and Java, plus an observability guide for Container Apps.
Useful for developers who want APM and telemetry on an Azure-hosted app without hunting through docs. MIT licensed, authored by Microsoft.
Try it
Once installed, ask your agent something like:
My ASP.NET Core API runs on Azure App Service. Show me how to get request and dependency telemetry into Application Insights, and whether I can do it without code changes.
SKILL.md
The instructions your agent loads, as published by Microsoft.
Related Skills
See all Application Insights Instrumentation alternativesSkill: Grafana Alloy Collector Configs
by Grafana Labs
Grafana's official Alloy skill: write one collector config that carries metrics, logs, traces and profiles, validate it locally, and prove samples are actually leaving the box.
Microsoft's official Azure skill for debugging Event Hubs and Service Bus SDKs: connection and AMQP errors, auth failures, lock-lost and lock-renewal issues, checkpoints and duplicates.
Microsoft's official Azure skill for moving workloads from AWS, GCP and Heroku: assess the source, convert code and config, e.g. Lambda to Functions or Cloud Run to Container Apps.