Microsoft.ApiManagement service/diagnostics 2018-01-01

Template format

To create a Microsoft.ApiManagement/service/diagnostics resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.ApiManagement/service/diagnostics",
  "apiVersion": "2018-01-01",
  "properties": {
    "enabled": "boolean"
  },
  "resources": []
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.ApiManagement/service/diagnostics object

Note

In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes Diagnostic identifier. Must be unique in the current API Management service instance.
type enum Yes For JSON -diagnostics
-or-
Microsoft.ApiManagement/service/diagnostics

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2018-01-01
properties object Yes Diagnostic entity contract properties. - DiagnosticContractProperties object
resources array No

DiagnosticContractProperties object

Name Type Required Value
enabled boolean Yes Indicates whether a diagnostic should receive data or not.