From 62309d4786af7f5f685c0a8fbc7df35bc6a42ad5 Mon Sep 17 00:00:00 2001 From: Vladimir Lazarenko Date: Mon, 26 Feb 2024 22:12:00 +0100 Subject: [PATCH] `azurerm_redis_cache`: Allow AAD auth for all SKUs (#25006) 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 fca201b77852c..ab5094beacbcc 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