Azure Log Analytics · Arazzo Workflow

Azure Log Analytics Query Workspace by Name (GET)

Version 1.0.0

Confirm a workspace exists, then run a KQL query via the GET query endpoint.

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

Provider

azure-log-analytics

Workflows

query-workspace-by-name
Resolve a workspace by name, then run a KQL query with the GET endpoint.
Reads the management record for a named workspace to confirm it exists and obtain its customer (workspace) ID, then executes a KQL query against that workspace using the GET query endpoint with the query supplied as a URL parameter.
2 steps inputs: managementApiVersion, query, resourceGroupName, subscriptionId, timespan, workspaceId, workspaceName outputs: customerId, tables
1
getWorkspace
Read the management record for the named workspace to confirm it exists and capture its customer (workspace) ID.
2
runQuery
Execute the KQL query against the resolved workspace using the GET query endpoint, returning the tabular results.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure Log Analytics Query Workspace by Name (GET)
  summary: Confirm a workspace exists, then run a KQL query via the GET query endpoint.
  description: >-
    A lightweight read-only pattern that verifies a Log Analytics workspace by
    its management name before issuing a query. The KQL query is passed on the
    URL using the GET form of the query endpoint, which is convenient for simple
    ad hoc lookups and dashboards. 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: query-workspace-by-name
  summary: Resolve a workspace by name, then run a KQL query with the GET endpoint.
  description: >-
    Reads the management record for a named workspace to confirm it exists and
    obtain its customer (workspace) ID, then executes a KQL query against that
    workspace using the GET query endpoint with the query supplied as a URL
    parameter.
  inputs:
    type: object
    required:
    - subscriptionId
    - resourceGroupName
    - workspaceName
    - workspaceId
    - query
    properties:
      subscriptionId:
        type: string
        description: The ID of the target Azure subscription.
      resourceGroupName:
        type: string
        description: The resource group that contains the workspace.
      workspaceName:
        type: string
        description: The management name of the Log Analytics workspace.
      workspaceId:
        type: string
        description: The customer (workspace) GUID used by the query endpoint.
      query:
        type: string
        description: The KQL query to execute (passed as a URL query parameter).
      timespan:
        type: string
        description: Optional ISO 8601 duration limiting the query window (e.g. PT1H).
      managementApiVersion:
        type: string
        description: The management API version to use.
        default: '2025-02-01'
  steps:
  - stepId: getWorkspace
    description: >-
      Read the management record for the named workspace to confirm it exists
      and capture its customer (workspace) ID.
    operationId: getWorkspace
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: workspaceName
      in: path
      value: $inputs.workspaceName
    - name: api-version
      in: query
      value: $inputs.managementApiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      customerId: $response.body#/properties/customerId
      provisioningState: $response.body#/properties/provisioningState
  - stepId: runQuery
    description: >-
      Execute the KQL query against the resolved workspace using the GET query
      endpoint, returning the tabular results.
    operationId: getQuery
    parameters:
    - name: workspaceId
      in: path
      value: $inputs.workspaceId
    - name: query
      in: query
      value: $inputs.query
    - name: timespan
      in: query
      value: $inputs.timespan
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      tables: $response.body#/tables
      columns: $response.body#/tables/0/columns
  outputs:
    customerId: $steps.getWorkspace.outputs.customerId
    tables: $steps.runQuery.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-query-workspace-by-name-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.