capabilities.work

Query Workspace by Name (GET)

A 2-step recipe with Azure Log Analytics. We can help you get access.

Recipe · 2 steps

Query Workspace by Name (GET)

Resolve a workspace by name, then run a KQL query with the GET endpoint.

  1. Read the management record for the named workspace to confirm it exists and capture its customer (workspace) ID.
  2. Execute the KQL query against the resolved workspace using the GET query endpoint, returning the tabular results.
What you'll need to have ready
  • subscriptionId: The ID of the target Azure subscription.
  • resourceGroupName: The resource group that contains the workspace.
  • workspaceName: The management name of the Log Analytics workspace.
  • workspaceId: The customer (workspace) GUID used by the query endpoint.
  • query: The KQL query to execute (passed as a URL query parameter).
  • timespan: Optional ISO 8601 duration limiting the query window (e.g. PT1H).
  • managementApiVersion: The management API version to use.
For your developer

Arazzo workflow azure-log-analytics:query-workspace-by-name, 2 operations: getWorkspace → getQuery. Specs on APIs.io.