hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.52k stars 4.6k forks source link

Support for Enterprise SKUs for Azure Redis Service #27080

Open denisp13 opened 4 weeks ago

denisp13 commented 4 weeks ago

Is there an existing issue for this?

Community Note

Description

As per documentation , Azure Cloud supports now Enterprise Redis SKU , allowing Redis features like Search, JSON, Vector similarity search, etc https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-whats-new#enterprise-tier-e1-preview-sku

It seems to be not possible to create such SKU with the current Azurerm provider , the plan is running thru but the apply is failing

New or Affected Resource(s)/Data Source(s)

~> 3.107.0

Potential Terraform Configuration

resource "azurerm_redis_cache" "example" {
  name                = "example-cache"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  capacity            = 1
  family              = "E1"
  sku_name            = "Enterprise"
  enable_non_ssl_port = false
  minimum_tls_version = "1.2"

  redis_configuration {
  }
}

References

No response

KL2808 commented 3 weeks ago

Here is a screenshot of the error message and the sku in azure:

image image
BosBer commented 3 weeks ago

This should be implemented in azurerm_redis_enterprise_cluster instead of azurerm_redis_cache

Potential Terraform Configuration

resource "azurerm_redis_enterprise_cluster" "redis" {
  name                = "example-cache"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  sku_name            = "Enterprise_E1-1"
}