Microsoft.ApiManagement service/workspaces/policyFragments

ARM template resource definition

The service/workspaces/policyFragments resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ApiManagement/service/workspaces/policyFragments resource, add the following JSON to your template.

{
  "type": "Microsoft.ApiManagement/service/workspaces/policyFragments",
  "apiVersion": "2023-05-01-preview",
  "name": "string",
  "properties": {
    "description": "string",
    "format": "string",
    "value": "string"
  }
}

Property values

service/workspaces/policyFragments

Name Description Value
type The resource type 'Microsoft.ApiManagement/service/workspaces/policyFragments'
apiVersion The resource api version '2023-05-01-preview'
name The resource name

See how to set names and types for child resources in JSON ARM templates.
string (required)
properties Properties of the Policy Fragment. PolicyFragmentContractProperties

PolicyFragmentContractProperties

Name Description Value
description Policy fragment description. string
format Format of the policy fragment content. 'rawxml'
'xml'
value Contents of the policy fragment. string (required)