Azure Log Analytics · Arazzo Workflow

Azure Log Analytics Browse Saved Searches and Run One

Version 1.0.0

List a workspace's saved searches, fetch one's KQL, then execute it.

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

Provider

azure-log-analytics

Workflows

list-saved-searches-and-run
Enumerate saved searches, fetch one's stored KQL, and execute it.
Lists the saved searches on a workspace, reads the chosen saved search to obtain its stored KQL query, and submits that query to the Log Analytics query endpoint for the workspace.
3 steps inputs: managementApiVersion, resourceGroupName, savedSearchId, subscriptionId, timespan, workspaceId, workspaceName outputs: category, tables
1
listSavedSearches
List every saved search on the workspace so the target search can be confirmed before fetching its full definition.
2
getSavedSearch
Read the chosen saved search to obtain its stored KQL query and category.
3
runSavedQuery
Execute the saved search's stored KQL query against the workspace and return the tabular results.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure Log Analytics Browse Saved Searches and Run One
  summary: List a workspace's saved searches, fetch one's KQL, then execute it.
  description: >-
    A discovery-then-execute pattern over the saved-search library of a Log
    Analytics workspace. The workflow lists every saved search on the workspace,
    reads the full definition of the chosen one to obtain its stored KQL, and
    then runs that query against the workspace. It supports building catalogs of
    runnable, curated queries. 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: savedSearchesApi
  url: ../openapi/azure-log-analytics-saved-searches-api-openapi.yml
  type: openapi
workflows:
- workflowId: list-saved-searches-and-run
  summary: Enumerate saved searches, fetch one's stored KQL, and execute it.
  description: >-
    Lists the saved searches on a workspace, reads the chosen saved search to
    obtain its stored KQL query, and submits that query to the Log Analytics
    query endpoint for the workspace.
  inputs:
    type: object
    required:
    - subscriptionId
    - resourceGroupName
    - workspaceName
    - savedSearchId
    - workspaceId
    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.
      savedSearchId:
        type: string
        description: The ID of the saved search to fetch and run.
      workspaceId:
        type: string
        description: The customer (workspace) GUID used by the query endpoint.
      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: listSavedSearches
    description: >-
      List every saved search on the workspace so the target search can be
      confirmed before fetching its full definition.
    operationId: listSavedSearches
    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:
      savedSearches: $response.body#/value
  - stepId: getSavedSearch
    description: >-
      Read the chosen saved search to obtain its stored KQL query and category.
    operationId: getSavedSearch
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: workspaceName
      in: path
      value: $inputs.workspaceName
    - name: savedSearchId
      in: path
      value: $inputs.savedSearchId
    - name: api-version
      in: query
      value: $inputs.managementApiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      query: $response.body#/properties/query
      category: $response.body#/properties/category
  - stepId: runSavedQuery
    description: >-
      Execute the saved search's stored KQL query against the workspace and
      return the tabular results.
    operationId: postQuery
    parameters:
    - name: workspaceId
      in: path
      value: $inputs.workspaceId
    requestBody:
      contentType: application/json
      payload:
        query: $steps.getSavedSearch.outputs.query
        timespan: $inputs.timespan
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      tables: $response.body#/tables
  outputs:
    category: $steps.getSavedSearch.outputs.category
    tables: $steps.runSavedQuery.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-list-saved-searches-and-run-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.