Microsoft.ApiManagement service/policies

Template format

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

  "name": "policy",
  "type": "Microsoft.ApiManagement/service/policies",
  "apiVersion": "2020-06-01-preview",
  "properties": {
    "value": "string",
    "format": "string"

Property values

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

Microsoft.ApiManagement/service/policies object

Name Type Required Value
name enum Yes The identifier of the Policy. - policy
type enum Yes policies

See Set name and type for child resources.
apiVersion enum Yes 2020-06-01-preview
properties object Yes Properties of the Policy. - PolicyContractProperties object

PolicyContractProperties object

Name Type Required Value
value string Yes Contents of the Policy as defined by the format.
format enum No Format of the policyContent. - xml, xml-link, rawxml, rawxml-link

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