last sync: 2021-May-14 16:08:20 UTC

Azure Policy definition

[Deprecated]: Cognitive Services accounts should enable data encryption

Name [Deprecated]: Cognitive Services accounts should enable data encryption
Azure Portal
Id 2bdd0062-9d75-436e-89df-487dd8e4b3c7
Version 2.0.0-deprecated
details on versioning
Category Cognitive Services
Microsoft docs
Description This policy is deprecated. Cognitive Services have data encryption enforced.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated True
Effect Default: Disabled
Allowed: (Audit, Deny, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-04-21 13:28:46 change Major, new suffix: deprecated (1.0.0 > 2.0.0-deprecated)
2020-06-09 16:25:53 add 2bdd0062-9d75-436e-89df-487dd8e4b3c7
Used in Initiatives none
JSON Changes

JSON
{
  "properties": {
  "displayName": "[Deprecated]: Cognitive Services accounts should enable data encryption",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "This policy is deprecated. Cognitive Services have data encryption enforced.",
    "metadata": {
      "version": "2.0.0-deprecated",
      "category": "Cognitive Services",
      "deprecated": true
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
        "displayName": "[Deprecated]: Effect",
          "description": "The effect determines what happens when the policy rule is evaluated to match"
        },
        "allowedValues": [
          "Audit",
          "Deny",
          "Disabled"
        ],
        "defaultValue": "Disabled"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.CognitiveServices/accounts"
          },
          {
            "field": "Microsoft.CognitiveServices/accounts/encryption.keySource",
            "exists": "false"
          },
          {
            "field": "Microsoft.CognitiveServices/accounts/encryption",
            "exists": "true"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/2bdd0062-9d75-436e-89df-487dd8e4b3c7",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "2bdd0062-9d75-436e-89df-487dd8e4b3c7"
}