Microsoft.ApiManagement service/policies 2018-06-01-preview

The service/policies 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/policies resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.ApiManagement/service/policies@2018-06-01-preview' = {
  name: 'policy'
  properties: {
    contentFormat: 'string'
    policyContent: 'string'
  }
}

Property values

service/policies

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.ApiManagement/service/policies'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2018-06-01-preview'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
'policy'
properties Policy contract Properties. PolicyContractProperties

PolicyContractProperties

Name Description Value
contentFormat Format of the policyContent. 'rawxml'
'rawxml-link'
'xml'
'xml-link'
policyContent Json escaped Xml Encoded contents of the Policy. string (required)

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
Front Door Standard/Premium with API Management origin

Deploy to Azure
This template creates a Front Door Premium (Preview) and an API Management instance, and uses an NSG and global API Management policy to validate that traffic has come through the Front Door origin.