Skip to content

Commit

Permalink
azurerm_redis_cache - Remove `data_persistence_authentication_metho…
Browse files Browse the repository at this point in the history
…d` default value (#27069)

* remove data_persistence_authentication_method default value

* update test case
  • Loading branch information
xuzhang3 committed Aug 20, 2024
1 parent 09406af commit f0fe0ec
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion internal/services/redis/redis_cache_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ func resourceRedisCache() *pluginsdk.Resource {
"data_persistence_authentication_method": {
Type: pluginsdk.TypeString,
Optional: true,
Default: "SAS",
ValidateFunc: validation.StringInSlice([]string{
"SAS",
"ManagedIdentity",
Expand Down
2 changes: 1 addition & 1 deletion internal/services/redis/redis_cache_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ resource "azurerm_redis_cache" "test" {
name = "acctestRedis-%d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
capacity = 1
capacity = 3
family = "P"
sku_name = "Premium"
non_ssl_port_enabled = false
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/redis_cache.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ redis_configuration {
* `maxmemory_delta` - (Optional) The max-memory delta for this Redis instance. Defaults are shown below.
* `maxmemory_policy` - (Optional) How Redis will select what to remove when `maxmemory` is reached. Defaults to `volatile-lru`.

* `data_persistence_authentication_method` - (Optional) Preferred auth method to communicate to storage account used for data persistence. Possible values are `SAS` and `ManagedIdentity`. Defaults to `SAS`.
* `data_persistence_authentication_method` - (Optional) Preferred auth method to communicate to storage account used for data persistence. Possible values are `SAS` and `ManagedIdentity`.

* `maxfragmentationmemory_reserved` - (Optional) Value in megabytes reserved to accommodate for memory fragmentation. Defaults are shown below.

Expand Down

0 comments on commit f0fe0ec

Please sign in to comment.