capabilities.work

Azure API Management Configure Logger and Service Diagnostic

A 3-step recipe with Microsoft Azure API Management. We can help you get access.

Recipe · 3 steps

Azure API Management Configure Logger and Service Diagnostic

Create a logger and wire a service diagnostic to it.

  1. Create or update the logger that diagnostics will write to.
  2. Create or update the service-level diagnostic that points at the new logger with a fixed sampling configuration.
  3. Read the diagnostic back to confirm it points at the new logger.
What you'll need to have ready
  • subscriptionId: The Azure subscription identifier.
  • resourceGroupName: The resource group containing the service.
  • serviceName: The API Management service name.
  • loggerId: The logger identifier to create.
  • diagnosticId: The service diagnostic identifier to create.
  • loggerType: The logger type (e.g. applicationInsights or azureEventHub).
  • samplingPercentage: The fixed sampling percentage (0-100).
For your developer

Arazzo workflow microsoft-azure-api-management:configure-logger-diagnostic, 3 operations: Logger_CreateOrUpdate → Diagnostic_CreateOrUpdate → Diagnostic_Get. Specs on APIs.io.