Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Java

Query Azure Monitor logs and resource metrics from Java applications.

52/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 2.7k
Last updated
3mo ago
License
MIT
azure-monitorlog-analyticskusto-query-languagemetrics-query
+3java-sdkmavenazure-authentication

What does this skill do, and when should you use it?

This skill guides Java developers through the Azure Monitor Query SDK for querying Log Analytics with Kusto Query Language and retrieving metrics from Azure resources. It covers synchronous and asynchronous clients, batch log queries, multiple workspaces, metric aggregations, result mapping, and error handling. The referenced azure-monitor-query package is deprecated; new development should migrate to azure-monitor-query-logs and azure-monitor-query-metrics.

It shows how to add com.azure:azure-monitor-query:1.5.9 with Maven and create LogsQueryClient, LogsQueryAsyncClient, MetricsQueryClient, and MetricsQueryAsyncClient instances with TokenCredential. It runs workspace- or resource-scoped Kusto log queries, reads table rows, statistics, visualization data, and partial-failure states, and queries Azure resource metrics including time series, dimensions, and aggregate values. It also demonstrates batch queries, multiple workspaces and resources, timeouts, sovereign-cloud endpoints, custom model mapping, and exception handling.

Good fit
  • A Java Azure developer needs to run Kusto queries against a Log Analytics workspace and read activity-log results.
  • A monitoring engineer needs Azure resource metric time series with dimensions, averages, totals, or counts.
  • A team needs to submit several Log Analytics queries in one batch and inspect each result independently.
  • A Java developer needs to map returned log rows into a custom application model.
  • An application targeting Azure China Cloud needs example log and metric endpoint configuration.

How do you install this skill?

Before you use it
  • This skill targets the deprecated azure-monitor-query package; new projects should prefer azure-monitor-query-logs and azure-monitor-query-metrics.
  • Examples contain placeholders, missing imports, and apparent result-status/API inconsistencies; compile-check them against the intended SDK version before use.
  • Least-privilege RBAC and sensitive-data handling for log queries are not specified; users should restrict credentials and query scope themselves.
  • No skill-specific execution or test evidence is supplied, so this review cannot confirm that the examples run.
Before you start
Your agent needs
  • Network access
Install first
  • Java
  • Maven
  • com.azure:azure-monitor-query:1.5.9

Install the skill through the collection command npx skills add microsoft/skills, then select the required skill in the wizard. The README uses .github/skills/ as an example destination for GitHub Copilot. In the Java project, add Maven dependency com.azure:azure-monitor-query:1.5.9, or manage its version through the Azure SDK BOM.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/.github/plugins/azure-sdk-java/skills/azure-monitor-query-java" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Trigger the skill with phrases such as LogsQueryClient java, MetricsQueryClient java, kusto query java, log analytics java, or azure monitor query java. Provide a Log Analytics workspace or Azure resource and a TokenCredential with appropriate permissions; configure LOG_ANALYTICS_WORKSPACE_ID, AZURE_RESOURCE_ID, and, when using DefaultAzureCredential in production, AZURE_TOKEN_CREDENTIALS as needed. Because the package is deprecated, use the skill's migration guidance for new implementations.

What are this skill's strengths and limitations?

Pros
  • Covers both Azure Monitor logs and metrics queries.
  • Includes synchronous and asynchronous client examples.
  • Demonstrates batch queries, multiple workspaces, aggregations, statistics, visualization, and failure handling.
  • Provides Maven, DefaultAzureCredential, and sovereign-cloud configuration examples.
Limitations
  • The referenced `azure-monitor-query` package is deprecated, so new projects should migrate to two successor packages.
  • Users need a Log Analytics workspace or Azure resource and a properly authorized TokenCredential.
  • The source provides no independent test result or compatibility record for this specific skill.
  • The scope is limited to the Java Azure Monitor Query SDK, not other Azure services or languages.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Azure Monitor Query for Java this page ✓ Microsoft · Official 52 · Use with care ★ 2.7k 3mo ago MIT
Azure Monitor Log Ingestion for Java ✓ Microsoft · Official 48 · Use with care ★ 2.7k 3mo ago MIT
Azure Monitor Query for Python ✓ Microsoft · Official 54 · Use with care ★ 2.7k 3mo ago MIT
Azure Monitor Custom Log Ingestion ✓ Microsoft · Official 53 · Use with care ★ 2.7k 3mo ago MIT
Azure Batch Java Job Orchestration ✓ Microsoft · Official 48 · Use with care ★ 2.7k 3mo ago MIT

The source explicitly identifies azure-monitor-query-logs for Log Analytics queries and azure-monitor-query-metrics for metrics queries as the migration alternatives.

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
52/ 100 5-point scale 2.6 / 5
1Trust16 / 25 · 3.2/5

The documentation requires a TokenCredential and uses environment variables for workspace, resource, and credential configuration. The examples perform read-oriented queries, with no malicious behavior or destructive defaults observed. However, least-privilege RBAC guidance, sensitive-data handling, data-flow disclosure, user confirmation, auditing, and rollback are absent, so points are deducted.

2Reliability8 / 20 · 2.0/5

It covers synchronous and asynchronous clients, logs, metrics, batch queries, and error handling, including failure-status checks. However, the package is explicitly deprecated, examples contain incomplete placeholders and missing imports, and some APIs appear inconsistent. No skill-specific reproducible tests are provided, so the score is limited by static evidence.

3Adaptability9 / 15 · 3.0/5

The Java audience, trigger phrases, and logs/metrics scenarios are relatively clear, and China-cloud endpoints are included, supporting mainland-China environment fit. Non-fit boundaries are not defined, and the skill targets a deprecated package that should be replaced for new projects, so points are deducted.

4Convention9 / 15 · 3.0/5

The skill has metadata, installation and prerequisite notes, structured sections, reference examples, error handling, MIT licensing, author and version metadata, and an explicit deprecation notice. It lacks a changelog, clear maintenance ownership or update path, and contains hidden assumptions and placeholders; the pinned version may also become stale.

5Effectiveness6 / 15 · 2.0/5

The examples can directly help generate Java code for Azure Monitor Query clients, Kusto, logs, metrics, and batch queries, providing clear marginal value. However, the target package is deprecated, several examples need manual correction, and no executed validation or complete project template is supplied, so only limited credit is justified.

6Verifiability4 / 10 · 2.0/5

The skill supplies references for the API, repository, migration, package, and troubleshooting material, together with versioned code examples. This review is static only; there are no skill-specific tests, CI coverage, or third-party execution artifacts establishing correctness of the key paths, so the score is limited.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a Review evidence[1][2][3][4][5][6][7][8][9][10][11]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Should I adopt this skill for a new project?
Use it mainly for maintaining existing code or understanding the deprecated package. New projects should use `azure-monitor-query-logs` and `azure-monitor-query-metrics` instead.
What access does it require?
You need a TokenCredential with appropriate permissions, plus a Log Analytics workspace for log queries or an Azure resource for metric queries. The source does not name specific role assignments.
How does it handle query failures?
Check for `PARTIAL_FAILURE` or failed batch results, and catch `HttpResponseException` to inspect the message and HTTP status code.
Does the source document runtime cost?
No. It identifies the repository and skill as MIT-licensed but provides no runtime pricing information.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Log Ingestion for Java

Guides Java applications in sending structured custom logs to Azure Monitor through DCRs.

★ 2.7k FS 48 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

★ 2.7k FS 54 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Monitor Custom Log Ingestion

Guides Python agents to send custom logs to Log Analytics through the Logs Ingestion API.

★ 2.7k FS 53 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Batch Java Job Orchestration

Run and manage large-scale parallel and HPC workloads on Azure from Java.

★ 2.7k FS 48 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Event Grid for Java

A practical Java SDK guide for publishing, consuming, and handling Azure Event Grid events.

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Java

A practical Java playbook for building file and streaming workflows on Azure Blob Storage.

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Communication Chat for Java

A practical Java SDK guide for building Azure real-time chat threads, messaging, and participant workflows.

★ 2.7k FS 44 Not recommended 3mo ago
Data & Analysis ✓ Microsoft · Official

KQL Query Mastery

Helps coding agents write efficient, reliable Kusto queries with fewer costly errors.

★ 2.7k FS 51 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure AI Persistent Agents for Java

Guides Java developers through building and managing Azure AI agents with persistent threads, messages, runs, and tools.

★ 2.7k FS 47 Use with care 3mo ago
Data & Analysis ✓ Microsoft · Official

Azure Data Explorer Kusto Analytics

Query, aggregate, and analyze Azure Data Explorer logs, telemetry, and time-series data with KQL.

★ 2.7k FS 45 Not recommended 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Monitor Telemetry for Java

Guides Java teams in exporting OpenTelemetry data to Azure Monitor.

★ 2.7k FS 44 Not recommended 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

★ 2.7k FS 57 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure CallingServer Java Legacy Maintainer

Maintain legacy CallingServer Java code and migrate it toward Azure Communication Services Call Automation.

★ 2.7k FS 52 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis for Java

A practical Java SDK guide for captions, OCR, object detection, tagging, and smart image cropping.

★ 2.7k FS 51 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Communication Common for Java

Guides Java developers through shared ACS authentication, token refresh, and communication identifier handling.

★ 2.7k FS 51 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Monitor OpenTelemetry Exporter

Build a controlled Python OpenTelemetry pipeline that exports traces, metrics, and logs to Application Insights.

★ 2.7k FS 49 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Keys for Java

Ground Java coding agents in secure Azure Key Vault and Managed HSM key-management workflows.

★ 2.7k FS 49 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure SMS for Java

Send Azure Communication Services SMS from Java with per-recipient results and delivery tracking.

★ 2.7k FS 48 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Tables Java Skill

Build Java applications for Azure Table Storage and the Cosmos DB Table API.

★ 2.7k FS 48 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Document Intelligence for Java

Gives Java developers practical patterns for extracting and classifying data with Azure Document Intelligence.

★ 2.7k FS 46 Use with care 3mo ago

Related skills