Skills appinsights-instrumentation
πŸ“Š

appinsights-instrumentation

Safe

Add Application Insights telemetry to Azure apps

This skill provides step-by-step guidance for instrumenting web applications with Azure Application Insights, including SDK setup, configuration, and telemetry patterns for ASP.NET Core, Node.js, and Python apps.

Supports: Claude Codex Code(CC)
πŸ₯‡ 83 Gold
1

Download the skill ZIP

2

Upload in Claude

Go to Settings β†’ Capabilities β†’ Skills β†’ Upload skill

3

Toggle on and start using

Test it

Using "appinsights-instrumentation". How do I add App Insights to my Node.js app?

Expected outcome:

  • Install the Azure Monitor package: npm install @azure/monitor-opentelemetry
  • Add this to your main entry file: const { useAzureMonitor } = require('@azure/monitor-opentelemetry');
  • Call setup early in your app: useAzureMonitor();
  • Set the connection string environment variable: APPLICATIONINSIGHTS_CONNECTION_STRING

Using "appinsights-instrumentation". What is the Bicep template to create Application Insights?

Expected outcome:

  • Create a Log Analytics Workspace resource
  • Create the Application Insights resource with kind: 'web'
  • Link it to the workspace using WorkspaceResourceId
  • Output the connection string for use in your app configuration

Security Audit

Safe
v1 β€’ 2/21/2026

This is an official Microsoft skill providing Azure Application Insights instrumentation guidance. All 49 static findings are false positives: weak crypto alerts triggered by Azure SKU names (PerGB2018) and API versions; backtick detections are markdown code blocks; path traversal alerts are relative markdown links; environment variable access is the Azure-recommended pattern for connection strings. No actual security risks identified.

12
Files scanned
374
Lines analyzed
0
findings
1
Total audits
No security issues found
Audited by: claude

Quality Score

73
Architecture
100
Maintainability
87
Content
50
Community
100
Security
91
Spec Compliance

What You Can Build

DevOps engineer adding monitoring to Azure web app

A DevOps engineer needs to add Application Insights to an existing ASP.NET Core app running on Azure App Service. The skill provides step-by-step SDK setup and configuration guidance.

Developer learning App Insights instrumentation

A developer wants to understand how to instrument their Node.js application with OpenTelemetry for Azure Monitor. The skill provides quick start guides and best practices.

Claude Code user needing Azure monitoring help

A Claude Code user asks how to add telemetry to their Python app. The skill provides Python-specific SDK configuration and connection string setup instructions.

Try These Prompts

Basic instrumentation question
How do I add Application Insights telemetry to my Azure web app?
ASP.NET Core setup
Show me how to configure Application Insights in my ASP.NET Core application using the OpenTelemetry SDK.
Node.js configuration
What is the code to add Azure Monitor OpenTelemetry to my Node.js app and what environment variables do I need?
Auto-instrumentation for Azure App Service
How do I enable auto-instrumentation for my app hosted in Azure App Service without code changes?

Best Practices

  • Use environment variables for connection strings instead of hardcoding them in configuration files
  • Call the monitoring setup as early as possible in your application startup
  • Use OpenTelemetry Distro packages when available for easier configuration

Avoid

  • Do not modify appsettings.json for App Insights configuration (deprecated method)
  • Do not hardcode connection strings in source code
  • Do not skip setting up sampling for high-traffic applications

Frequently Asked Questions

What is Application Insights?
Application Insights is an Azure Monitor feature that provides application performance monitoring (APM), telemetry collection, and diagnostics for applications running in Azure or on-premises.
Do I need to modify my code to use App Insights?
For Azure App Service apps, you can use auto-instrumentation without code changes. For other scenarios, you need to add the SDK and call the setup method in your code.
Where do I get the connection string?
The connection string is available in the Azure Portal under your Application Insights resource properties, or you can retrieve it using Azure CLI with the appinsights command.
Which languages are supported?
This skill covers ASP.NET Core, Node.js, Python, and provides references for Java and TypeScript applications.
What is the difference between auto and manual instrumentation?
Auto-instrumentation works without code changes but only supports Azure App Service. Manual instrumentation requires SDK integration but works for any hosting environment.
Can I use this skill to create the App Insights resource?
No, this skill provides guidance only. To create the actual Azure resource, invoke the azure-prepare skill which orchestrates the component changes.