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

Azure Policy

Azure Cache for Redis should reside within a virtual network

Policy DisplayName Azure Cache for Redis should reside within a virtual network
Policy Id 7d092e0a-7acd-40d2-a975-dca21cae48c4
Policy Category Cache
Policy Description This policy audits whether the Azure Cache for Redis resource has a non-public endpoint by being deployed into a virtual network.
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-05-21 16:06:38 add: Policy 7d092e0a-7acd-40d2-a975-dca21cae48c4
Used in Policy Initiative(s) none
Policy Rule
{
  "properties": {
    "displayName": "Azure Cache for Redis should reside within a virtual network",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "This policy audits whether the Azure Cache for Redis resource has a non-public endpoint by being deployed into a virtual network.",
    "metadata": {
      "version": "1.0.0",
      "category": "Cache"
    },
    "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.Cache/redis"
          },
          {
            "field": "Microsoft.Cache/Redis/subnetId",
            "exists": "false"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/7d092e0a-7acd-40d2-a975-dca21cae48c4",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "7d092e0a-7acd-40d2-a975-dca21cae48c4"
}