» Data Source: azurerm_redis_cache

Use this data source to access information about an existing Redis Cache

» Example Usage

data "azurerm_redis_cache" "example" {
  name                = "myrediscache"
  resource_group_name = "redis-cache"
}

output "primary_access_key" {
  value = data.azurerm_redis_cache.example.primary_access_key
}

output "hostname" {
  value = data.azurerm_redis_cache.example.hostname
}

» Argument Reference

  • name - The name of the Redis cache

  • resource_group_name - The name of the resource group the Redis cache instance is located in.

» Attribute Reference


A patch_schedule block supports the following (Requires Premium SKU's, attempting to access this value on Basic or Standard SKU's will result in an error):


A redis_configuration block exports the following:

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Redis Cache.