Agent skill · data analytics · aiskillstore

azure-monitor-query-py

Azure Monitor Query SDK for Python. Use for querying Log Analytics workspaces and Azure Monitor metrics.

Why this skill is useful

Provides specific commands and patterns for querying Azure Monitor and Log Analytics that the AI wouldn't reliably generate on its own.

What it needs

Requires azure-monitor-query installed locally. Requires azure account access. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Azure Monitor Query SDK for Python Query logs and metrics from Azure Monitor and Log Analytics workspaces. Installation Environment Variables Authentication Logs Query Client Basic Query Query with Time Range Convert to DataFrame Batch Query Handle Partial Results Metrics Query Client Query Resource Metrics Aggregations Filter by Dimension List Metric Definitions List Metric Namespaces Async Clients Common Kusto Queries Client Types Client Purpose -------- --------- LogsQueryClient Query Log Analytics workspaces MetricsQueryClient Query Azure Monitor metrics Best Practices 1. Use timedelta for relative time ranges 2. Handle partial results for large queries 3. Use batch queries when running multiple queries 4. Set appropriate granularity for metrics to reduce data points 5. Convert to DataFrame for easier data analysis 6. Use aggregations to summarize metric data 7. Filter by dimensions to narrow metric results When to Use This skill is applicable to execute the workflow or actions described in the overview. Limitations Use this skill only when the task clearly matches the scope described above. Do not treat the output as a substitute for environment-specific validation, testing, or expert review. Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/azure-monitor-query-py

View the source on GitHub

Browse the @skills marketplace