azure-observability
Azure Observability with Monitor, App Insights, and KQL
This skill provides Claude with knowledge of Azure monitoring services, Application Insights, Log Analytics, KQL queries, and SDK references for implementing full-stack observability in Azure applications.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "azure-observability". Query recent exceptions from Application Insights
Expected outcome:
Use this KQL query:
```kql
AppExceptions
| where TimeGenerated > ago(1h)
| project TimeGenerated, Message, StackTrace
| order by TimeGenerated desc
```
Or use the Azure CLI:
```bash
az monitor log-analytics query \
--workspace WORKSPACE_ID \
--analytics-query "AppExceptions | where TimeGenerated > ago(1h)"
```
Using "azure-observability". How to configure OpenTelemetry for Python
Expected outcome:
Install the package:
```bash
pip install azure-monitor-opentelemetry
```
Then configure in your Python code:
```python
from azure.monitor.opentelemetry import configure_azure_monitor
configure_azure_monitor()
```
Best practices:
- Call configure_azure_monitor() early, before importing instrumented libraries
- Use environment variables for the connection string in production
- Set cloud role name for multi-service Application Map
Security Audit
SafeThis is an official Microsoft documentation skill containing only markdown reference files. All 57 static findings are false positives: backtick commands are CLI examples in documentation, URLs point to Microsoft Learn documentation, and environment variable patterns are standard configuration. No malicious behavior detected.
Quality Score
What You Can Build
Debug application errors with App Insights
Query Application Insights to find recent exceptions, failed requests, and performance issues in production applications.
Analyze infrastructure metrics
Use Azure Monitor and Log Analytics to query CPU, memory, and disk metrics across Azure resources.
Build custom monitoring dashboards
Create KQL queries for custom reports and integrate with Azure Workbooks for interactive visualizations.
Try These Prompts
Show me how to query recent errors from Application Insights using KQL to find exceptions in the last hour.
Write a KQL query to get average response time and request count from App Insights, grouped by operation name.
Show me how to configure Azure Monitor OpenTelemetry for a Python FastAPI application with custom span attributes.
Give me CLI commands to list Log Analytics workspaces and query CPU metrics for virtual machines.
Best Practices
- Use KQL queries with time filters (ago()) to limit result sets and improve performance
- Configure OpenTelemetry at application startup before importing other instrumented libraries
- Use AAD authentication instead of instrumentation keys for production workloads
Avoid
- Avoid querying large time ranges without filters - this causes slow queries and high costs
- Do not hardcode connection strings in source code - use environment variables
- Avoid logging sensitive user data in Application Insights - this creates compliance issues
Frequently Asked Questions
What is the difference between Azure Monitor and Application Insights?
Do I need an Azure subscription to use this skill?
Can this skill create Application Insights resources?
What is KQL?
How do I enable the Azure MCP server?
Is OpenTelemetry supported for all Azure services?
Developer Details
Author
microsoftLicense
MIT
Repository
https://github.com/microsoft/github-copilot-for-azure/tree/main/plugin/skills/azure-observability/Ref
main