Microsoft Azure API Management · Arazzo Workflow

Azure API Management Configure API Diagnostic

Version 1.0.0

Confirm an API exists, attach an Application Insights diagnostic, then read it 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-api-diagnostic
Attach a logging diagnostic to an API and verify it.
Confirms the API exists, creates an Application Insights diagnostic with a sampling configuration, then reads the diagnostic to confirm settings.
3 steps inputs: apiId, diagnosticId, loggerId, resourceGroupName, samplingPercentage, serviceName, subscriptionId outputs: diagnosticResourceId, loggerId
1
getApi
Read the API to confirm it exists before attaching a diagnostic to it.
2
createDiagnostic
Create or update the diagnostic that logs API traffic to the supplied logger with a fixed sampling configuration.
3
confirmDiagnostic
Read the diagnostic back to confirm the logger and sampling settings were applied.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure API Management Configure API Diagnostic
  summary: Confirm an API exists, attach an Application Insights diagnostic, then read it back.
  description: >-
    Wires API request logging to a logger such as Application Insights. The
    workflow reads the API to confirm it exists, creates or updates a diagnostic
    that points at the supplied logger id with a sampling configuration, then
    reads the diagnostic back to confirm the settings were applied. 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: apiApi
  url: ../openapi/microsoft-azure-api-management-api-api-openapi.yml
  type: openapi
- name: apidiagnosticApi
  url: ../openapi/microsoft-azure-api-management-apidiagnostic-api-openapi.yml
  type: openapi
workflows:
- workflowId: configure-api-diagnostic
  summary: Attach a logging diagnostic to an API and verify it.
  description: >-
    Confirms the API exists, creates an Application Insights diagnostic with a
    sampling configuration, then reads the diagnostic to confirm settings.
  inputs:
    type: object
    required:
    - subscriptionId
    - resourceGroupName
    - serviceName
    - apiId
    - diagnosticId
    - loggerId
    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.
      apiId:
        type: string
        description: The API identifier to attach the diagnostic to.
      diagnosticId:
        type: string
        description: The diagnostic identifier (e.g. applicationinsights).
      loggerId:
        type: string
        description: The full resource id of the target logger.
      samplingPercentage:
        type: number
        description: The fixed sampling percentage (0-100).
  steps:
  - stepId: getApi
    description: >-
      Read the API to confirm it exists before attaching a diagnostic to it.
    operationId: Api_Get
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: apiId
      in: path
      value: $inputs.apiId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      apiResourceId: $response.body#/id
  - stepId: createDiagnostic
    description: >-
      Create or update the diagnostic that logs API traffic to the supplied
      logger with a fixed sampling configuration.
    operationId: ApiDiagnostic_CreateOrUpdate
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: apiId
      in: path
      value: $inputs.apiId
    - name: diagnosticId
      in: path
      value: $inputs.diagnosticId
    requestBody:
      contentType: application/json
      payload:
        properties:
          loggerId: $inputs.loggerId
          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 the logger and sampling settings were
      applied.
    operationId: ApiDiagnostic_Get
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: apiId
      in: path
      value: $inputs.apiId
    - name: diagnosticId
      in: path
      value: $inputs.diagnosticId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      loggerId: $response.body#/properties/loggerId
  outputs:
    diagnosticResourceId: $steps.createDiagnostic.outputs.diagnosticResourceId
    loggerId: $steps.confirmDiagnostic.outputs.loggerId

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-api-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.