{
   "properties": {
      "displayName": "Allow resource creation if 'environment' tag value in allowed values",
      "policyType": "BuiltIn",
      "mode": "Indexed",
      "description": "Allows resource creation if the 'environment' tag is set to one of the following values: production, dev, test, staging",
      "metadata": {
         "version": "1.0.0-deprecated",
         "category": "Tags",
         "deprecated": true
      },
      "parameters": {},
      "policyRule": {
         "if": {
            "not": {
               "field": "tags['environment']",
               "in": [
                  "production",
                  "dev",
                  "test",
                  "staging"
               ]
            }
         },
         "then": {
            "effect": "Deny"
         }
      }
   },
   "id": "/providers/Microsoft.Authorization/policyDefinitions/ac7e5fc0-c029-4b12-91d4-a8500ce697f9",
   "name": "ac7e5fc0-c029-4b12-91d4-a8500ce697f9"
}