Microsoft Azure API Management · Arazzo Workflow

Azure API Management Configure Logger and Service Diagnostic

Version 1.0.0

Create a logger, attach a service-wide diagnostic to it, then read the diagnostic back.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub A2AAI GatewayAPI CenterAPI GatewayAPI ManagementEnterpriseMCPMicrosoft AzureArazzoWorkflows

Provider

microsoft-azure-api-management

Workflows

configure-logger-diagnostic
Create a logger and wire a service diagnostic to it.
Creates a logger, creates a service-level diagnostic pointing at it, then reads the diagnostic to confirm.
3 steps inputs: diagnosticId, loggerId, loggerType, resourceGroupName, samplingPercentage, serviceName, subscriptionId outputs: diagnosticResourceId, loggerResourceId
1
createLogger
Create or update the logger that diagnostics will write to.
2
createDiagnostic
Create or update the service-level diagnostic that points at the new logger with a fixed sampling configuration.
3
confirmDiagnostic
Read the diagnostic back to confirm it points at the new logger.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure API Management Configure Logger and Service Diagnostic
  summary: Create a logger, attach a service-wide diagnostic to it, then read the diagnostic back.
  description: >-
    Sets up service-wide observability. The workflow creates or updates a logger
    (such as Application Insights or Event Hub), creates or updates a
    service-level diagnostic that points at that logger with a sampling
    configuration, then reads the diagnostic back to confirm the wiring. Every
    step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: diagnosticApi
  url: ../openapi/microsoft-azure-api-management-diagnostic-api-openapi.yml
  type: openapi
- name: loggerApi
  url: ../openapi/microsoft-azure-api-management-logger-api-openapi.yml
  type: openapi
workflows:
- workflowId: configure-logger-diagnostic
  summary: Create a logger and wire a service diagnostic to it.
  description: >-
    Creates a logger, creates a service-level diagnostic pointing at it, then
    reads the diagnostic to confirm.
  inputs:
    type: object
    required:
    - subscriptionId
    - resourceGroupName
    - serviceName
    - loggerId
    - diagnosticId
    - loggerType
    properties:
      subscriptionId:
        type: string
        description: The Azure subscription identifier.
      resourceGroupName:
        type: string
        description: The resource group containing the service.
      serviceName:
        type: string
        description: The API Management service name.
      loggerId:
        type: string
        description: The logger identifier to create.
      diagnosticId:
        type: string
        description: The service diagnostic identifier to create.
      loggerType:
        type: string
        description: The logger type (e.g. applicationInsights or azureEventHub).
      samplingPercentage:
        type: number
        description: The fixed sampling percentage (0-100).
  steps:
  - stepId: createLogger
    description: >-
      Create or update the logger that diagnostics will write to.
    operationId: Logger_CreateOrUpdate
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: loggerId
      in: path
      value: $inputs.loggerId
    requestBody:
      contentType: application/json
      payload:
        properties:
          loggerType: $inputs.loggerType
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      loggerResourceId: $response.body#/id
  - stepId: createDiagnostic
    description: >-
      Create or update the service-level diagnostic that points at the new
      logger with a fixed sampling configuration.
    operationId: Diagnostic_CreateOrUpdate
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: diagnosticId
      in: path
      value: $inputs.diagnosticId
    requestBody:
      contentType: application/json
      payload:
        properties:
          loggerId: $steps.createLogger.outputs.loggerResourceId
          alwaysLog: allErrors
          sampling:
            samplingType: fixed
            percentage: $inputs.samplingPercentage
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      diagnosticResourceId: $response.body#/id
  - stepId: confirmDiagnostic
    description: >-
      Read the diagnostic back to confirm it points at the new logger.
    operationId: Diagnostic_Get
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: diagnosticId
      in: path
      value: $inputs.diagnosticId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      diagnosticResourceId: $response.body#/id
  outputs:
    loggerResourceId: $steps.createLogger.outputs.loggerResourceId
    diagnosticResourceId: $steps.createDiagnostic.outputs.diagnosticResourceId

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/microsoft-azure-api-management-configure-logger-diagnostic-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.