{
   "properties": {
      "displayName": "Allow resource creation if 'department' tag set",
      "policyType": "BuiltIn",
      "mode": "Indexed",
      "description": "Allows resource creation only if the 'department' tag is set",
      "metadata": {
         "version": "1.0.0-deprecated",
         "category": "Tags",
         "deprecated": true
      },
      "parameters": {},
      "policyRule": {
         "if": {
            "not": {
               "field": "tags",
               "containsKey": "department"
            }
         },
         "then": {
            "effect": "Deny"
         }
      }
   },
   "id": "/providers/Microsoft.Authorization/policyDefinitions/cd8dc879-a2ae-43c3-8211-1877c5755064",
   "name": "cd8dc879-a2ae-43c3-8211-1877c5755064"
}