In short.
This is an MIT-licensed agent skill written by Microsoft. It teaches an AI coding assistant how to instrument Azure-hosted ASP.NET Core, Node.js and Python apps with Azure Application Insights. It is deliberately reference-only: requests to actually add or change components are meant to go to a separate azure-prepare skill that is not part of this package. The skill (metadata version 1.2.2) asks the assistant to work out the app's language, framework and hosting. SKILL.md prefers portal auto-instrumentation for ASP.NET Core apps on Azure App Service, and its auto-instrumentation guide also lists Node.js on App Service. Otherwise the skill walks through three steps: creating an Application Insights resource (with Bicep or the Azure CLI), adding the Azure Monitor OpenTelemetry package for the language, and setting APPLICATIONINSIGHTS_CONNECTION_STRING as an environment variable, which the guides recommend as the way to configure the connection string. Whether these packages, commands and API versions still match current Azure Monitor releases is unverified. The skill also includes a Container Apps observability reference with log tables, built-in metrics, Dapr tracing notes and sample KQL queries. The evidence does not state what the Azure resources it creates cost, and the Java reference is marked deprecated. The downloadable copy is SKILL.md with its licence notice. The guides, template and command file it refers to are only in the complete upstream folder. Nothing here was executed or tested.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is the complete appinsights-instrumentation skill folder at the stated GitHub address, revision 40a30c5df5b79b5849d3293461c6a3581106133e. It covers 13 files: SKILL.md, its LICENSE.txt, the language and platform references, the four SDK quick references, the Bicep example and the Azure CLI command file. The plugin-level and repository-root LICENSE files were captured as related notices only and were not analysed as part of the skill. Linked pages (such as the Microsoft Learn page), the azure-prepare skill, the per-language plugin skills and other folders in the repository are excluded and were not read. Nothing was executed: no commands, templates or code were run, no Azure resources were created, and how the guidance behaves in a real subscription is untested.
The overview
What it is
The resource is an instruction skill named appinsights-instrumentation, published by Microsoft in the microsoft/azure-skills repository under .github/plugins/azure-skills/skills/appinsights-instrumentation. Its SKILL.md frontmatter gives the description 'Guidance for instrumenting webapps with Azure Application Insights', author Microsoft, licence MIT and metadata version 1.2.2. The content was captured at source revision 40a30c5df5b79b5849d3293461c6a3581106133e.
The upstream skill is a folder, not a single file. It holds SKILL.md at the top, a LICENSE.txt, language guides for ASP.NET Core, Node.js and Python, a portal auto-instrumentation note, a Container Apps observability guide, short SDK quick references (Python and TypeScript distro, Python and Java exporter), a Bicep example and an Azure CLI command file.
The download offered with this listing is SKILL.md with its MIT licence notice. It does not include the language guides, the auto-instrumentation and Container Apps references, the SDK quick references, the Bicep template or the Azure CLI command file. SKILL.md links to those files by relative path, and they are only in the complete upstream folder. To get them, use the original folder at [https://github.com/microsoft/azure-skills/tree/40a30c5df5b79b5849d3293461c6a3581106133e/.github/plugins/azure-skills/skills/appinsights-instrumentation].
Overall assessment
The captured guides use the Azure Monitor OpenTelemetry packages (Azure.Monitor.OpenTelemetry.AspNetCore, @azure/monitor-opentelemetry and azure-monitor-opentelemetry). They recommend configuring the connection string through the APPLICATIONINSIGHTS_CONNECTION_STRING environment variable. The ASP.NET Core guide explicitly says not to modify appsettings.json and calls that route deprecated. Whether these packages, commands and API versions still work with current Azure Monitor releases is unverified. For apps on Azure App Service, SKILL.md prefers portal auto-instrumentation for ASP.NET Core, and the auto-instrumentation guide also lists Node.js. The material is small and readable, so a person can audit every instruction before letting an assistant follow it.
Its main catch is how it splits responsibilities. SKILL.md says that if the user wants to add App Insights to their app, the assistant should invoke azure-prepare instead, and that this skill only supplies reference material. The azure-prepare skill is not in the captured files, so whether it is present, and what it does, is unknown. A user who installs only this skill and asks for App Insights to be added may find the assistant pointed at something that is not installed.
Other points to weigh: the guides give the steps but pin no package versions, the Java reference is marked deprecated, and several pieces are command snippets rather than a tested, end-to-end procedure. No part of it was run.
Who it is for
It is meant for a developer, or an AI coding assistant working for one, who has an app running (or about to run) in Azure and wants request, dependency, log and trace telemetry in Application Insights. The SKILL.md triggers cover questions such as how to instrument an app, App Insights SDK setup, telemetry patterns and APM best practices.
Beginners can follow the ASP.NET Core, Node.js and Python guides because each is a short list: an install command, one or two code lines and one environment variable. They do need to know basic Azure concepts (subscription, resource group, App Service or Container App) and have the access to create resources and change app settings. Experienced developers will mostly value the Container Apps reference, the distributed-tracing checklist and the sample KQL queries.
The captured files do not say which AI tools load this skill. The SKILL.md format and the .github/plugins path suggest plugin-style packaging, but supported assistants and versions are not stated, so compatibility is unknown.
What it can do
Routing and context gathering: SKILL.md tells the assistant to work out the (language, framework, hosting) tuple by reading the source code, to confirm anything unknown with the user, and to always ask where the app is hosted. It lists when to use this skill (how-to questions, SDK setup, concepts) and when to use azure-prepare instead (add telemetry, add App Insights, modify the project).
Auto-instrumentation: for apps on Azure App Service, a portal route with no code changes. SKILL.md prefers it for C# ASP.NET Core on App Service. The auto guide also lists Node.js on App Service and gives a portal URL pattern for the monitoring settings blade.
Manual instrumentation: create the Application Insights resource, then change the code. The guides name azure-monitor-opentelemetry for Python, @azure/monitor-opentelemetry for Node.js and Azure.Monitor.OpenTelemetry.AspNetCore for ASP.NET Core.
Container Apps observability: the guide covers Log Analytics workspace wiring, a table of the system and console log tables, and built-in metrics (replicas, requests, CPU, memory, restarts, network). It also covers storing the connection string as a container app secret, distributed tracing, Dapr tracing, a query that finds container apps lacking the connection-string variable, and sample KQL for errors, restarts, scaling events, log volume and request latency.
SDK quick references: short best-practice lists for the Python and TypeScript distros and the Python and Java exporters. Examples include calling the setup function early, using sampling for high-traffic apps and preferring Microsoft Entra (AAD) authentication in production.
Using it
What you need
SKILL.md lists four supported app kinds: an ASP.NET Core app hosted in Azure, an Azure Container App, a Node.js app hosted in Azure, or a Python app hosted in Azure. Java is not on that prerequisite list. It appears only in the Container Apps table (a manual agent JAR set through JAVA_TOOL_OPTIONS) and in a deprecated exporter reference.
You also need an Azure subscription and permission to create a Log Analytics workspace and an Application Insights resource and to change app settings. The CLI route needs the Azure CLI with the application-insights extension (the command file adds it with az extension add -n application-insights). The template route needs a Bicep toolchain. You also need the package manager for your language (dotnet, npm or pip) and a way to deploy the changed app, because each guide notes that the code change only takes effect after deployment.
The evidence does not say which assistant host loads the skill, which versions are supported or what model is required. These are unknown.
How it works
The skill contains three kinds of material. SKILL.md and the reference guides are instructions for an assistant to follow. The Azure CLI command snippets (in scripts/appinsights.ps1 and the Container Apps guide) and the package-install commands in the language guides are executable and change your Azure account or project when run. The Bicep template provisions Azure resources when deployed. SKILL.md's frontmatter description carries WHEN trigger phrases, and its body links to the reference files by relative path. How an assistant discovers the skill and loads those files is unknown, because no host documentation was captured. The SKILL.md decision flow is: gather context; prefer auto-instrumentation if the app is C# ASP.NET Core on App Service; otherwise create the Application Insights resource and change the application code using the language guide.
The telemetry path described is: the app uses an Azure Monitor OpenTelemetry package, which reads APPLICATIONINSIGHTS_CONNECTION_STRING from the environment and sends traces, metrics and logs to the Application Insights resource. That resource is workspace-based and stores data in a Log Analytics workspace. The Bicep example creates both: a workspace with the PerGB2018 SKU and 30-day retention, and a Microsoft.Insights/components resource of kind web linked through WorkspaceResourceId. It outputs the connection string.
Language specifics: in ASP.NET Core you add a using for Azure.Monitor.OpenTelemetry.AspNetCore and call builder.Services.AddOpenTelemetry().UseAzureMonitor() before builder.Build(). In Node.js you require useAzureMonitor from @azure/monitor-opentelemetry and call it as early as possible, but after environment variables are loaded (for example after dotenv). In Python you call configure_azure_monitor from azure.monitor.opentelemetry and send telemetry through a standard logging logger in a namespace you choose.
Distributed tracing across Container Apps microservices: the guide says the OpenTelemetry SDK propagates traceparent headers automatically through HTTP calls when three conditions hold. Every microservice must have the SDK initialized, all of them must use the same Application Insights resource, and HTTP clients must use instrumented libraries (for example requests in Python, or fetch or axios in Node.js). It recommends checking end-to-end traces in the Application Map blade. Sharing one Application Insights resource is not enough on its own.
Setup
The captured files do not describe how to install the skill, and no host documentation was captured. The install steps, and how a particular assistant loads the skill and the files it refers to, are unknown. The download offered with this listing is SKILL.md with its MIT licence notice only. The language guides, Bicep template and Azure CLI command file it relies on are not included and must be obtained from the complete upstream folder at [https://github.com/microsoft/azure-skills/tree/40a30c5df5b79b5849d3293461c6a3581106133e/.github/plugins/azure-skills/skills/appinsights-instrumentation].
Using it, as the files describe: (1) Tell the assistant what you are instrumenting and where it is hosted. (2) For ASP.NET Core on App Service (the auto-instrumentation case SKILL.md prefers), or Node.js on App Service (also listed in the auto guide), open the monitoring settings blade for the app in the Azure Portal. The auto guide gives the URL pattern [https://portal.azure.com/#resource/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Web/sites/{app_service_name}/monitoringSettings]. (3) Otherwise create the Application Insights resource, either by adding the Bicep example to your existing templates or with the Azure CLI commands, preferably in the same resource group as the hosted app. (4) Apply the language-specific code change. (5) Get the connection string and set it as APPLICATIONINSIGHTS_CONNECTION_STRING on the running app. Add it to your Bicep or Terraform files if you have them; otherwise use az webapp config appsettings set, az containerapp update --set-env-vars or az functionapp config appsettings set. (6) Redeploy.
The command file uses placeholder variables such as $resourceGroupName, $azureRegionName and $applicationInsightsResourceName, which it never defines. It is not self-contained: its variables must be supplied and its commands selected and adapted. The Node.js and Python guides mention scripts/appinsights.ps1 in square brackets without a working link target. Treat these as examples to adapt.
Worked example
This is a hypothetical walk-through for a Node.js app on Azure Container Apps, based on the files. It was not executed. Because the skill is reference-only, the changes would be made by hand by the developer or handed to the azure-prepare skill (not captured), with this skill supplying the reference steps. The assistant asks where the app is hosted and learns it is a Container App. The Application Insights resource is then created, for instance by adding the Bicep example to the project's templates. Next, in a terminal at the application project directory, run npm install @azure/monitor-opentelemetry. Then open the app's entry file (the one named as main in package.json), add const { useAzureMonitor } = require("@azure/monitor-opentelemetry"); at the top, and call useAzureMonitor(); as early as possible, after any dotenv loading and before anything else.
For the connection string, the Container Apps guide suggests storing it as a secret and referencing it. First run az containerapp secret set -n <app-name> -g <rg> --secrets "appinsights-conn=<conn-string>", then az containerapp update --name <app-name> --resource-group <rg> --set-env-vars "APPLICATIONINSIGHTS_CONNECTION_STRING=secretref:appinsights-conn". After redeploying, the guide points you to the Application Map blade, and to KQL such as a query on the requests table filtered by cloud_RoleName, to check latency. What data would actually appear, and how quickly, was not assessed.
The ASP.NET Core variant takes several steps. Install the package with dotnet add package Azure.Monitor.OpenTelemetry.AspNetCore. Add using Azure.Monitor.OpenTelemetry.AspNetCore; at the top of Program.cs. Add builder.Services.AddOpenTelemetry().UseAzureMonitor(); before builder.Build() is called. Set APPLICATIONINSIGHTS_CONNECTION_STRING on the running app, through the IaC template if there is one and otherwise with the Azure CLI, without modifying appsettings.json. Finally, redeploy the app so the change takes effect. The Python variant calls configure_azure_monitor(logger_name="<your_logger_namespace>") and logs through logging.getLogger on that namespace.
Assessment & evidence
Limitations and risks
Reference-only by design: the skill redirects 'add App Insights' and 'add telemetry' requests to azure-prepare. That skill is outside the captured files, so whether it is available and how it behaves are unknown. SKILL.md also says azure-prepare 'orchestrates the actual changes', yet the guides here contain the change steps, so expect some overlap or ambiguity in what the assistant does.
Differences in coverage and examples, none of which amounts to a contradiction. First, SKILL.md names ASP.NET Core on App Service as its preferred auto-instrumentation case, and the auto guide also lists Node.js on App Service; the preference does not exclude Node.js. Second, the Node.js guide uses a CommonJS require, while the TypeScript quick reference uses an ESM import and mentions an ESM loader; these are alternatives for different module formats. Third, the Python guide configures a named logger, while the Python quick reference shows a bare configure_azure_monitor() call; they simply show different levels of detail. The main language guides cover ASP.NET Core, Node.js and Python, matching the SKILL.md prerequisite list. Java appears only as supplementary material (an agent JAR row in the Container Apps table and a deprecated exporter reference), and Azure Functions only as a command for setting a Function App setting. These extras should not be read as full support for those platforms.
Deprecated and unpinned items: the Java exporter reference says it is DEPRECATED, tells you to migrate to azure-monitor-opentelemetry-autoconfigure, and shows a placeholder version, 1.0.0-beta.x. No package versions are pinned elsewhere, so the code lines could behave differently as the packages change.
Security handling: the main guides tell you to put the connection string in an environment variable, while the quick references recommend Microsoft Entra (AAD) authentication for production without giving the steps. The Container Apps guide reads a Log Analytics shared key with az monitor log-analytics workspace get-shared-keys. That key is a credential, so handle the output carefully. The Container Apps log table names differ by destination (the _CL and _s suffixes apply to the Log Analytics destination), so the sample KQL may need adjusting.
The CLI and Bicep commands create Azure resources that may incur charges, and they change app settings in your Azure account. The captured evidence does not show the actual charges or monthly cost. Review these commands before an assistant runs them. None of this was executed or tested, and the Azure resource API versions in the Bicep file (workspaces 2022-10-01, components 2020-02-02) were not checked against current versions.
Reasoning behind this assessment
The case for using it: it is short, focused on one job, written by the platform's own vendor, and openly readable. It steers towards the OpenTelemetry-based Azure Monitor packages and the environment-variable connection string. It flags a deprecated configuration route and a deprecated Java artifact. It also includes operational details a generic assistant might miss: call ordering with dotenv, Container Apps secret references, the conditions for linking traces across services (the SDK in every service, the same Application Insights resource and instrumented HTTP clients), and the difference between infrastructure metrics and request-level telemetry.
The case for caution: the evidence is documentation only, the cost of the resources it creates is not given, versions are unpinned, and it relies on a companion skill for the actual change work. These conclusions come from reading the instructions and examples, not from running them against an Azure subscription.
Alternatives
The evidence points to three alternatives. The first is portal auto-instrumentation for App Service apps, which needs no code change; the auto guide links to the Microsoft Learn page at [https://learn.microsoft.com/azure/azure-monitor/app/codeless-overview#supported-environments-languages-and-resource-providers], which was not captured. The second is the azure-prepare skill for requests that change a project. The third is the per-language plugin skills that the quick references mention 'if installed' (azure-monitor-opentelemetry-py, -ts and the exporter skills), which were not captured either.
You can also follow Microsoft's own Azure Monitor documentation directly without an assistant, or use a different observability product. Neither option was assessed, and the evidence contains no comparison.
Evidence reviewed
The analysis rests on the 13 files in the skill folder: SKILL.md, LICENSE.txt, references/aspnetcore.md, references/auto.md, references/container-apps.md, references/nodejs.md, references/python.md, four files under references/sdk (Python distro, TypeScript distro, Python exporter, Java exporter), examples/appinsights.bicep and scripts/appinsights.ps1. Two licence notices outside the folder, the plugin-level LICENSE and the repository-root LICENSE, were also read as related notices.
All statements about behaviour come from what these files say. The files contain no benchmarks, test results, usage numbers or reviews, and none are claimed. The files were read as text only. No code, command or template was run, and no Azure resource was created.
Access & freshness
Costs
The skill files are free to use under the MIT licence. The Azure resources created by following them may incur charges, and the evidence gives no prices. The Bicep example provisions a Log Analytics workspace with the PerGB2018 SKU and 30-day retention, and the Application Insights resource stores its data there. The SKU name suggests per-gigabyte pricing, but the evidence does not give rates, free allowances or likely telemetry volume, so the monthly cost is unknown.
The files mention choices that can affect telemetry volume but do not quantify them. The quick references recommend sampling for high-traffic apps. The Container Apps guide notes that a Dapr samplingRate of "1" means 100% sampling and suggests lowering it in production. Any cost of running the AI assistant that loads the skill is also unknown. Check current Azure Monitor pricing for your region before enabling this.
Licence and reuse rights
The skill folder includes a LICENSE.txt with the MIT License and 'Copyright 2025 (c) Microsoft Corporation'. The SKILL.md frontmatter also declares license: MIT. The plugin-level and repository-level LICENSE files captured alongside it carry the same MIT text. Under MIT you may use, copy, modify, merge, publish, distribute, sublicense and sell copies, provided the copyright and permission notice are included in all copies or substantial portions. The software is provided as is, without warranty.
The licence covers these skill files only. It does not grant rights to Azure services. Use of Application Insights, Log Analytics and the referenced npm, pip and NuGet packages is governed by their own terms, which are not in the evidence.
Freshness
The content was captured on 13 November 2026 at repository revision 40a30c5df5b79b5849d3293461c6a3581106133e. The skill metadata version is 1.2.2. The files also contain Bicep resource API versions (Microsoft.OperationalInsights/workspaces 2022-10-01 and Microsoft.Insights/components 2020-02-02) and a Java dependency version placeholder (1.0.0-beta.x). The captured files have no changelog, release date or maintenance statement, so how often the skill is updated, and whether Microsoft will keep it current, are unknown.
Parts will age: Azure CLI commands, Bicep API versions, package names and the status of the Java artifact can all change. Check the guides against current Azure Monitor documentation before relying on them, particularly for the Java exporter and any package versions.
Suggested next steps
Before adopting: confirm your assistant can load SKILL.md-style skills, and check whether the azure-prepare skill is available, because add-telemetry requests are routed there. Check your app's language, framework and hosting against the supported list. Look up current Azure Monitor and Log Analytics pricing and decide on retention and sampling.
When using it: read the language guide and the Bicep or CLI commands before letting an assistant run anything. Try it in a non-production resource group first and pin the package version you install. Set the connection string through a secret where the platform supports it (the Container Apps guide shows secretref), and consider Microsoft Entra authentication for production. Then redeploy and confirm data arrives, using Application Map and KQL.
Do not rely on the Java exporter reference. Follow its own advice to use azure-monitor-opentelemetry-autoconfigure, and check the current Microsoft documentation.
