{
  "if": {
    "allOf": [
      {
        "field": "type",
        "equals": "Microsoft.DocumentDB/databaseAccounts"
      },
      {
        "anyOf": [
          {
            "field": "Microsoft.DocumentDB/databaseAccounts/isVirtualNetworkFilterEnabled",
            "exists": "false"
          },
          {
            "field": "Microsoft.DocumentDB/databaseAccounts/isVirtualNetworkFilterEnabled",
            "equals": "false"
          }
        ]
      }
    ]
  },
  "then": {
    "effect": "deny"
  }
}