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

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

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

Property values

service/apis/operations/policies

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.ApiManagement/service/apis/operations/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)