From f0418f06ef0d25329bd7786a5f0ba72aba4f4603 Mon Sep 17 00:00:00 2001 From: Vladimir Lazarenko Date: Fri, 23 Feb 2024 21:29:37 +0100 Subject: [PATCH] `azurerm_redis_cache`: Allow AAD auth for all SKUs Fixes #24796 --- internal/services/redis/redis_cache_resource.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/internal/services/redis/redis_cache_resource.go b/internal/services/redis/redis_cache_resource.go index fca201b77852..ab5094beacbc 100644 --- a/internal/services/redis/redis_cache_resource.go +++ b/internal/services/redis/redis_cache_resource.go @@ -849,14 +849,7 @@ func expandRedisConfiguration(d *pluginsdk.ResourceData) (*redis.RedisCommonProp v, valExists := d.GetOkExists("redis_configuration.0.active_directory_authentication_enabled") if valExists { entraEnabled := v.(bool) - - // active_directory_authentication_enabled is available when SKU is Premium - if strings.EqualFold(skuName, string(redis.SkuNamePremium)) { - - output.AadEnabled = utils.String(strconv.FormatBool(entraEnabled)) - } else if entraEnabled && !strings.EqualFold(skuName, string(redis.SkuNamePremium)) { - return nil, fmt.Errorf("The `active_directory_authentication_enabled` property requires a `Premium` sku to be set") - } + output.AadEnabled = utils.String(strconv.FormatBool(entraEnabled)) } // RDB Backup