last sync: 2020-Oct-30 14:31:57 UTC

Azure Policy definition

Cognitive Services accounts should use customer owned storage

Name Cognitive Services accounts should use customer owned storage
Azure Portal
Id 46aa9b05-0e60-4eae-a88b-1e9d374fa515
Version 1.0.0
details on versioning
Category Cognitive Services
Microsoft docs
Description This policy audits any Cognitive Services account not using customer owned storage.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Deny, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2020-06-09 16:25:53 add 46aa9b05-0e60-4eae-a88b-1e9d374fa515
Used in Initiatives none
Json
{
  "properties": {
    "displayName": "Cognitive Services accounts should use customer owned storage",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "This policy audits any Cognitive Services account not using customer owned storage.",
    "metadata": {
      "version": "1.0.0",
      "category": "Cognitive Services"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "The effect determines what happens when the policy rule is evaluated to match"
        },
        "allowedValues": [
          "Audit",
          "Deny",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.CognitiveServices/accounts"
          },
          {
            "count": {
            "field": "Microsoft.CognitiveServices/accounts/userOwnedStorage[*]"
            },
            "less": 1
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/46aa9b05-0e60-4eae-a88b-1e9d374fa515",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "46aa9b05-0e60-4eae-a88b-1e9d374fa515"
}