last sync: 2021-Sep-24 16:09:49 UTC

Azure Policy definition

[Deprecated]: Allow resource creation if 'department' tag set

Name [Deprecated]: Allow resource creation if 'department' tag set
Azure Portal
Id cd8dc879-a2ae-43c3-8211-1877c5755064
Version 1.0.0-deprecated
details on versioning
Category Tags
Microsoft docs
Description Allows resource creation only if the 'department' tag is set
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated True
Effect Fixed: Deny
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2019-10-08 15:55:12 change Previous DisplayName: Allow resource creation if 'department' tag set
Used in Initiatives none
JSON
{
  "displayName": "[Deprecated]: 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"
    }
  }
}