Skip to content

Guide · Agent skill

How to use the App Insights Instrumentation agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The appinsights-instrumentation skill is an agent skill from the github/awesome-copilot collection that helps an AI agent connect a web app to Azure Application Insights, Microsoft's monitoring service. It is for developers with a Node.js, Python or ASP.NET Core web app who want to see the app's requests, errors and performance. After this guide you will know how to install the skill, how to ask for it in plain language, and what the agent will change in your project.

App Insights Instrumentationgithub/awesome-copilot · MIT

Quick start

  1. 1Download and unzip the skill. Download the ZIP from this page and unzip it into ~/.claude/skills/ or your project's .claude/skills/ folder. In the Claude apps, you can upload the ZIP under Settings → Capabilities → Skills instead.
  2. 2Confirm your prerequisites. Make sure you have an Azure subscription with permission to create App Insights resources, and that your app is an ASP.NET Core or Node.js app hosted in Azure.
  3. 3Open your project in the agent. Open the app's code in your workspace so the agent can read the source and identify the language, framework and hosting.
  4. 4Ask for telemetry. Describe what you want, for example asking to add Application Insights telemetry to your web app. Answer the agent's questions about hosting.
  5. 5Choose auto or manual instrumentation. For an ASP.NET Core app on Azure App Service, the agent guides auto-instrumentation with no code changes. Otherwise it creates an App Insights resource and edits your code.
  6. 6Review and deploy. Check each code and resource change, then deploy the app. Set the App Insights connection string as an environment variable of the running app.

What the skill makes the agent do

The skill is a set of instructions and reference guides. It does not run a monitoring service of its own. When you ask for telemetry, the agent works inside your project: it reads your code, decides how the app can be instrumented, and makes the changes.

The agent first identifies the app's programming language, application framework and hosting. It reads the source code to make an educated guess and asks you about anything it cannot determine. It must also ask where the app is hosted, for example on a personal computer, in Azure App Service as code or container, or in an Azure Container App.

  • ASP.NET Core app hosted in Azure App Service: the agent points you to the auto-instrumentation guide, which needs no code changes.
  • Node.js, Python or ASP.NET Core apps otherwise: the agent creates an App Insights resource and edits the app's code.

Install the skill from the ZIP

Download the ZIP for this skill from this page. Then choose one of two install locations and unzip the skill folder there.

You can install it for yourself across projects by unzipping it into ~/.claude/skills/. You can also install it for one project by unzipping it into that project's .claude/skills/ folder.

If you use the Claude apps, you can instead upload the ZIP under Settings → Capabilities → Skills.

Check what you need before you start

The skill's prerequisites say the app must be an ASP.NET Core app or a Node.js app hosted in Azure. You need an Azure subscription and permission to create App Insights resources. The workflow also needs your app code in the workspace.

For the Azure CLI option you need the Azure CLI. If your project already has Bicep templates, the skill prefers adding App Insights to them.

  • Azure subscription with access to create App Insights resources
  • Azure CLI, for the CLI option, or existing Bicep templates
  • Application code in the workspace (ASP.NET Core, Node.js or Python)

Ask for telemetry with a natural request

You do not need a special command. Describe what you want in plain words, and mention the app's language and where it runs if you know it. The skill is meant to trigger when you want telemetry enabled for your web app.

The agent will ask follow-up questions, such as where the app is hosted, and then guide you through the steps.

  • Add Application Insights telemetry to this ASP.NET Core app so I can see errors and slow requests.
  • Instrument my Node.js web app in Azure to send telemetry to App Insights.
  • Help me monitor this web app's health in Azure. It runs in Azure App Service as a container.

Example: adding telemetry to an ASP.NET Core app

For a manual ASP.NET Core setup, the ASP.NET Core guide asks the agent to install the client library and configure Program.cs. The agent adds a using line at the top of the file and adds a call before builder.Build().

After the code change, the app must be deployed for the change to take effect. The connection string of the App Insights resource is then added as an environment variable of the running app. The agent can use the Azure CLI to read that connection string.

  • Install the client library with the dotnet add package command shown in the guide.
  • Add the using statement for Azure.Monitor.OpenTelemetry.AspNetCore at the top of Program.cs.
  • Before builder.Build(), add builder.Services.AddOpenTelemetry().UseAzureMonitor();
  • Deploy the app, then set the connection string as an environment variable.
dotnet add package Azure.Monitor.OpenTelemetry.AspNetCore

Safety and review before you accept changes

This skill runs scripts and uses the network. It can create Azure resources and edit your application code. Review every change the agent proposes before you accept it, and do not run it against production without review, since live app code and costs can be affected.

The skill's SKILL.md refers to an Azure CLI script and a Bicep example. Those files are not in the file list for this skill, so check the contents of your ZIP before relying on them.

  • Confirm the subscription, resource group and app name before any resource is created.
  • Use a resource group that makes management easier, such as the one that already holds the hosted app.
  • Test in a non-production environment first.

What people use it for

  • Watching request volume, errors and performance for an ASP.NET Core app running in Azure App Service.
  • Adding consistent telemetry to several Node.js services that already use Azure Container Apps or Bicep templates.
  • Getting a starting point for monitoring a Python web app in Azure, with the agent guiding the Python code change.

Frequently asked questions

Is the App Insights Instrumentation agent skill free?

The skill is licensed under the MIT License, which permits use, copying and modification free of charge. Azure Application Insights and the Azure resources it needs are billed by Azure under your own subscription, so check your Azure pricing before you create resources.

What are the requirements for the appinsights-instrumentation skill?

You need an Azure subscription with access to create App Insights resources, your application code in the workspace, and a Node.js or ASP.NET Core app hosted in Azure according to the prerequisites. The Azure CLI is needed for the CLI option, or you can use existing Bicep templates.

How do I install an agent skill from a ZIP file?

Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder for one project. In the Claude apps, you can upload the ZIP under Settings → Capabilities → Skills.

Can this skill instrument a Python app?

The skill includes a Python guide, but its prerequisite list only covers ASP.NET Core and Node.js apps hosted in Azure. Check that your Python app meets the skill's requirements and review the agent's changes carefully.

Does the skill work with apps hosted outside Azure?

The prerequisites say the app must be hosted in Azure, so apps hosted elsewhere are not covered. The agent will ask where your app is hosted before it proceeds.

Why did the agent ask me where my app is hosted?

The skill requires the agent to ask where the application is hosted, such as a personal computer, Azure App Service as code or container, or Azure Container Apps. The hosting answer determines whether auto-instrumentation or manual changes are used.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

This skill suits developers with an ASP.NET Core or Node.js app in Azure who want Application Insights added with an agent doing the setup and code edits. Skip it if your app runs outside Azure, uses another language, or you cannot create or pay for Azure resources.

Download the skill