{
   "properties": {
      "displayName": "Allowed resource types",
      "policyType": "BuiltIn",
      "mode": "Indexed",
      "description": "This policy enables you to specify the resource types that your organization can deploy. Only resource types that support 'tags' and 'location' will be affected by this policy. To restrict all resources please duplicate this policy and change the 'mode' to 'All'.",
      "metadata": {
         "version": "1.0.0",
         "category": "General"
      },
      "parameters": {
         "listOfResourceTypesAllowed": {
            "type": "Array",
            "metadata": {
               "description": "The list of resource types that can be deployed.",
               "displayName": "Allowed resource types",
               "strongType": "resourceTypes"
            }
         }
      },
      "policyRule": {
         "if": {
            "not": {
               "field": "type",
               "in": "[parameters('listOfResourceTypesAllowed')]"
            }
         },
         "then": {
            "effect": "deny"
         }
      }
   },
   "id": "/providers/Microsoft.Authorization/policyDefinitions/a08ec900-254a-4555-9bf5-e42af04b5c5c",
   "name": "a08ec900-254a-4555-9bf5-e42af04b5c5c"
}