-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RDP Backup on Redis Cache is enable by default in Standard SKU #21967
Comments
I also reproduced this problem with the following simple tf file: Steps to Reproduce
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "test" {
name = "test-21967"
location = "japaneast"
}
resource "azurerm_redis_cache" "test" {
name = "test-21967"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
capacity = 2
family = "C"
sku_name = "Basic"
redis_configuration {
maxmemory_policy = "volatile-lru"
}
}
--- main.tf.1 2023-05-31 13:57:53.114561425 +0900
+++ main.tf 2023-05-31 13:58:02.148012167 +0900
@@ -16,7 +16,7 @@
sku_name = "Basic"
redis_configuration {
- maxmemory_policy = "volatile-lru"
+ maxmemory_policy = "allkeys-lru"
}
}
|
It looks v, valExists := d.GetOkExists("redis_configuration.0.rdb_backup_enabled") will always get a value of type bool and passed to service every time. |
any update sir @xuzhang3 ? |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Every changes on redis_cache using Terraform is forcing enable "rdp backup" on redis cache in everyone sku. This change to enable rdp backup is set like false as to force the solve issues, but this error still persistining.
Terraform Version
1.0.0
AzureRM Provider Version
3.58.0
Affected Resource(s)/Data Source(s)
azurerm_redis_cache
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Terraform will perform the following actions:
module.redis.azurerm_redis_cache.redisCachePrimary will be updated in-place
~ resource "azurerm_redis_cache" "redisCachePrimary" {
id = "/subscriptions/xxxxxxxxxxxxxxxxxxx/resourceGroups/XXXXXXXXXX/providers/Microsoft.Cache/redis/redis-instance-primary-stg"
name = "redis-instance-primary-stg"
tags = {}
# (21 unchanged attributes hidden)
Plan: 0 to add, 1 to change, 0 to destroy.
Actual Behaviour
module.redis.azurerm_redis_cache.redisCachePrimary: Modifying... [id=/subscriptions/xxxxxxxxxxxxxxxxxxx/resourceGroups/XXXXXXXXXX/providers/Microsoft.Cache/redis/redis-instance-primary-stg]
╷
│ Error: updating Redi (Subscription: "xxxxxxxxxxxxxxxxxxx"
│ Resource Group Name: "XXXXXXXXXX"
│ Redis Name: "redis-instance-primary-stg"): unexpected status 400 with error: BadRequest: Feature properties.redisConfiguration.rdb-backup-enabled requires a Premium sku to be set.
│ RequestID=80e25fdd-5b3c-40df-84b4-8af698fde869
│
│ with module.redis.azurerm_redis_cache.redisCachePrimary,
│ on .terraform/modules/redis/modules/azure-redis-cache/main.tf line 1, in resource "azurerm_redis_cache" "redisCachePrimary":
│ 1: resource "azurerm_redis_cache" "redisCachePrimary" {
│
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: