capabilities.work

Azure API Management Configure API Diagnostic

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

Recipe · 3 steps

Azure API Management Configure API Diagnostic

Attach a logging diagnostic to an API and verify it.

  1. Read the API to confirm it exists before attaching a diagnostic to it.
  2. Create or update the diagnostic that logs API traffic to the supplied logger with a fixed sampling configuration.
  3. Read the diagnostic back to confirm the logger and sampling settings were applied.
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.
  • apiId: The API identifier to attach the diagnostic to.
  • diagnosticId: The diagnostic identifier (e.g. applicationinsights).
  • loggerId: The full resource id of the target logger.
  • samplingPercentage: The fixed sampling percentage (0-100).
For your developer

Arazzo workflow microsoft-azure-api-management:configure-api-diagnostic, 3 operations: Api_Get → ApiDiagnostic_CreateOrUpdate → ApiDiagnostic_Get. Specs on APIs.io.