diff --git a/docs/reference/deploy.network.json b/docs/reference/deploy.network.json index b3bc00d..82ba367 100644 --- a/docs/reference/deploy.network.json +++ b/docs/reference/deploy.network.json @@ -54,7 +54,8 @@ "privatelink.cognitiveservices.azure.com", "privatelink.search.windows.net", "privatelink.redis.cache.windows.net", - "privatelink.westeurope.batch.azure.com" + "privatelink.westeurope.batch.azure.com", + "westeurope.privatelink.redisenterprise.cache.azure.net" ] }, "resources": [ diff --git a/infra/Policies/Cache/params.policyDefinition.Deny-Cache-Enterprise.json b/infra/Policies/Cache/params.policyDefinition.Deny-Cache-Enterprise.json new file mode 100644 index 0000000..b343289 --- /dev/null +++ b/infra/Policies/Cache/params.policyDefinition.Deny-Cache-Enterprise.json @@ -0,0 +1,41 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "policyName": { + "value": "Deny-Cache-Enterprise" + }, + "policyDescription": { + "value": "Denies redis enterprise cache (no alias available)." + }, + "policyMode": { + "value": "All" + }, + "policyParameters": { + "value": {} + }, + "policyDefinition": { + "value": { + "if": { + "allOf": [ + { + "field": "type", + "equals": "Microsoft.Cache/redisEnterprise" + } + ] + }, + "then": { + "effect": "Deny" + } + } + }, + "policyMetadata": { + "value": { + "version": "1.0.0", + "category": "Cache", + "preview": false, + "deprecated": false + } + } + } +} \ No newline at end of file diff --git a/infra/Policies/Cache/params.policyDefinition.Deny-Cache-Sku.json b/infra/Policies/Cache/params.policyDefinition.Deny-Cache-Sku.json index 962c83d..218fe9e 100644 --- a/infra/Policies/Cache/params.policyDefinition.Deny-Cache-Sku.json +++ b/infra/Policies/Cache/params.policyDefinition.Deny-Cache-Sku.json @@ -30,13 +30,6 @@ "Basic", "Standard", "Premium" - // "EnterpriseFlash_F300", - // "EnterpriseFlash_F700", - // "EnterpriseFlash_F1500", - // "Enterprise_E10", - // "Enterprise_E20", - // "Enterprise_E50", - // "Enterprise_E100" ] }, { @@ -44,12 +37,12 @@ "notIn": [ "C", "P" - // "" ] }, { "field": "Microsoft.Cache/Redis/sku.capacity", "notIn": [ + 0, 1, 2, 3,