Microsoft.Media mediaServices/contentKeyPolicies template reference

Template format

To create a Microsoft.Media/mediaServices/contentKeyPolicies resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Media/mediaServices/contentKeyPolicies",
  "apiVersion": "2018-07-01",
  "properties": {
    "description": "string",
    "options": [
      {
        "name": "string",
        "configuration": {
          "@odata.type": "string"
        },
        "restriction": {
          "@odata.type": "string"
        }
      }
    ]
  }
}

Property values

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

Microsoft.Media/mediaServices/contentKeyPolicies object

Name Type Required Value
name string Yes The Content Key Policy name.
type enum Yes contentKeyPolicies
-or-
Microsoft.Media/mediaServices/contentKeyPolicies

See Set name and type for child resources.
apiVersion enum Yes 2018-07-01
properties object Yes ContentKeyPolicyProperties object

ContentKeyPolicyProperties object

Name Type Required Value
description string No A description for the Policy.
options array Yes The Key Policy options. - ContentKeyPolicyOption object

ContentKeyPolicyOption object

Name Type Required Value
name string No The Policy Option description.
configuration object Yes The key delivery configuration. - ContentKeyPolicyConfiguration object
restriction object Yes The requirements that must be met to deliver keys with this configuration - ContentKeyPolicyRestriction object

ContentKeyPolicyConfiguration object

Name Type Required Value
@odata.type string Yes

ContentKeyPolicyRestriction object

Name Type Required Value
@odata.type string Yes