» 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

  • id - The Cache ID.

  • location - The location of the Redis Cache.

  • capacity - The size of the Redis Cache deployed.

  • family - The SKU family/pricing group used. Possible values are C (for Basic/Standard SKU family) and P (for Premium)

  • sku_name - The SKU of Redis used. Possible values are Basic, Standard and Premium.

  • enable_non_ssl_port - Whether the SSL port is enabled.

  • minimum_tls_version - The minimum TLS version.

  • patch_schedule - A list of patch_schedule blocks as defined below - only available for Premium SKU's.

  • private_static_ip_address The Static IP Address assigned to the Redis Cache when hosted inside the Virtual Network.

  • hostname - The Hostname of the Redis Instance

  • ssl_port - The SSL Port of the Redis Instance

  • port - The non-SSL Port of the Redis Instance

  • primary_access_key - The Primary Access Key for the Redis Instance

  • secondary_access_key - The Secondary Access Key for the Redis Instance

  • redis_configuration - A redis_configuration block as defined below.

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: