We recommend using Azure Native.
azure.redis.Cache
Explore with Pulumi AI
Manages a Redis Cache.
Note: Redis version 4 is being retired and no longer supports creating new instances. Version 4 will be removed in a future release. Redis Version 4 Retirement
Example Usage
This example provisions a Standard Redis Cache.
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
// NOTE: the Name used for Redis needs to be globally unique
const exampleCache = new azure.redis.Cache("example", {
    name: "example-cache",
    location: example.location,
    resourceGroupName: example.name,
    capacity: 2,
    family: "C",
    skuName: "Standard",
    nonSslPortEnabled: false,
    minimumTlsVersion: "1.2",
    redisConfiguration: {},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
# NOTE: the Name used for Redis needs to be globally unique
example_cache = azure.redis.Cache("example",
    name="example-cache",
    location=example.location,
    resource_group_name=example.name,
    capacity=2,
    family="C",
    sku_name="Standard",
    non_ssl_port_enabled=False,
    minimum_tls_version="1.2",
    redis_configuration={})
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/redis"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		// NOTE: the Name used for Redis needs to be globally unique
		_, err = redis.NewCache(ctx, "example", &redis.CacheArgs{
			Name:               pulumi.String("example-cache"),
			Location:           example.Location,
			ResourceGroupName:  example.Name,
			Capacity:           pulumi.Int(2),
			Family:             pulumi.String("C"),
			SkuName:            pulumi.String("Standard"),
			NonSslPortEnabled:  pulumi.Bool(false),
			MinimumTlsVersion:  pulumi.String("1.2"),
			RedisConfiguration: &redis.CacheRedisConfigurationArgs{},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    // NOTE: the Name used for Redis needs to be globally unique
    var exampleCache = new Azure.Redis.Cache("example", new()
    {
        Name = "example-cache",
        Location = example.Location,
        ResourceGroupName = example.Name,
        Capacity = 2,
        Family = "C",
        SkuName = "Standard",
        NonSslPortEnabled = false,
        MinimumTlsVersion = "1.2",
        RedisConfiguration = null,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.redis.Cache;
import com.pulumi.azure.redis.CacheArgs;
import com.pulumi.azure.redis.inputs.CacheRedisConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        // NOTE: the Name used for Redis needs to be globally unique
        var exampleCache = new Cache("exampleCache", CacheArgs.builder()
            .name("example-cache")
            .location(example.location())
            .resourceGroupName(example.name())
            .capacity(2)
            .family("C")
            .skuName("Standard")
            .nonSslPortEnabled(false)
            .minimumTlsVersion("1.2")
            .redisConfiguration()
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  # NOTE: the Name used for Redis needs to be globally unique
  exampleCache:
    type: azure:redis:Cache
    name: example
    properties:
      name: example-cache
      location: ${example.location}
      resourceGroupName: ${example.name}
      capacity: 2
      family: C
      skuName: Standard
      nonSslPortEnabled: false
      minimumTlsVersion: '1.2'
      redisConfiguration: {}
Relevant Links
Create Cache Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cache(name: string, args: CacheArgs, opts?: CustomResourceOptions);@overload
def Cache(resource_name: str,
          args: CacheArgs,
          opts: Optional[ResourceOptions] = None)
@overload
def Cache(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          resource_group_name: Optional[str] = None,
          capacity: Optional[int] = None,
          family: Optional[str] = None,
          sku_name: Optional[str] = None,
          minimum_tls_version: Optional[str] = None,
          replicas_per_master: Optional[int] = None,
          name: Optional[str] = None,
          non_ssl_port_enabled: Optional[bool] = None,
          patch_schedules: Optional[Sequence[CachePatchScheduleArgs]] = None,
          private_static_ip_address: Optional[str] = None,
          public_network_access_enabled: Optional[bool] = None,
          redis_configuration: Optional[CacheRedisConfigurationArgs] = None,
          redis_version: Optional[str] = None,
          access_keys_authentication_enabled: Optional[bool] = None,
          replicas_per_primary: Optional[int] = None,
          location: Optional[str] = None,
          shard_count: Optional[int] = None,
          identity: Optional[CacheIdentityArgs] = None,
          subnet_id: Optional[str] = None,
          tags: Optional[Mapping[str, str]] = None,
          tenant_settings: Optional[Mapping[str, str]] = None,
          zones: Optional[Sequence[str]] = None)func NewCache(ctx *Context, name string, args CacheArgs, opts ...ResourceOption) (*Cache, error)public Cache(string name, CacheArgs args, CustomResourceOptions? opts = null)type: azure:redis:Cache
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CacheArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CacheArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CacheArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CacheArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CacheArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azureCacheResource = new Azure.Redis.Cache("azureCacheResource", new()
{
    ResourceGroupName = "string",
    Capacity = 0,
    Family = "string",
    SkuName = "string",
    MinimumTlsVersion = "string",
    ReplicasPerMaster = 0,
    Name = "string",
    NonSslPortEnabled = false,
    PatchSchedules = new[]
    {
        new Azure.Redis.Inputs.CachePatchScheduleArgs
        {
            DayOfWeek = "string",
            MaintenanceWindow = "string",
            StartHourUtc = 0,
        },
    },
    PrivateStaticIpAddress = "string",
    PublicNetworkAccessEnabled = false,
    RedisConfiguration = new Azure.Redis.Inputs.CacheRedisConfigurationArgs
    {
        ActiveDirectoryAuthenticationEnabled = false,
        AofBackupEnabled = false,
        AofStorageConnectionString0 = "string",
        AofStorageConnectionString1 = "string",
        AuthenticationEnabled = false,
        DataPersistenceAuthenticationMethod = "string",
        Maxclients = 0,
        MaxfragmentationmemoryReserved = 0,
        MaxmemoryDelta = 0,
        MaxmemoryPolicy = "string",
        MaxmemoryReserved = 0,
        NotifyKeyspaceEvents = "string",
        RdbBackupEnabled = false,
        RdbBackupFrequency = 0,
        RdbBackupMaxSnapshotCount = 0,
        RdbStorageConnectionString = "string",
        StorageAccountSubscriptionId = "string",
    },
    RedisVersion = "string",
    AccessKeysAuthenticationEnabled = false,
    ReplicasPerPrimary = 0,
    Location = "string",
    ShardCount = 0,
    Identity = new Azure.Redis.Inputs.CacheIdentityArgs
    {
        Type = "string",
        IdentityIds = new[]
        {
            "string",
        },
        PrincipalId = "string",
        TenantId = "string",
    },
    SubnetId = "string",
    Tags = 
    {
        { "string", "string" },
    },
    TenantSettings = 
    {
        { "string", "string" },
    },
    Zones = new[]
    {
        "string",
    },
});
example, err := redis.NewCache(ctx, "azureCacheResource", &redis.CacheArgs{
	ResourceGroupName: pulumi.String("string"),
	Capacity:          pulumi.Int(0),
	Family:            pulumi.String("string"),
	SkuName:           pulumi.String("string"),
	MinimumTlsVersion: pulumi.String("string"),
	ReplicasPerMaster: pulumi.Int(0),
	Name:              pulumi.String("string"),
	NonSslPortEnabled: pulumi.Bool(false),
	PatchSchedules: redis.CachePatchScheduleArray{
		&redis.CachePatchScheduleArgs{
			DayOfWeek:         pulumi.String("string"),
			MaintenanceWindow: pulumi.String("string"),
			StartHourUtc:      pulumi.Int(0),
		},
	},
	PrivateStaticIpAddress:     pulumi.String("string"),
	PublicNetworkAccessEnabled: pulumi.Bool(false),
	RedisConfiguration: &redis.CacheRedisConfigurationArgs{
		ActiveDirectoryAuthenticationEnabled: pulumi.Bool(false),
		AofBackupEnabled:                     pulumi.Bool(false),
		AofStorageConnectionString0:          pulumi.String("string"),
		AofStorageConnectionString1:          pulumi.String("string"),
		AuthenticationEnabled:                pulumi.Bool(false),
		DataPersistenceAuthenticationMethod:  pulumi.String("string"),
		Maxclients:                           pulumi.Int(0),
		MaxfragmentationmemoryReserved:       pulumi.Int(0),
		MaxmemoryDelta:                       pulumi.Int(0),
		MaxmemoryPolicy:                      pulumi.String("string"),
		MaxmemoryReserved:                    pulumi.Int(0),
		NotifyKeyspaceEvents:                 pulumi.String("string"),
		RdbBackupEnabled:                     pulumi.Bool(false),
		RdbBackupFrequency:                   pulumi.Int(0),
		RdbBackupMaxSnapshotCount:            pulumi.Int(0),
		RdbStorageConnectionString:           pulumi.String("string"),
		StorageAccountSubscriptionId:         pulumi.String("string"),
	},
	RedisVersion:                    pulumi.String("string"),
	AccessKeysAuthenticationEnabled: pulumi.Bool(false),
	ReplicasPerPrimary:              pulumi.Int(0),
	Location:                        pulumi.String("string"),
	ShardCount:                      pulumi.Int(0),
	Identity: &redis.CacheIdentityArgs{
		Type: pulumi.String("string"),
		IdentityIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		PrincipalId: pulumi.String("string"),
		TenantId:    pulumi.String("string"),
	},
	SubnetId: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TenantSettings: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Zones: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var azureCacheResource = new Cache("azureCacheResource", CacheArgs.builder()
    .resourceGroupName("string")
    .capacity(0)
    .family("string")
    .skuName("string")
    .minimumTlsVersion("string")
    .replicasPerMaster(0)
    .name("string")
    .nonSslPortEnabled(false)
    .patchSchedules(CachePatchScheduleArgs.builder()
        .dayOfWeek("string")
        .maintenanceWindow("string")
        .startHourUtc(0)
        .build())
    .privateStaticIpAddress("string")
    .publicNetworkAccessEnabled(false)
    .redisConfiguration(CacheRedisConfigurationArgs.builder()
        .activeDirectoryAuthenticationEnabled(false)
        .aofBackupEnabled(false)
        .aofStorageConnectionString0("string")
        .aofStorageConnectionString1("string")
        .authenticationEnabled(false)
        .dataPersistenceAuthenticationMethod("string")
        .maxclients(0)
        .maxfragmentationmemoryReserved(0)
        .maxmemoryDelta(0)
        .maxmemoryPolicy("string")
        .maxmemoryReserved(0)
        .notifyKeyspaceEvents("string")
        .rdbBackupEnabled(false)
        .rdbBackupFrequency(0)
        .rdbBackupMaxSnapshotCount(0)
        .rdbStorageConnectionString("string")
        .storageAccountSubscriptionId("string")
        .build())
    .redisVersion("string")
    .accessKeysAuthenticationEnabled(false)
    .replicasPerPrimary(0)
    .location("string")
    .shardCount(0)
    .identity(CacheIdentityArgs.builder()
        .type("string")
        .identityIds("string")
        .principalId("string")
        .tenantId("string")
        .build())
    .subnetId("string")
    .tags(Map.of("string", "string"))
    .tenantSettings(Map.of("string", "string"))
    .zones("string")
    .build());
azure_cache_resource = azure.redis.Cache("azureCacheResource",
    resource_group_name="string",
    capacity=0,
    family="string",
    sku_name="string",
    minimum_tls_version="string",
    replicas_per_master=0,
    name="string",
    non_ssl_port_enabled=False,
    patch_schedules=[{
        "day_of_week": "string",
        "maintenance_window": "string",
        "start_hour_utc": 0,
    }],
    private_static_ip_address="string",
    public_network_access_enabled=False,
    redis_configuration={
        "active_directory_authentication_enabled": False,
        "aof_backup_enabled": False,
        "aof_storage_connection_string0": "string",
        "aof_storage_connection_string1": "string",
        "authentication_enabled": False,
        "data_persistence_authentication_method": "string",
        "maxclients": 0,
        "maxfragmentationmemory_reserved": 0,
        "maxmemory_delta": 0,
        "maxmemory_policy": "string",
        "maxmemory_reserved": 0,
        "notify_keyspace_events": "string",
        "rdb_backup_enabled": False,
        "rdb_backup_frequency": 0,
        "rdb_backup_max_snapshot_count": 0,
        "rdb_storage_connection_string": "string",
        "storage_account_subscription_id": "string",
    },
    redis_version="string",
    access_keys_authentication_enabled=False,
    replicas_per_primary=0,
    location="string",
    shard_count=0,
    identity={
        "type": "string",
        "identity_ids": ["string"],
        "principal_id": "string",
        "tenant_id": "string",
    },
    subnet_id="string",
    tags={
        "string": "string",
    },
    tenant_settings={
        "string": "string",
    },
    zones=["string"])
const azureCacheResource = new azure.redis.Cache("azureCacheResource", {
    resourceGroupName: "string",
    capacity: 0,
    family: "string",
    skuName: "string",
    minimumTlsVersion: "string",
    replicasPerMaster: 0,
    name: "string",
    nonSslPortEnabled: false,
    patchSchedules: [{
        dayOfWeek: "string",
        maintenanceWindow: "string",
        startHourUtc: 0,
    }],
    privateStaticIpAddress: "string",
    publicNetworkAccessEnabled: false,
    redisConfiguration: {
        activeDirectoryAuthenticationEnabled: false,
        aofBackupEnabled: false,
        aofStorageConnectionString0: "string",
        aofStorageConnectionString1: "string",
        authenticationEnabled: false,
        dataPersistenceAuthenticationMethod: "string",
        maxclients: 0,
        maxfragmentationmemoryReserved: 0,
        maxmemoryDelta: 0,
        maxmemoryPolicy: "string",
        maxmemoryReserved: 0,
        notifyKeyspaceEvents: "string",
        rdbBackupEnabled: false,
        rdbBackupFrequency: 0,
        rdbBackupMaxSnapshotCount: 0,
        rdbStorageConnectionString: "string",
        storageAccountSubscriptionId: "string",
    },
    redisVersion: "string",
    accessKeysAuthenticationEnabled: false,
    replicasPerPrimary: 0,
    location: "string",
    shardCount: 0,
    identity: {
        type: "string",
        identityIds: ["string"],
        principalId: "string",
        tenantId: "string",
    },
    subnetId: "string",
    tags: {
        string: "string",
    },
    tenantSettings: {
        string: "string",
    },
    zones: ["string"],
});
type: azure:redis:Cache
properties:
    accessKeysAuthenticationEnabled: false
    capacity: 0
    family: string
    identity:
        identityIds:
            - string
        principalId: string
        tenantId: string
        type: string
    location: string
    minimumTlsVersion: string
    name: string
    nonSslPortEnabled: false
    patchSchedules:
        - dayOfWeek: string
          maintenanceWindow: string
          startHourUtc: 0
    privateStaticIpAddress: string
    publicNetworkAccessEnabled: false
    redisConfiguration:
        activeDirectoryAuthenticationEnabled: false
        aofBackupEnabled: false
        aofStorageConnectionString0: string
        aofStorageConnectionString1: string
        authenticationEnabled: false
        dataPersistenceAuthenticationMethod: string
        maxclients: 0
        maxfragmentationmemoryReserved: 0
        maxmemoryDelta: 0
        maxmemoryPolicy: string
        maxmemoryReserved: 0
        notifyKeyspaceEvents: string
        rdbBackupEnabled: false
        rdbBackupFrequency: 0
        rdbBackupMaxSnapshotCount: 0
        rdbStorageConnectionString: string
        storageAccountSubscriptionId: string
    redisVersion: string
    replicasPerMaster: 0
    replicasPerPrimary: 0
    resourceGroupName: string
    shardCount: 0
    skuName: string
    subnetId: string
    tags:
        string: string
    tenantSettings:
        string: string
    zones:
        - string
Cache Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Cache resource accepts the following input properties:
- Capacity int
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- Family string
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- ResourceGroup stringName 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- SkuName string
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- AccessKeys boolAuthentication Enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- Identity
CacheIdentity 
- An identityblock as defined below.
- Location string
- The location of the resource group. Changing this forces a new resource to be created.
- MinimumTls stringVersion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- Name string
- The name of the Redis instance. Changing this forces a new resource to be created.
- NonSsl boolPort Enabled 
- Enable the non-SSL port (6379) - disabled by default.
- PatchSchedules List<CachePatch Schedule> 
- A list of patch_scheduleblocks as defined below.
- PrivateStatic stringIp Address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- RedisConfiguration CacheRedis Configuration 
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- RedisVersion string
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- ReplicasPer intMaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- ReplicasPer intPrimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- int
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- SubnetId string
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TenantSettings Dictionary<string, string>
- A mapping of tenant settings to assign to the resource.
- Zones List<string>
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
- Capacity int
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- Family string
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- ResourceGroup stringName 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- SkuName string
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- AccessKeys boolAuthentication Enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- Identity
CacheIdentity Args 
- An identityblock as defined below.
- Location string
- The location of the resource group. Changing this forces a new resource to be created.
- MinimumTls stringVersion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- Name string
- The name of the Redis instance. Changing this forces a new resource to be created.
- NonSsl boolPort Enabled 
- Enable the non-SSL port (6379) - disabled by default.
- PatchSchedules []CachePatch Schedule Args 
- A list of patch_scheduleblocks as defined below.
- PrivateStatic stringIp Address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- RedisConfiguration CacheRedis Configuration Args 
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- RedisVersion string
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- ReplicasPer intMaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- ReplicasPer intPrimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- int
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- SubnetId string
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- TenantSettings map[string]string
- A mapping of tenant settings to assign to the resource.
- Zones []string
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
- capacity Integer
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- family String
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- resourceGroup StringName 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- skuName String
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- accessKeys BooleanAuthentication Enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- identity
CacheIdentity 
- An identityblock as defined below.
- location String
- The location of the resource group. Changing this forces a new resource to be created.
- minimumTls StringVersion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name String
- The name of the Redis instance. Changing this forces a new resource to be created.
- nonSsl BooleanPort Enabled 
- Enable the non-SSL port (6379) - disabled by default.
- patchSchedules List<CachePatch Schedule> 
- A list of patch_scheduleblocks as defined below.
- privateStatic StringIp Address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- redisConfiguration CacheRedis Configuration 
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- redisVersion String
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- replicasPer IntegerMaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- replicasPer IntegerPrimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- Integer
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- subnetId String
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- tenantSettings Map<String,String>
- A mapping of tenant settings to assign to the resource.
- zones List<String>
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
- capacity number
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- family string
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- resourceGroup stringName 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- skuName string
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- accessKeys booleanAuthentication Enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- identity
CacheIdentity 
- An identityblock as defined below.
- location string
- The location of the resource group. Changing this forces a new resource to be created.
- minimumTls stringVersion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name string
- The name of the Redis instance. Changing this forces a new resource to be created.
- nonSsl booleanPort Enabled 
- Enable the non-SSL port (6379) - disabled by default.
- patchSchedules CachePatch Schedule[] 
- A list of patch_scheduleblocks as defined below.
- privateStatic stringIp Address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- publicNetwork booleanAccess Enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- redisConfiguration CacheRedis Configuration 
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- redisVersion string
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- replicasPer numberMaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- replicasPer numberPrimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- number
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- subnetId string
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- tenantSettings {[key: string]: string}
- A mapping of tenant settings to assign to the resource.
- zones string[]
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
- capacity int
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- family str
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- resource_group_ strname 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- sku_name str
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- access_keys_ boolauthentication_ enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- identity
CacheIdentity Args 
- An identityblock as defined below.
- location str
- The location of the resource group. Changing this forces a new resource to be created.
- minimum_tls_ strversion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name str
- The name of the Redis instance. Changing this forces a new resource to be created.
- non_ssl_ boolport_ enabled 
- Enable the non-SSL port (6379) - disabled by default.
- patch_schedules Sequence[CachePatch Schedule Args] 
- A list of patch_scheduleblocks as defined below.
- private_static_ strip_ address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- public_network_ boolaccess_ enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- redis_configuration CacheRedis Configuration Args 
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- redis_version str
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- replicas_per_ intmaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- replicas_per_ intprimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- int
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- subnet_id str
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- tenant_settings Mapping[str, str]
- A mapping of tenant settings to assign to the resource.
- zones Sequence[str]
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
- capacity Number
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- family String
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- resourceGroup StringName 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- skuName String
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- accessKeys BooleanAuthentication Enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- identity Property Map
- An identityblock as defined below.
- location String
- The location of the resource group. Changing this forces a new resource to be created.
- minimumTls StringVersion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name String
- The name of the Redis instance. Changing this forces a new resource to be created.
- nonSsl BooleanPort Enabled 
- Enable the non-SSL port (6379) - disabled by default.
- patchSchedules List<Property Map>
- A list of patch_scheduleblocks as defined below.
- privateStatic StringIp Address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- redisConfiguration Property Map
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- redisVersion String
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- replicasPer NumberMaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- replicasPer NumberPrimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- Number
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- subnetId String
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
- tenantSettings Map<String>
- A mapping of tenant settings to assign to the resource.
- zones List<String>
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
Outputs
All input properties are implicitly available as output properties. Additionally, the Cache resource produces the following output properties:
- Hostname string
- The Hostname of the Redis Instance
- Id string
- The provider-assigned unique ID for this managed resource.
- Port int
- The non-SSL Port of the Redis Instance
- PrimaryAccess stringKey 
- The Primary Access Key for the Redis Instance
- PrimaryConnection stringString 
- The primary connection string of the Redis Instance.
- SecondaryAccess stringKey 
- The Secondary Access Key for the Redis Instance
- SecondaryConnection stringString 
- The secondary connection string of the Redis Instance.
- SslPort int
- The SSL Port of the Redis Instance
- Hostname string
- The Hostname of the Redis Instance
- Id string
- The provider-assigned unique ID for this managed resource.
- Port int
- The non-SSL Port of the Redis Instance
- PrimaryAccess stringKey 
- The Primary Access Key for the Redis Instance
- PrimaryConnection stringString 
- The primary connection string of the Redis Instance.
- SecondaryAccess stringKey 
- The Secondary Access Key for the Redis Instance
- SecondaryConnection stringString 
- The secondary connection string of the Redis Instance.
- SslPort int
- The SSL Port of the Redis Instance
- hostname String
- The Hostname of the Redis Instance
- id String
- The provider-assigned unique ID for this managed resource.
- port Integer
- The non-SSL Port of the Redis Instance
- primaryAccess StringKey 
- The Primary Access Key for the Redis Instance
- primaryConnection StringString 
- The primary connection string of the Redis Instance.
- secondaryAccess StringKey 
- The Secondary Access Key for the Redis Instance
- secondaryConnection StringString 
- The secondary connection string of the Redis Instance.
- sslPort Integer
- The SSL Port of the Redis Instance
- hostname string
- The Hostname of the Redis Instance
- id string
- The provider-assigned unique ID for this managed resource.
- port number
- The non-SSL Port of the Redis Instance
- primaryAccess stringKey 
- The Primary Access Key for the Redis Instance
- primaryConnection stringString 
- The primary connection string of the Redis Instance.
- secondaryAccess stringKey 
- The Secondary Access Key for the Redis Instance
- secondaryConnection stringString 
- The secondary connection string of the Redis Instance.
- sslPort number
- The SSL Port of the Redis Instance
- hostname str
- The Hostname of the Redis Instance
- id str
- The provider-assigned unique ID for this managed resource.
- port int
- The non-SSL Port of the Redis Instance
- primary_access_ strkey 
- The Primary Access Key for the Redis Instance
- primary_connection_ strstring 
- The primary connection string of the Redis Instance.
- secondary_access_ strkey 
- The Secondary Access Key for the Redis Instance
- secondary_connection_ strstring 
- The secondary connection string of the Redis Instance.
- ssl_port int
- The SSL Port of the Redis Instance
- hostname String
- The Hostname of the Redis Instance
- id String
- The provider-assigned unique ID for this managed resource.
- port Number
- The non-SSL Port of the Redis Instance
- primaryAccess StringKey 
- The Primary Access Key for the Redis Instance
- primaryConnection StringString 
- The primary connection string of the Redis Instance.
- secondaryAccess StringKey 
- The Secondary Access Key for the Redis Instance
- secondaryConnection StringString 
- The secondary connection string of the Redis Instance.
- sslPort Number
- The SSL Port of the Redis Instance
Look up Existing Cache Resource
Get an existing Cache resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CacheState, opts?: CustomResourceOptions): Cache@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_keys_authentication_enabled: Optional[bool] = None,
        capacity: Optional[int] = None,
        family: Optional[str] = None,
        hostname: Optional[str] = None,
        identity: Optional[CacheIdentityArgs] = None,
        location: Optional[str] = None,
        minimum_tls_version: Optional[str] = None,
        name: Optional[str] = None,
        non_ssl_port_enabled: Optional[bool] = None,
        patch_schedules: Optional[Sequence[CachePatchScheduleArgs]] = None,
        port: Optional[int] = None,
        primary_access_key: Optional[str] = None,
        primary_connection_string: Optional[str] = None,
        private_static_ip_address: Optional[str] = None,
        public_network_access_enabled: Optional[bool] = None,
        redis_configuration: Optional[CacheRedisConfigurationArgs] = None,
        redis_version: Optional[str] = None,
        replicas_per_master: Optional[int] = None,
        replicas_per_primary: Optional[int] = None,
        resource_group_name: Optional[str] = None,
        secondary_access_key: Optional[str] = None,
        secondary_connection_string: Optional[str] = None,
        shard_count: Optional[int] = None,
        sku_name: Optional[str] = None,
        ssl_port: Optional[int] = None,
        subnet_id: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tenant_settings: Optional[Mapping[str, str]] = None,
        zones: Optional[Sequence[str]] = None) -> Cachefunc GetCache(ctx *Context, name string, id IDInput, state *CacheState, opts ...ResourceOption) (*Cache, error)public static Cache Get(string name, Input<string> id, CacheState? state, CustomResourceOptions? opts = null)public static Cache get(String name, Output<String> id, CacheState state, CustomResourceOptions options)resources:  _:    type: azure:redis:Cache    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AccessKeys boolAuthentication Enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- Capacity int
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- Family string
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- Hostname string
- The Hostname of the Redis Instance
- Identity
CacheIdentity 
- An identityblock as defined below.
- Location string
- The location of the resource group. Changing this forces a new resource to be created.
- MinimumTls stringVersion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- Name string
- The name of the Redis instance. Changing this forces a new resource to be created.
- NonSsl boolPort Enabled 
- Enable the non-SSL port (6379) - disabled by default.
- PatchSchedules List<CachePatch Schedule> 
- A list of patch_scheduleblocks as defined below.
- Port int
- The non-SSL Port of the Redis Instance
- PrimaryAccess stringKey 
- The Primary Access Key for the Redis Instance
- PrimaryConnection stringString 
- The primary connection string of the Redis Instance.
- PrivateStatic stringIp Address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- RedisConfiguration CacheRedis Configuration 
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- RedisVersion string
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- ReplicasPer intMaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- ReplicasPer intPrimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- ResourceGroup stringName 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- SecondaryAccess stringKey 
- The Secondary Access Key for the Redis Instance
- SecondaryConnection stringString 
- The secondary connection string of the Redis Instance.
- ShardCount int
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- SkuName string
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- SslPort int
- The SSL Port of the Redis Instance
- SubnetId string
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TenantSettings Dictionary<string, string>
- A mapping of tenant settings to assign to the resource.
- Zones List<string>
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
- AccessKeys boolAuthentication Enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- Capacity int
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- Family string
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- Hostname string
- The Hostname of the Redis Instance
- Identity
CacheIdentity Args 
- An identityblock as defined below.
- Location string
- The location of the resource group. Changing this forces a new resource to be created.
- MinimumTls stringVersion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- Name string
- The name of the Redis instance. Changing this forces a new resource to be created.
- NonSsl boolPort Enabled 
- Enable the non-SSL port (6379) - disabled by default.
- PatchSchedules []CachePatch Schedule Args 
- A list of patch_scheduleblocks as defined below.
- Port int
- The non-SSL Port of the Redis Instance
- PrimaryAccess stringKey 
- The Primary Access Key for the Redis Instance
- PrimaryConnection stringString 
- The primary connection string of the Redis Instance.
- PrivateStatic stringIp Address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- RedisConfiguration CacheRedis Configuration Args 
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- RedisVersion string
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- ReplicasPer intMaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- ReplicasPer intPrimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- ResourceGroup stringName 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- SecondaryAccess stringKey 
- The Secondary Access Key for the Redis Instance
- SecondaryConnection stringString 
- The secondary connection string of the Redis Instance.
- ShardCount int
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- SkuName string
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- SslPort int
- The SSL Port of the Redis Instance
- SubnetId string
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- TenantSettings map[string]string
- A mapping of tenant settings to assign to the resource.
- Zones []string
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
- accessKeys BooleanAuthentication Enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- capacity Integer
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- family String
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- hostname String
- The Hostname of the Redis Instance
- identity
CacheIdentity 
- An identityblock as defined below.
- location String
- The location of the resource group. Changing this forces a new resource to be created.
- minimumTls StringVersion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name String
- The name of the Redis instance. Changing this forces a new resource to be created.
- nonSsl BooleanPort Enabled 
- Enable the non-SSL port (6379) - disabled by default.
- patchSchedules List<CachePatch Schedule> 
- A list of patch_scheduleblocks as defined below.
- port Integer
- The non-SSL Port of the Redis Instance
- primaryAccess StringKey 
- The Primary Access Key for the Redis Instance
- primaryConnection StringString 
- The primary connection string of the Redis Instance.
- privateStatic StringIp Address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- redisConfiguration CacheRedis Configuration 
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- redisVersion String
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- replicasPer IntegerMaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- replicasPer IntegerPrimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- resourceGroup StringName 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- secondaryAccess StringKey 
- The Secondary Access Key for the Redis Instance
- secondaryConnection StringString 
- The secondary connection string of the Redis Instance.
- shardCount Integer
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- skuName String
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- sslPort Integer
- The SSL Port of the Redis Instance
- subnetId String
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- tenantSettings Map<String,String>
- A mapping of tenant settings to assign to the resource.
- zones List<String>
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
- accessKeys booleanAuthentication Enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- capacity number
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- family string
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- hostname string
- The Hostname of the Redis Instance
- identity
CacheIdentity 
- An identityblock as defined below.
- location string
- The location of the resource group. Changing this forces a new resource to be created.
- minimumTls stringVersion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name string
- The name of the Redis instance. Changing this forces a new resource to be created.
- nonSsl booleanPort Enabled 
- Enable the non-SSL port (6379) - disabled by default.
- patchSchedules CachePatch Schedule[] 
- A list of patch_scheduleblocks as defined below.
- port number
- The non-SSL Port of the Redis Instance
- primaryAccess stringKey 
- The Primary Access Key for the Redis Instance
- primaryConnection stringString 
- The primary connection string of the Redis Instance.
- privateStatic stringIp Address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- publicNetwork booleanAccess Enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- redisConfiguration CacheRedis Configuration 
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- redisVersion string
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- replicasPer numberMaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- replicasPer numberPrimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- resourceGroup stringName 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- secondaryAccess stringKey 
- The Secondary Access Key for the Redis Instance
- secondaryConnection stringString 
- The secondary connection string of the Redis Instance.
- shardCount number
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- skuName string
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- sslPort number
- The SSL Port of the Redis Instance
- subnetId string
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- tenantSettings {[key: string]: string}
- A mapping of tenant settings to assign to the resource.
- zones string[]
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
- access_keys_ boolauthentication_ enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- capacity int
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- family str
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- hostname str
- The Hostname of the Redis Instance
- identity
CacheIdentity Args 
- An identityblock as defined below.
- location str
- The location of the resource group. Changing this forces a new resource to be created.
- minimum_tls_ strversion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name str
- The name of the Redis instance. Changing this forces a new resource to be created.
- non_ssl_ boolport_ enabled 
- Enable the non-SSL port (6379) - disabled by default.
- patch_schedules Sequence[CachePatch Schedule Args] 
- A list of patch_scheduleblocks as defined below.
- port int
- The non-SSL Port of the Redis Instance
- primary_access_ strkey 
- The Primary Access Key for the Redis Instance
- primary_connection_ strstring 
- The primary connection string of the Redis Instance.
- private_static_ strip_ address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- public_network_ boolaccess_ enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- redis_configuration CacheRedis Configuration Args 
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- redis_version str
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- replicas_per_ intmaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- replicas_per_ intprimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- resource_group_ strname 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- secondary_access_ strkey 
- The Secondary Access Key for the Redis Instance
- secondary_connection_ strstring 
- The secondary connection string of the Redis Instance.
- shard_count int
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- sku_name str
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- ssl_port int
- The SSL Port of the Redis Instance
- subnet_id str
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- tenant_settings Mapping[str, str]
- A mapping of tenant settings to assign to the resource.
- zones Sequence[str]
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
- accessKeys BooleanAuthentication Enabled 
- Whether access key authentication is enabled? Defaults to true.active_directory_authentication_enabledmust be set totrueto disable access key authentication.
- capacity Number
- The size of the Redis cache to deploy. Valid values for a SKU familyof C (Basic/Standard) are0, 1, 2, 3, 4, 5, 6, and for P (Premium)familyare1, 2, 3, 4, 5.
- family String
- The SKU family/pricing group to use. Valid values are C(for Basic/Standard SKU family) andP(forPremium)
- hostname String
- The Hostname of the Redis Instance
- identity Property Map
- An identityblock as defined below.
- location String
- The location of the resource group. Changing this forces a new resource to be created.
- minimumTls StringVersion 
- The minimum TLS version. Possible values are - 1.0,- 1.1and- 1.2. Defaults to- 1.0.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name String
- The name of the Redis instance. Changing this forces a new resource to be created.
- nonSsl BooleanPort Enabled 
- Enable the non-SSL port (6379) - disabled by default.
- patchSchedules List<Property Map>
- A list of patch_scheduleblocks as defined below.
- port Number
- The non-SSL Port of the Redis Instance
- primaryAccess StringKey 
- The Primary Access Key for the Redis Instance
- primaryConnection StringString 
- The primary connection string of the Redis Instance.
- privateStatic StringIp Address 
- The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. This argument implies the use of subnet_id. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether or not public network access is allowed for this Redis Cache. truemeans this resource could be accessed by both public and private endpoint.falsemeans only private endpoint access is allowed. Defaults totrue.
- redisConfiguration Property Map
- A redis_configurationblock as defined below - with some limitations by SKU - defaults/details are shown below.
- redisVersion String
- Redis version. Only major version needed. Possible values are 4and6. Defaults to6.
- replicasPer NumberMaster 
- Amount of replicas to create per master for this Redis Cache. - Note: Configuring the number of replicas per master is only available when using the Premium SKU and cannot be used in conjunction with shards. 
- replicasPer NumberPrimary 
- Amount of replicas to create per primary for this Redis Cache. If both replicas_per_primaryandreplicas_per_masterare set, they need to be equal.
- resourceGroup StringName 
- The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created.
- secondaryAccess StringKey 
- The Secondary Access Key for the Redis Instance
- secondaryConnection StringString 
- The secondary connection string of the Redis Instance.
- shardCount Number
- Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
- skuName String
- The SKU of Redis to use. Possible values are - Basic,- Standardand- Premium.- Note Downgrading the SKU will force a new resource to be created. 
- sslPort Number
- The SSL Port of the Redis Instance
- subnetId String
- Only available when using the Premium SKU The ID of the Subnet within which the Redis Cache should be deployed. This Subnet must only contain Azure Cache for Redis instances without any other type of resources. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
- tenantSettings Map<String>
- A mapping of tenant settings to assign to the resource.
- zones List<String>
- Specifies a list of Availability Zones in which this Redis Cache should be located. Changing this forces a new Redis Cache to be created. - Please Note: Availability Zones are in Preview and only supported in several regions at this time - as such you must be opted into the Preview to use this functionality. You can opt into the Availability Zones Preview in the Azure Portal. 
Supporting Types
CacheIdentity, CacheIdentityArgs    
- Type string
- Specifies the type of Managed Service Identity that should be configured on this Redis Cluster. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- IdentityIds List<string>
- A list of User Assigned Managed Identity IDs to be assigned to this Redis Cluster. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- PrincipalId string
- TenantId string
- Type string
- Specifies the type of Managed Service Identity that should be configured on this Redis Cluster. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- IdentityIds []string
- A list of User Assigned Managed Identity IDs to be assigned to this Redis Cluster. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- PrincipalId string
- TenantId string
- type String
- Specifies the type of Managed Service Identity that should be configured on this Redis Cluster. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identityIds List<String>
- A list of User Assigned Managed Identity IDs to be assigned to this Redis Cluster. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principalId String
- tenantId String
- type string
- Specifies the type of Managed Service Identity that should be configured on this Redis Cluster. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identityIds string[]
- A list of User Assigned Managed Identity IDs to be assigned to this Redis Cluster. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principalId string
- tenantId string
- type str
- Specifies the type of Managed Service Identity that should be configured on this Redis Cluster. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identity_ids Sequence[str]
- A list of User Assigned Managed Identity IDs to be assigned to this Redis Cluster. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principal_id str
- tenant_id str
- type String
- Specifies the type of Managed Service Identity that should be configured on this Redis Cluster. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identityIds List<String>
- A list of User Assigned Managed Identity IDs to be assigned to this Redis Cluster. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principalId String
- tenantId String
CachePatchSchedule, CachePatchScheduleArgs      
- DayOf stringWeek 
- the Weekday name - possible values include Monday,Tuesday,Wednesdayetc.
- MaintenanceWindow string
- The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated. Defaults to PT5H.
- StartHour intUtc 
- the Start Hour for maintenance in UTC - possible values range from - 0 - 23.- Note: The Patch Window lasts for - 5hours from the- start_hour_utc.
- DayOf stringWeek 
- the Weekday name - possible values include Monday,Tuesday,Wednesdayetc.
- MaintenanceWindow string
- The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated. Defaults to PT5H.
- StartHour intUtc 
- the Start Hour for maintenance in UTC - possible values range from - 0 - 23.- Note: The Patch Window lasts for - 5hours from the- start_hour_utc.
- dayOf StringWeek 
- the Weekday name - possible values include Monday,Tuesday,Wednesdayetc.
- maintenanceWindow String
- The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated. Defaults to PT5H.
- startHour IntegerUtc 
- the Start Hour for maintenance in UTC - possible values range from - 0 - 23.- Note: The Patch Window lasts for - 5hours from the- start_hour_utc.
- dayOf stringWeek 
- the Weekday name - possible values include Monday,Tuesday,Wednesdayetc.
- maintenanceWindow string
- The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated. Defaults to PT5H.
- startHour numberUtc 
- the Start Hour for maintenance in UTC - possible values range from - 0 - 23.- Note: The Patch Window lasts for - 5hours from the- start_hour_utc.
- day_of_ strweek 
- the Weekday name - possible values include Monday,Tuesday,Wednesdayetc.
- maintenance_window str
- The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated. Defaults to PT5H.
- start_hour_ intutc 
- the Start Hour for maintenance in UTC - possible values range from - 0 - 23.- Note: The Patch Window lasts for - 5hours from the- start_hour_utc.
- dayOf StringWeek 
- the Weekday name - possible values include Monday,Tuesday,Wednesdayetc.
- maintenanceWindow String
- The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated. Defaults to PT5H.
- startHour NumberUtc 
- the Start Hour for maintenance in UTC - possible values range from - 0 - 23.- Note: The Patch Window lasts for - 5hours from the- start_hour_utc.
CacheRedisConfiguration, CacheRedisConfigurationArgs      
- ActiveDirectory boolAuthentication Enabled 
- Enable Microsoft Entra (AAD) authentication. Defaults to false.
- AofBackup boolEnabled 
- Enable or disable AOF persistence for this Redis Cache. Defaults to - false.- NOTE: - aof_backup_enabledcan only be set when SKU is- Premium.
- AofStorage stringConnection String0 
- First Storage Account connection string for AOF persistence.
- AofStorage stringConnection String1 
- Second Storage Account connection string for AOF persistence. - Example usage: 
- AuthenticationEnabled bool
- If set to - false, the Redis instance will be accessible without authentication. Defaults to- true.- NOTE: - authentication_enabledcan only be set to- falseif a- subnet_idis specified; and only works if there aren't existing instances within the subnet with- authentication_enabledset to- true.
- DataPersistence stringAuthentication Method 
- Preferred auth method to communicate to storage account used for data persistence. Possible values are SASandManagedIdentity.
- Maxclients int
- Returns the max number of connected clients at the same time.
- MaxfragmentationmemoryReserved int
- Value in megabytes reserved to accommodate for memory fragmentation. Defaults are shown below.
- MaxmemoryDelta int
- The max-memory delta for this Redis instance. Defaults are shown below.
- MaxmemoryPolicy string
- How Redis will select what to remove when maxmemoryis reached. Defaults tovolatile-lru.
- MaxmemoryReserved int
- Value in megabytes reserved for non-cache usage e.g. failover. Defaults are shown below.
- NotifyKeyspace stringEvents 
- Keyspace notifications allows clients to subscribe to Pub/Sub channels in order to receive events affecting the Redis data set in some way. Reference
- RdbBackup boolEnabled 
- Is Backup Enabled? Only supported on Premium SKUs. Defaults to - false.- NOTE: If - rdb_backup_enabledset to- true,- rdb_storage_connection_stringmust also be set.
- RdbBackup intFrequency 
- The Backup Frequency in Minutes. Only supported on Premium SKUs. Possible values are: 15,30,60,360,720and1440.
- RdbBackup intMax Snapshot Count 
- The maximum number of snapshots to create as a backup. Only supported for Premium SKUs.
- RdbStorage stringConnection String 
- The Connection String to the Storage Account. Only supported for Premium SKUs. In the format: - DefaultEndpointsProtocol=https;BlobEndpoint=${azurerm_storage_account.example.primary_blob_endpoint};AccountName=${azurerm_storage_account.example.name};AccountKey=${azurerm_storage_account.example.primary_access_key}.- NOTE: There's a bug in the Redis API where the original storage connection string isn't being returned, which is being tracked in this issue. In the interim you can use the - ignoreChangesattribute to ignore changes to this field e.g.:
- StorageAccount stringSubscription Id 
- The ID of the Subscription containing the Storage Account.resources: example: type: azure:redis:Cache properties: ignoreChanges: - ${redisConfiguration[0].rdbStorageConnectionString}
- ActiveDirectory boolAuthentication Enabled 
- Enable Microsoft Entra (AAD) authentication. Defaults to false.
- AofBackup boolEnabled 
- Enable or disable AOF persistence for this Redis Cache. Defaults to - false.- NOTE: - aof_backup_enabledcan only be set when SKU is- Premium.
- AofStorage stringConnection String0 
- First Storage Account connection string for AOF persistence.
- AofStorage stringConnection String1 
- Second Storage Account connection string for AOF persistence. - Example usage: 
- AuthenticationEnabled bool
- If set to - false, the Redis instance will be accessible without authentication. Defaults to- true.- NOTE: - authentication_enabledcan only be set to- falseif a- subnet_idis specified; and only works if there aren't existing instances within the subnet with- authentication_enabledset to- true.
- DataPersistence stringAuthentication Method 
- Preferred auth method to communicate to storage account used for data persistence. Possible values are SASandManagedIdentity.
- Maxclients int
- Returns the max number of connected clients at the same time.
- MaxfragmentationmemoryReserved int
- Value in megabytes reserved to accommodate for memory fragmentation. Defaults are shown below.
- MaxmemoryDelta int
- The max-memory delta for this Redis instance. Defaults are shown below.
- MaxmemoryPolicy string
- How Redis will select what to remove when maxmemoryis reached. Defaults tovolatile-lru.
- MaxmemoryReserved int
- Value in megabytes reserved for non-cache usage e.g. failover. Defaults are shown below.
- NotifyKeyspace stringEvents 
- Keyspace notifications allows clients to subscribe to Pub/Sub channels in order to receive events affecting the Redis data set in some way. Reference
- RdbBackup boolEnabled 
- Is Backup Enabled? Only supported on Premium SKUs. Defaults to - false.- NOTE: If - rdb_backup_enabledset to- true,- rdb_storage_connection_stringmust also be set.
- RdbBackup intFrequency 
- The Backup Frequency in Minutes. Only supported on Premium SKUs. Possible values are: 15,30,60,360,720and1440.
- RdbBackup intMax Snapshot Count 
- The maximum number of snapshots to create as a backup. Only supported for Premium SKUs.
- RdbStorage stringConnection String 
- The Connection String to the Storage Account. Only supported for Premium SKUs. In the format: - DefaultEndpointsProtocol=https;BlobEndpoint=${azurerm_storage_account.example.primary_blob_endpoint};AccountName=${azurerm_storage_account.example.name};AccountKey=${azurerm_storage_account.example.primary_access_key}.- NOTE: There's a bug in the Redis API where the original storage connection string isn't being returned, which is being tracked in this issue. In the interim you can use the - ignoreChangesattribute to ignore changes to this field e.g.:
- StorageAccount stringSubscription Id 
- The ID of the Subscription containing the Storage Account.resources: example: type: azure:redis:Cache properties: ignoreChanges: - ${redisConfiguration[0].rdbStorageConnectionString}
- activeDirectory BooleanAuthentication Enabled 
- Enable Microsoft Entra (AAD) authentication. Defaults to false.
- aofBackup BooleanEnabled 
- Enable or disable AOF persistence for this Redis Cache. Defaults to - false.- NOTE: - aof_backup_enabledcan only be set when SKU is- Premium.
- aofStorage StringConnection String0 
- First Storage Account connection string for AOF persistence.
- aofStorage StringConnection String1 
- Second Storage Account connection string for AOF persistence. - Example usage: 
- authenticationEnabled Boolean
- If set to - false, the Redis instance will be accessible without authentication. Defaults to- true.- NOTE: - authentication_enabledcan only be set to- falseif a- subnet_idis specified; and only works if there aren't existing instances within the subnet with- authentication_enabledset to- true.
- dataPersistence StringAuthentication Method 
- Preferred auth method to communicate to storage account used for data persistence. Possible values are SASandManagedIdentity.
- maxclients Integer
- Returns the max number of connected clients at the same time.
- maxfragmentationmemoryReserved Integer
- Value in megabytes reserved to accommodate for memory fragmentation. Defaults are shown below.
- maxmemoryDelta Integer
- The max-memory delta for this Redis instance. Defaults are shown below.
- maxmemoryPolicy String
- How Redis will select what to remove when maxmemoryis reached. Defaults tovolatile-lru.
- maxmemoryReserved Integer
- Value in megabytes reserved for non-cache usage e.g. failover. Defaults are shown below.
- notifyKeyspace StringEvents 
- Keyspace notifications allows clients to subscribe to Pub/Sub channels in order to receive events affecting the Redis data set in some way. Reference
- rdbBackup BooleanEnabled 
- Is Backup Enabled? Only supported on Premium SKUs. Defaults to - false.- NOTE: If - rdb_backup_enabledset to- true,- rdb_storage_connection_stringmust also be set.
- rdbBackup IntegerFrequency 
- The Backup Frequency in Minutes. Only supported on Premium SKUs. Possible values are: 15,30,60,360,720and1440.
- rdbBackup IntegerMax Snapshot Count 
- The maximum number of snapshots to create as a backup. Only supported for Premium SKUs.
- rdbStorage StringConnection String 
- The Connection String to the Storage Account. Only supported for Premium SKUs. In the format: - DefaultEndpointsProtocol=https;BlobEndpoint=${azurerm_storage_account.example.primary_blob_endpoint};AccountName=${azurerm_storage_account.example.name};AccountKey=${azurerm_storage_account.example.primary_access_key}.- NOTE: There's a bug in the Redis API where the original storage connection string isn't being returned, which is being tracked in this issue. In the interim you can use the - ignoreChangesattribute to ignore changes to this field e.g.:
- storageAccount StringSubscription Id 
- The ID of the Subscription containing the Storage Account.resources: example: type: azure:redis:Cache properties: ignoreChanges: - ${redisConfiguration[0].rdbStorageConnectionString}
- activeDirectory booleanAuthentication Enabled 
- Enable Microsoft Entra (AAD) authentication. Defaults to false.
- aofBackup booleanEnabled 
- Enable or disable AOF persistence for this Redis Cache. Defaults to - false.- NOTE: - aof_backup_enabledcan only be set when SKU is- Premium.
- aofStorage stringConnection String0 
- First Storage Account connection string for AOF persistence.
- aofStorage stringConnection String1 
- Second Storage Account connection string for AOF persistence. - Example usage: 
- authenticationEnabled boolean
- If set to - false, the Redis instance will be accessible without authentication. Defaults to- true.- NOTE: - authentication_enabledcan only be set to- falseif a- subnet_idis specified; and only works if there aren't existing instances within the subnet with- authentication_enabledset to- true.
- dataPersistence stringAuthentication Method 
- Preferred auth method to communicate to storage account used for data persistence. Possible values are SASandManagedIdentity.
- maxclients number
- Returns the max number of connected clients at the same time.
- maxfragmentationmemoryReserved number
- Value in megabytes reserved to accommodate for memory fragmentation. Defaults are shown below.
- maxmemoryDelta number
- The max-memory delta for this Redis instance. Defaults are shown below.
- maxmemoryPolicy string
- How Redis will select what to remove when maxmemoryis reached. Defaults tovolatile-lru.
- maxmemoryReserved number
- Value in megabytes reserved for non-cache usage e.g. failover. Defaults are shown below.
- notifyKeyspace stringEvents 
- Keyspace notifications allows clients to subscribe to Pub/Sub channels in order to receive events affecting the Redis data set in some way. Reference
- rdbBackup booleanEnabled 
- Is Backup Enabled? Only supported on Premium SKUs. Defaults to - false.- NOTE: If - rdb_backup_enabledset to- true,- rdb_storage_connection_stringmust also be set.
- rdbBackup numberFrequency 
- The Backup Frequency in Minutes. Only supported on Premium SKUs. Possible values are: 15,30,60,360,720and1440.
- rdbBackup numberMax Snapshot Count 
- The maximum number of snapshots to create as a backup. Only supported for Premium SKUs.
- rdbStorage stringConnection String 
- The Connection String to the Storage Account. Only supported for Premium SKUs. In the format: - DefaultEndpointsProtocol=https;BlobEndpoint=${azurerm_storage_account.example.primary_blob_endpoint};AccountName=${azurerm_storage_account.example.name};AccountKey=${azurerm_storage_account.example.primary_access_key}.- NOTE: There's a bug in the Redis API where the original storage connection string isn't being returned, which is being tracked in this issue. In the interim you can use the - ignoreChangesattribute to ignore changes to this field e.g.:
- storageAccount stringSubscription Id 
- The ID of the Subscription containing the Storage Account.resources: example: type: azure:redis:Cache properties: ignoreChanges: - ${redisConfiguration[0].rdbStorageConnectionString}
- active_directory_ boolauthentication_ enabled 
- Enable Microsoft Entra (AAD) authentication. Defaults to false.
- aof_backup_ boolenabled 
- Enable or disable AOF persistence for this Redis Cache. Defaults to - false.- NOTE: - aof_backup_enabledcan only be set when SKU is- Premium.
- aof_storage_ strconnection_ string0 
- First Storage Account connection string for AOF persistence.
- aof_storage_ strconnection_ string1 
- Second Storage Account connection string for AOF persistence. - Example usage: 
- authentication_enabled bool
- If set to - false, the Redis instance will be accessible without authentication. Defaults to- true.- NOTE: - authentication_enabledcan only be set to- falseif a- subnet_idis specified; and only works if there aren't existing instances within the subnet with- authentication_enabledset to- true.
- data_persistence_ strauthentication_ method 
- Preferred auth method to communicate to storage account used for data persistence. Possible values are SASandManagedIdentity.
- maxclients int
- Returns the max number of connected clients at the same time.
- maxfragmentationmemory_reserved int
- Value in megabytes reserved to accommodate for memory fragmentation. Defaults are shown below.
- maxmemory_delta int
- The max-memory delta for this Redis instance. Defaults are shown below.
- maxmemory_policy str
- How Redis will select what to remove when maxmemoryis reached. Defaults tovolatile-lru.
- maxmemory_reserved int
- Value in megabytes reserved for non-cache usage e.g. failover. Defaults are shown below.
- notify_keyspace_ strevents 
- Keyspace notifications allows clients to subscribe to Pub/Sub channels in order to receive events affecting the Redis data set in some way. Reference
- rdb_backup_ boolenabled 
- Is Backup Enabled? Only supported on Premium SKUs. Defaults to - false.- NOTE: If - rdb_backup_enabledset to- true,- rdb_storage_connection_stringmust also be set.
- rdb_backup_ intfrequency 
- The Backup Frequency in Minutes. Only supported on Premium SKUs. Possible values are: 15,30,60,360,720and1440.
- rdb_backup_ intmax_ snapshot_ count 
- The maximum number of snapshots to create as a backup. Only supported for Premium SKUs.
- rdb_storage_ strconnection_ string 
- The Connection String to the Storage Account. Only supported for Premium SKUs. In the format: - DefaultEndpointsProtocol=https;BlobEndpoint=${azurerm_storage_account.example.primary_blob_endpoint};AccountName=${azurerm_storage_account.example.name};AccountKey=${azurerm_storage_account.example.primary_access_key}.- NOTE: There's a bug in the Redis API where the original storage connection string isn't being returned, which is being tracked in this issue. In the interim you can use the - ignoreChangesattribute to ignore changes to this field e.g.:
- storage_account_ strsubscription_ id 
- The ID of the Subscription containing the Storage Account.resources: example: type: azure:redis:Cache properties: ignoreChanges: - ${redisConfiguration[0].rdbStorageConnectionString}
- activeDirectory BooleanAuthentication Enabled 
- Enable Microsoft Entra (AAD) authentication. Defaults to false.
- aofBackup BooleanEnabled 
- Enable or disable AOF persistence for this Redis Cache. Defaults to - false.- NOTE: - aof_backup_enabledcan only be set when SKU is- Premium.
- aofStorage StringConnection String0 
- First Storage Account connection string for AOF persistence.
- aofStorage StringConnection String1 
- Second Storage Account connection string for AOF persistence. - Example usage: 
- authenticationEnabled Boolean
- If set to - false, the Redis instance will be accessible without authentication. Defaults to- true.- NOTE: - authentication_enabledcan only be set to- falseif a- subnet_idis specified; and only works if there aren't existing instances within the subnet with- authentication_enabledset to- true.
- dataPersistence StringAuthentication Method 
- Preferred auth method to communicate to storage account used for data persistence. Possible values are SASandManagedIdentity.
- maxclients Number
- Returns the max number of connected clients at the same time.
- maxfragmentationmemoryReserved Number
- Value in megabytes reserved to accommodate for memory fragmentation. Defaults are shown below.
- maxmemoryDelta Number
- The max-memory delta for this Redis instance. Defaults are shown below.
- maxmemoryPolicy String
- How Redis will select what to remove when maxmemoryis reached. Defaults tovolatile-lru.
- maxmemoryReserved Number
- Value in megabytes reserved for non-cache usage e.g. failover. Defaults are shown below.
- notifyKeyspace StringEvents 
- Keyspace notifications allows clients to subscribe to Pub/Sub channels in order to receive events affecting the Redis data set in some way. Reference
- rdbBackup BooleanEnabled 
- Is Backup Enabled? Only supported on Premium SKUs. Defaults to - false.- NOTE: If - rdb_backup_enabledset to- true,- rdb_storage_connection_stringmust also be set.
- rdbBackup NumberFrequency 
- The Backup Frequency in Minutes. Only supported on Premium SKUs. Possible values are: 15,30,60,360,720and1440.
- rdbBackup NumberMax Snapshot Count 
- The maximum number of snapshots to create as a backup. Only supported for Premium SKUs.
- rdbStorage StringConnection String 
- The Connection String to the Storage Account. Only supported for Premium SKUs. In the format: - DefaultEndpointsProtocol=https;BlobEndpoint=${azurerm_storage_account.example.primary_blob_endpoint};AccountName=${azurerm_storage_account.example.name};AccountKey=${azurerm_storage_account.example.primary_access_key}.- NOTE: There's a bug in the Redis API where the original storage connection string isn't being returned, which is being tracked in this issue. In the interim you can use the - ignoreChangesattribute to ignore changes to this field e.g.:
- storageAccount StringSubscription Id 
- The ID of the Subscription containing the Storage Account.resources: example: type: azure:redis:Cache properties: ignoreChanges: - ${redisConfiguration[0].rdbStorageConnectionString}
Import
Redis Cache’s can be imported using the resource id, e.g.
$ pulumi import azure:redis/cache:Cache cache1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Cache/redis/cache1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.