Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure Monitor Logs is deprecating the batch query and beta query APIs. Support for these APIs is available according to the following timelines:
Deprecated API | Identifier | Support cutoff date |
---|---|---|
beta | https://api.loganalytics.azure.com/beta/ |
March 31, 2026 |
batch | https://api.loganalytics.azure.com/v1/$batch |
March 31, 2028 |
This article explains how to use the standard Log Analytics query API for existing queries that currently use the batch query and beta query APIs.
Migrate batch queries to single queries
To migrate batch API calls, split every query that you previously sent as part of the requests
array in the body of the message and use query
section in the standard request format instead.
If you use an Azure SDK client library listed below to initiate batch queries, split batched queries to run as separate queries using the corresponding method.
Ecosystem | Package |
---|---|
.NET | Azure.Monitor.Query |
Go | azlogs |
Java | azure-monitor-query |
JavaScript | @azure/monitor-query |
Python | azure-monitor-query |
Make sure to adjust and handle the response using the standard response format.
Migrate beta queries to standard queries
To migrate queries that use the beta
API version - for example, https://api.loganalytics.io/beta/workspaces/{workspaceId}/query
- use the standard request format instead.