{
   "properties": {
      "displayName": "Not allowed resource types",
      "policyType": "BuiltIn",
      "mode": "All",
      "description": "Restrict which resource types can be deployed in your environment. Limiting resource types can reduce the complexity and attack surface of your environment while also helping to manage costs. Compliance results are only shown for non-compliant resources.",
      "metadata": {
         "version": "2.0.0",
         "category": "General"
      },
      "parameters": {
         "listOfResourceTypesNotAllowed": {
            "type": "Array",
            "metadata": {
               "description": "The list of resource types that cannot be deployed.",
               "displayName": "Not allowed resource types",
               "strongType": "resourceTypes"
            }
         },
         "effect": {
            "type": "string",
            "defaultValue": "Deny",
            "allowedValues": [
               "Audit",
               "Deny",
               "Disabled"
            ],
            "metadata": {
               "displayName": "Effect",
               "description": "Enable or disable the execution of the policy"
            }
         }
      },
      "policyRule": {
         "if": {
            "allOf": [
               {
                  "field": "type",
                  "in": "[parameters('listOfResourceTypesNotAllowed')]"
               },
               {
                  "value": "[field('type')]",
                  "exists": true
               }
            ]
         },
         "then": {
            "effect": "[parameters('effect')]"
         }
      }
   },
   "id": "/providers/Microsoft.Authorization/policyDefinitions/6c112d4e-5bc7-47ae-a041-ea2d9dccd749",
   "name": "6c112d4e-5bc7-47ae-a041-ea2d9dccd749"
}