Microsoft.ApiManagement service/loggers 2021-04-01-preview

The service/loggers resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.ApiManagement/service/loggers resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.ApiManagement/service/loggers@2021-04-01-preview' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    credentials: {}
    description: 'string'
    isBuffered: bool
    loggerType: 'string'
    resourceId: 'string'

Property values


Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)

Character limit: 1-80

Valid characters:
Alphanumerics and hyphens.

Start with letter and end with alphanumeric.
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: service
properties The Logger entity in API Management represents an event sink that you can use to log API Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs. LoggerContractProperties


Name Description Value
credentials The name and SendRule connection string of the event hub for azureEventHub logger.
Instrumentation key for applicationInsights logger.
description Logger description. string
isBuffered Whether records are buffered in the logger before publishing. Default is assumed to be true. bool
loggerType Logger type. 'applicationInsights'
resourceId Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource). string

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create an API Management instance and all sub resources using template

Deploy to Azure
This template demonstrates how to create a API Management service and configure sub-entities
Create API Management in Internal VNet with App Gateway

Deploy to Azure
This template demonstrates how to Create a instance of Azure API Management on a private network protected by Azure Application Gateway.
Create Azure Front Door in front of Azure API Management

Deploy to Azure
This sample demonstrates how to use Azure Front Door as a global load balancer in front of Azure API Management.