Azure Log Analytics · Arazzo Workflow

Azure Log Analytics Cross-Workspace Query

Version 1.0.0

Discover subscription workspaces, then run one KQL query spanning several of them.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub AnalyticsAzureCloudLoggingMonitoringArazzoWorkflows

Provider

azure-log-analytics

Workflows

cross-workspace-query
List subscription workspaces, then run a KQL query spanning multiple of them.
Lists the Log Analytics workspaces in a subscription, then submits a single KQL query to a primary workspace with a list of additional workspace IDs so the query is evaluated across every supplied workspace.
2 steps inputs: additionalWorkspaces, managementApiVersion, query, subscriptionId, timespan, workspaceId outputs: tables, workspaces
1
listWorkspaces
List the workspaces in the subscription so the participating workspaces can be confirmed before the cross-workspace query is issued.
2
runCrossWorkspaceQuery
Execute the KQL query against the primary workspace while supplying the additional workspace IDs so the query spans all of them.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure Log Analytics Cross-Workspace Query
  summary: Discover subscription workspaces, then run one KQL query spanning several of them.
  description: >-
    Azure Monitor lets a single KQL query span multiple Log Analytics workspaces.
    This workflow first lists the workspaces in a subscription so the caller can
    confirm the participating workspaces exist, then executes one query against a
    primary workspace while supplying additional workspace IDs in the request
    body so the results are aggregated across all of them. Every step spells out
    its request inline so the flow can be read and executed without opening the
    underlying OpenAPI descriptions.
  version: 1.0.0
sourceDescriptions:
- name: queryApi
  url: ../openapi/azure-log-analytics-query-api-openapi.yml
  type: openapi
- name: workspacesApi
  url: ../openapi/azure-log-analytics-workspaces-api-openapi.yml
  type: openapi
workflows:
- workflowId: cross-workspace-query
  summary: List subscription workspaces, then run a KQL query spanning multiple of them.
  description: >-
    Lists the Log Analytics workspaces in a subscription, then submits a single
    KQL query to a primary workspace with a list of additional workspace IDs so
    the query is evaluated across every supplied workspace.
  inputs:
    type: object
    required:
    - subscriptionId
    - workspaceId
    - additionalWorkspaces
    - query
    properties:
      subscriptionId:
        type: string
        description: The ID of the target Azure subscription.
      workspaceId:
        type: string
        description: The primary workspace GUID the query is issued against.
      additionalWorkspaces:
        type: array
        description: Additional workspace IDs to include in the cross-workspace query.
        items:
          type: string
      query:
        type: string
        description: The KQL query to evaluate across all participating workspaces.
      timespan:
        type: string
        description: Optional ISO 8601 duration limiting the query window (e.g. P1D).
      managementApiVersion:
        type: string
        description: The management API version to use.
        default: '2025-02-01'
  steps:
  - stepId: listWorkspaces
    description: >-
      List the workspaces in the subscription so the participating workspaces
      can be confirmed before the cross-workspace query is issued.
    operationId: listWorkspaces
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: api-version
      in: query
      value: $inputs.managementApiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      workspaces: $response.body#/value
  - stepId: runCrossWorkspaceQuery
    description: >-
      Execute the KQL query against the primary workspace while supplying the
      additional workspace IDs so the query spans all of them.
    operationId: postQuery
    parameters:
    - name: workspaceId
      in: path
      value: $inputs.workspaceId
    requestBody:
      contentType: application/json
      payload:
        query: $inputs.query
        timespan: $inputs.timespan
        workspaces: $inputs.additionalWorkspaces
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      tables: $response.body#/tables
      primaryRows: $response.body#/tables/0/rows
  outputs:
    workspaces: $steps.listWorkspaces.outputs.workspaces
    tables: $steps.runCrossWorkspaceQuery.outputs.tables

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/azure-log-analytics-cross-workspace-query-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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.