appinsights-instrumentation
This skill provides guidance and reference materials for instrumenting webapps with Azure Application Insights across ASP.NET Core, Node.js, Python, and…
Identity proven by GitHub's verified organisation badge (microsoft)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode
- License
- MIT (permissive)
- Pin
- 3898ec8pinned Oct 9, 2026
- Context cost
- about 840 tokenswhen the skill loads
- GitHub stars
- 3,092on microsoft/skills
- Scripts
- 1 script
What it does
“Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices.”
Generated summary from the skill's own text
This skill provides guidance and reference materials for instrumenting webapps with Azure Application Insights across ASP.NET Core, Node.js, Python, and Container Apps. It offers SDK setup instructions, telemetry patterns, and configuration examples to help developers add observability to their applications. For actually making changes to a project, users should invoke azure-prepare instead.
When to use it
- User asks how to instrument an app with Application Insights
- User needs SDK setup instructions or telemetry patterns
- User wants to understand Application Insights concepts
- azure-prepare invokes this during research phase
When not to
- User wants to add or modify components in their project
- User requests to create Application Insights resources directly
- User needs hands-on implementation, not guidance
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add microsoft/skills --skill appinsights-instrumentationInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install microsoft/skills appinsights-instrumentation@3898ec894e90afdfdae982a925db28b6a7b334e3Installs the commit we checked (3898ec8).
Copy by hand
Download the folder at 3898ec8 and put it in .claude/skills/appinsights-instrumentation for Claude Code and in .agents/skills/appinsights-instrumentation for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install azure-cosmos-db-assistant@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Claude Code plugin
/plugin install azure@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Claude Code plugin
/plugin install azure-sql-developer@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "appinsights-instrumentation" by Microsoft. Source, pinned to commit 3898ec894e90afdfdae982a925db28b6a7b334e3: https://github.com/microsoft/skills/tree/3898ec894e90afdfdae982a925db28b6a7b334e3/.github/plugins/azure-skills/skills/appinsights-instrumentation 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/appinsights-instrumentation/ for Claude Code and .agents/skills/appinsights-instrumentation/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/microsoft/appinsights-instrumentation
SKILL.md at the pin
--- name: appinsights-instrumentation description: "Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices." license: MIT metadata: author: Microsoft version: "1.2.2" --- # AppInsights Instrumentation Guide This skill provides **guidance and reference material** for instrumenting webapps with Azure Application Insights. > **⛔ ADDING COMPONENTS?** > > If the user wants to **add App Insights to their app**, invoke **azure-prepare** instead. > This skill provides reference material—azure-prepare orchestrates the actual changes. ## When to Use This Skill - User asks **how** to instrument (guidance, patterns, examples) - User needs SDK setup instructions - azure-prepare invokes this skill during research phase - User wants to understand App Insights concepts ## When to Use azure-prepare Instead - User says "add telemetry to my app" - User says "add App Insights" - User wants to modify their project - Any request to change/add components ## Prerequisites The app in the workspace must be one of these kinds - An ASP.NET Core app hosted in Azure - An Azure Container App - A Node.js app hosted in Azure - A Python 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](references/auto.md) 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](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](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](references/aspnetcore.md) for how to modify the C# code. - If the app is a Node.js app, see [NODEJS guide](references/nodejs.md) for how to modify the JavaScript/TypeScript code. - If the app is a Python app, see [PYTHON guide](references/python.md) for how to modify the Python code. ## SDK Quick References - **OpenTelemetry Distro**: [Python](references/sdk/azure-monitor-opentelemetry-py.md) | [TypeScript](references/sdk/azure-monitor-opentelemetry-ts.md) - **OpenTelemetry Exporter**: [Python](references/sdk/azure-monitor-opentelemetry-exporter-py.md) | [Java](references/sdk/azure-monitor-opentelemetry-exporter-java.md) ## Platform-Specific Guides - **Container Apps**: [Observability Guide](references/container-apps.md)
From microsoft/skills at 3898ec8, shown as plain text under its license: MIT (permissive). The license text is in .github/plugins/azure-skills/skills/appinsights-instrumentation/LICENSE.txt.
View SKILL.md on GitHub at 3898ec8Files
- SKILL.md3.8 KB · 8865590c029e
- LICENSE.txt1.1 KB · cacacf3e9ede
- examples/
- appinsights.bicep759 B · 35793f28333b
- references/
- aspnetcore.md1.7 KB · 29986d08a27b
- auto.md891 B · 8a0a447289e2
- container-apps.md7.4 KB · 66a7eaa29c82
- nodejs.md1.8 KB · 6b36d0a8a1d2
- python.md1.8 KB · fa5785231dde
- sdk/
- azure-monitor-opentelemetry-exporter-java.md1.2 KB · f525e167b23b
- azure-monitor-opentelemetry-exporter-py.md963 B · 4394ed04bcc4
- azure-monitor-opentelemetry-py.md880 B · 2d8cab044006
- azure-monitor-opentelemetry-ts.md986 B · 648599ce299e
- scripts/
- appinsights.ps11.2 KB · 69e1ccdf00b1
13 files, 24 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 3898ec8More from Microsoft
pull-requests
This skill guides the agent in writing high-quality pull request descriptions following the Agent Framework repository template and in systematically handling…
Claude Code, Codex, Cursor +4 · about 1.5K tokens · pinned 6 days ago
azure-ai
This skill enables agents to use Azure AI services including Search for full-text and vector queries, Speech for transcription and synthesis, OpenAI for…
Claude Code, Codex, Cursor +4 · about 750 tokens · pinned 6 days ago
azure-diagnostics
The skill diagnoses Azure production issues across App Service, Functions, Container Apps, AKS, VMs, and Messaging services using AppLens, Azure Monitor…
Contains scripts
Claude Code, Codex, Cursor +3 · about 1.6K tokens · pinned 6 days ago
add-camera
This skill generates typed TypeScript wrappers for camera capture and image gallery selection in Power Apps mobile apps using Expo libraries.
Claude Code · about 5.2K tokens · pinned 6 days ago
add-connector
This skill adds Power Platform connectors to Expo/React Native mobile apps by discovering the connector, establishing a connection, generating service files…
Claude Code · about 3.8K tokens · pinned 6 days ago
add-datasource
Routes users to the correct data source integration for Expo and React Native Power Apps by understanding their data needs and recommending Dataverse…
Claude Code · about 1.4K tokens · pinned 6 days ago
Related in Observability
operate-on-aws
This skill operates AWS workloads for early-stage startups by investigating incidents, analyzing root causes, and reviewing code before deployment using AWS…
by Amazon (AWS)Official publisher
Claude Code, Codex, Cursor +4 · about 6.8K tokens · pinned 6 days ago
setup-app-insights
Configures Application Insights telemetry for a Power Apps mobile app by managing the appInsightsConfig in app.json.
by MicrosoftOfficial publisher
Claude Code · about 3.6K tokens · pinned 6 days ago
sentry-dotnet-sdk
Installs and configures Sentry error monitoring, tracing, profiling, logging, and cron monitoring across .NET applications including ASP.NET Core, WPF…
by SentryOfficial publisher
Claude Code · about 5.7K tokens · pinned 6 days ago
dd-azure-integration
This skill sets up Datadog monitoring for Azure resources using Terraform.
by DatadogOfficial publisher
Claude Code, Codex, Cursor +4 · about 6.9K tokens · pinned 6 days ago
enable-dsm
Enables Data Streams Monitoring (DSM) on services already running APM, to measure end-to-end latency, throughput, and consumer lag across message queues and…
by DatadogOfficial publisher
Claude Code, Codex, Cursor +4 · about 5.5K tokens · pinned 6 days ago
debugging-executions
Debug workflow execution failures by inspecting failed nodes, re-running executions, and comparing expected versus actual values.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.5K tokens · pinned 6 days ago