AppInsights instrumentation
SkillCloud & infraThis skill instruments Azure-hosted web apps with Azure Application Insights telemetry. It helps an agent choose between auto-instrumentation and code instrumentation for ASP.NET Core, Node.js, or Python, then add the minimum configuration needed for useful telemetry.
Then ask your AI: use the AppInsights instrumentation skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Confirm the workspace app is an ASP.NET Core, Node.js, or Python web app.
What your AI can do with it
- Inspect source files to infer language, framework, and hosting model
- Prefer Azure App Service auto-instrumentation for ASP.NET Core
- Create or update an Application Insights resource via Bicep or Azure CLI
- Add code instrumentation for ASP.NET Core, Node.js, or Python
- Validate that telemetry uses a connection string without hardcoded secrets
Getting started
- Confirm the workspace app is an ASP.NET Core, Node.js, or Python web app.
- Identify the Azure hosting model, such as Azure App Service as code, Azure App Service as container, Azure Container Apps, or local development.
- Ensure an authenticated Azure CLI or an existing Bicep deployment workflow is available for resource creation.
- Choose auto-instrumentation when it fits, otherwise create or update the Application Insights resource and add code instrumentation.
- Validate that configuration uses the Application Insights connection string or a platform-supported setting without hardcoded secrets.
What this skill tells your AI
The instructions your AI receives, as published by gbb-acelerators/awesome-harness-primitives in harness/claude-code/skills/appinsights-instrumentation/SKILL.md and read by Ahel’s review.
Identify the app stack and Azure hosting model, create or reuse Application Insights infrastructure, and add the minimum code or platform configuration needed for useful telemetry, preferring auto-instrument paths when they fit.
When to invoke
- "Enable Application Insights for this webapp."
- "Instrument my ASP.NET Core app with App Insights."
- "Add telemetry to a Node.js or Python app hosted in Azure."
- "Create the App Insights resource and wire the connection string."
Prerequisites and context
- The workspace app should be an ASP.NET Core app, a Node.js app, or a Python web app.
- The hosting target should be known: Azure App Service as code, Azure App Service as container, Azure Container Apps, local development, or another Azure host.
- Azure resource creation requires an authenticated Azure CLI or existing Bicep deployment workflow.
- Prefer the same resource group as the hosted app unless the user's resource organization requires a different one.
Procedure
- Inspect source files to infer the programming language, application framework, and hosting tuple.
- Ask for or infer the Azure hosting model before choosing instrumentation. In non-interactive execution, state the assumption and choose the safest documented path.
- Prefer Azure App Service auto-instrumentation for C# ASP.NET Core hosted in Azure App Service; use
references/AUTO.md. - If auto-instrumentation does not fit, create or update the Application Insights resource through existing Bicep or Azure CLI.
- Modify application code using the stack-specific guide:
references/ASPNETCORE.md,references/NODEJS.md, orreferences/PYTHON.md. - Validate that configuration uses the Application Insights connection string or the platform-supported setting and that telemetry can be emitted without hardcoded secrets.
Instrumentation decision table
| App and hosting | Preferred path | Files to consult |
|---|---|---|
| ASP.NET Core on Azure App Service | Auto-instrument first. | references/AUTO.md |
| ASP.NET Core requiring code instrumentation | Add SDK/configuration in app startup. | references/ASPNETCORE.md |
| Node.js web app | Add Node.js Application Insights initialization as early as possible in process startup. | references/NODEJS.md |
| Python web app | Add Python instrumentation appropriate to the framework and startup path. | references/PYTHON.md |
| Existing Bicep infrastructure | Add the App Insights resource to the template. | examples/appinsights.bicep |
| No IaC available | Use Azure CLI commands from the script as a model. | scripts/appinsights.ps1 |
Infrastructure rules
- Add Application Insights to existing Bicep when the workspace already contains Bicep templates.
- Use Azure CLI from
scripts/appinsights.ps1when no infrastructure-as-code path exists. - Do not hardcode instrumentation keys, connection strings, subscription IDs, tenant IDs, or secrets in source code.
- Store runtime configuration in Azure app settings, environment variables, or the repository's existing secret mechanism.
- Instrument useful telemetry: request/dependency tracking, exceptions, logs/traces, and custom events only when they answer an operational question.
Progressive disclosure and bundled resources
references/AUTO.md: Azure App Service auto-instrumentation guidance.references/ASPNETCORE.md: ASP.NET Core code changes.references/NODEJS.md: Node.js JavaScript/TypeScript code changes.references/PYTHON.md: Python web app code changes.examples/appinsights.bicep: Bicep resource example.scripts/appinsights.ps1: Azure CLI command model for creating the resource.
Output template
## Application Insights instrumentation result
**Status:** instrumented | recommendation only | blocked
**App stack:** `<language, framework, hosting>`
**Instrumentation path:** auto-instrumentation | ASP.NET Core SDK | Node.js SDK | Python SDK | infrastructure only
| Change | File/resource | Evidence |
| --- | --- | --- |
| `<resource created or code updated>` | `<path or Azure resource>` | `<setting, package, or snippet>` |
### Configuration
- Application Insights resource group: `<resource group or assumed target>`
- Connection setting location: `<app setting/env var/IaC output>`
### Validation
- Telemetry startup path checked: <yes/no>
- Secret hardcoding avoided: <yes/no>
Quality gate
- The app's language, framework, and hosting model were identified or an assumption was explicitly stated.
- Auto-instrumentation was considered before code instrumentation for ASP.NET Core on Azure App Service.
- Existing Bicep was preferred over ad hoc CLI resource creation when present.
- The Application Insights connection string or equivalent setting is configured outside source code.
- The stack-specific bundled reference was used before changing code.
- The result explains how telemetry can be validated after deployment.
Signals
- GitHub stars
- 20
- Last commit
- Sep 2026
Ahel review
K1binfo
installs-packages (in references/NODEJS.md)K1binfo
installs-packages (in references/PYTHON.md)
Automated review, not a security audit. Ruleset v1+k2.
Questions
- What kinds of apps can this skill instrument?
- It supports ASP.NET Core, Node.js, and Python web apps hosted in Azure, including Azure App Service as code, Azure App Service as container, Azure Container Apps, and local development.
- Does it create the Application Insights resource?
- Yes. It can create or update the Application Insights resource through existing Bicep or Azure CLI, and it prefers the same resource group as the hosted app unless your resource organization requires otherwise.
Advanced
- Item type
- skill
- Key
appinsights-instrumentation- Source
- github.com/gbb-acelerators/awesome-harness-primitives
github.com/gbb-acelerators/awesome-harness-primitives
Related picks
Skill · akiojin
The pick for C#ccxt-csharp
Skill · ccxt
The pick for C#duplicate-js
Skill · thedaviddias
The pick for JavaScriptmodern-javascript-patterns
Skill · sickn33
The pick for JavaScriptdbos-python
Skill · sickn33
The pick for Pythonpython-design-patterns
Skill · wshobson
The pick for Python