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

Azure Policy

Cognitive Services accounts should use customer owned storage

Policy DisplayName Cognitive Services accounts should use customer owned storage
Policy Id 46aa9b05-0e60-4eae-a88b-1e9d374fa515
Policy Category Cognitive Services
Policy Description This policy audits any Cognitive Services account not using customer owned storage.
Policy Mode Indexed
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated FALSE
Policy Effect Default: Audit
Allowed: (Audit,Deny,Disabled)
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2020-06-09 16:25:53 add: Policy 46aa9b05-0e60-4eae-a88b-1e9d374fa515
Used in Policy Initiative(s) none
Policy Rule
{
  "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"
}