{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "name": { "type": "string" }, "type": { "const": "Microsoft.Authorization/policySetDefinitions" }, "properties": { "type": "object", "properties": { "displayName": { "type": "string" }, "policyType": { "type": "string" }, "description": { "type": "string" }, "metadata": { "type": "object", "properties": { "version": { "type": "string" }, "category": { "type": "string" }, "epacCloudEnvironments": { "type": "array", "maxItems": 3, "uniqueItems": true, "items": { "enum": [ "AzureCloud", "AzureChinaCloud", "AzureUSGovernment" ] } } }, "required": [ "version", "category" ] }, "importPolicyDefinitionGroups": { "type": "array", "items": { "type": "string" } }, "policyDefinitionGroups": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "additionalMetadataId": { "type": "string" } }, "additionalProperties": false, "required": [ "name" ] } }, "parameters": { "type": "object" }, "policyDefinitions": { "type": "array", "items": { "type": "object", "properties": { "policyDefinitionId": { "type": "string" }, "policyDefinitionName": { "type": "string" }, "policyDefinitionReferenceId": { "type": "string" }, "definitionVersion": { "type": "string" }, "parameters": { "type": "object" }, "groupNames": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false, "oneOf": [ { "required": [ "policyDefinitionId" ] }, { "required": [ "policyDefinitionName" ] } ], "required": [ "policyDefinitionReferenceId" ] } } }, "additionalProperties": false, "required": [ "displayName", "metadata", "policyDefinitions" ] } }, "required": [ "name", "properties" ] }