Azure Virtual Machines Log Analytics API

The LogAnalytics API from Azure Virtual Machines — 2 operation(s) for loganalytics.

GitHub OpenAPI

Operations 2

POST /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval Log analytics export request rate by interval #
POST /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests Log analytics export throttled requests #

Documentation

Specifications

SDKs

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure-virtual-machines:microsoft-azure-virtual-machines-loganalytics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-virtual-machines-loganalytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure Compute resource management API. Log Analytics API
  version: '2026-04-01'
  description: Compute Client
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: LogAnalytics
paths:
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval
  : post:
      operationId: LogAnalytics_ExportRequestRateByInterval
      tags:
      - LogAnalytics
      description: Export logs that show Api requests made by this subscription in the given time window to show throttling activities.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogAnalyticsOperationResult'
        '202':
          description: Resource operation accepted.
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
        final-state-schema: '#/definitions/LogAnalyticsOperationResult'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RequestRateByIntervalInput'
        description: Parameters supplied to the LogAnalytics getRequestRateByInterval Api.
        required: true
      summary: Log analytics export request rate by interval
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests
  : post:
      operationId: LogAnalytics_ExportThrottledRequests
      tags:
      - LogAnalytics
      description: Export logs that show total throttled Api requests for this subscription in the given time window.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogAnalyticsOperationResult'
        '202':
          description: Resource operation accepted.
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
        final-state-schema: '#/definitions/LogAnalyticsOperationResult'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThrottledRequestsInput'
        description: The request body
        required: true
      summary: Log analytics export throttled requests
      x-summary-source: derived
components:
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription.
      required: true
      schema:
        type: string
        minLength: 1
    LocationParameter:
      name: location
      in: path
      description: The name of Azure region.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        minLength: 1
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
  schemas:
    ThrottledRequestsInput:
      type: object
      description: Api request input for LogAnalytics getThrottledRequests Api.
      allOf:
      - $ref: '#/components/schemas/LogAnalyticsInputBase'
    ApiError:
      type: object
      properties:
        details:
          type: array
          items:
            $ref: '#/components/schemas/ApiErrorBase'
          x-ms-identifiers:
          - message
          - target
          description: The Api error details
        innererror:
          $ref: '#/components/schemas/InnerError'
          description: The Api inner error
        code:
          type: string
          description: The error code.
        target:
          type: string
          description: The target of the particular error.
        message:
          type: string
          description: The error message.
      description: Api error.
    LogAnalyticsOutput:
      type: object
      description: LogAnalytics output properties
      properties:
        output:
          type: string
          description: Output file Uri path to blob container.
          readOnly: true
    CloudError:
      type: object
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      description: An error response from the Compute service.
    IntervalInMins:
      type: string
      description: Interval value in minutes used to create LogAnalytics call rate logs.
      enum:
      - ThreeMins
      - FiveMins
      - ThirtyMins
      - SixtyMins
      x-ms-enum:
        name: IntervalInMins
        modelAsString: false
    LogAnalyticsInputBase:
      type: object
      description: Api input base class for LogAnalytics Api.
      properties:
        blobContainerSasUri:
          type: string
          description: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.
        fromTime:
          type: string
          format: date-time
          description: From time of the query
        toTime:
          type: string
          format: date-time
          description: To time of the query
        groupByThrottlePolicy:
          type: boolean
          description: Group query result by Throttle Policy applied.
        groupByOperationName:
          type: boolean
          description: Group query result by Operation Name.
        groupByResourceName:
          type: boolean
          description: Group query result by Resource Name.
        groupByClientApplicationId:
          type: boolean
          description: Group query result by Client Application ID.
        groupByUserAgent:
          type: boolean
          description: Group query result by User Agent.
      required:
      - blobContainerSasUri
      - fromTime
      - toTime
    LogAnalyticsOperationResult:
      type: object
      description: LogAnalytics operation status response
      properties:
        properties:
          $ref: '#/components/schemas/LogAnalyticsOutput'
          description: LogAnalyticsOutput
          readOnly: true
    RequestRateByIntervalInput:
      type: object
      description: Api request input for LogAnalytics getRequestRateByInterval Api.
      properties:
        intervalLength:
          $ref: '#/components/schemas/IntervalInMins'
          description: Interval value in minutes used to create LogAnalytics call rate logs.
      required:
      - intervalLength
      allOf:
      - $ref: '#/components/schemas/LogAnalyticsInputBase'
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.
x-ms-paths:
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions?$expand=Properties
  : get:
      operationId: VirtualMachineImages_ListWithProperties
      tags:
      - VirtualMachineImages
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: publisherName
        in: path
        description: A valid image publisher.
        required: true
        type: string
      - name: offer
        in: path
        description: A valid image publisher offer.
        required: true
        type: string
      - name: skus
        in: path
        description: A valid image SKU.
        required: true
        type: string
      - name: $expand
        in: query
        description: The expand expression to apply on the operation.
        required: true
        type: string
      - name: $top
        in: query
        required: false
        type: integer
        format: int32
      - name: $orderby
        in: query
        required: false
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            type: array
            items:
              $ref: '#/components/schemas/VirtualMachineImage'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/components/schemas/CloudError'