LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/microsoft/skills --skill azure-monitor-query-java
or paste the link and ask your coding assistant to install it
https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-java/skills/azure-monitor-query-java
View on GitHub

What This Skill Does

Java SDK for querying Azure Monitor data. Supports Kusto queries against Log Analytics workspaces and fetching metrics from Azure resources using LogsQueryClient and MetricsQueryClient. Note: this package is deprecated; migrate to azure-monitor-query-logs and azure-monitor-query-metrics.

Using the SDK handles authentication, pagination, and response deserialization automatically, avoiding the manual HTTP and token management required when calling the Azure Monitor REST API directly.

When to use it

  • Running Kusto queries against a Log Analytics workspace from a Java application
  • Fetching CPU or memory metrics for an Azure VM over a custom time range
  • Batching multiple log queries into a single API call to reduce round trips
  • Mapping Log Analytics query results directly to Java model classes
  • Querying metrics across multiple Azure resources in one request