last sync: 2020-Jul-10 14:05:01 UTC

Azure Policy

[Deprecated]: Allow resource creation if 'environment' tag value in allowed values

Policy DisplayName [Deprecated]: Allow resource creation if 'environment' tag value in allowed values
Policy Id ac7e5fc0-c029-4b12-91d4-a8500ce697f9
Policy Category Tags
Policy Description Allows resource creation if the 'environment' tag is set to one of the following values: production, dev, test, staging
Policy Mode Indexed
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated True
Policy Effect Fixed: Deny
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2019-10-08 15:55:12 change: DisplayName previous DisplayName: Allow resource creation if 'environment' tag value in allowed values
Used in Policy Initiative(s) none
Policy Rule
{
  "properties": {
  "displayName": "[Deprecated]: 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",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "ac7e5fc0-c029-4b12-91d4-a8500ce697f9"
}