RedisCreateProperties Class

Properties supplied to Create Redis operation.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.redis.models._models_py3.RedisCommonProperties
RedisCreateProperties

Constructor

RedisCreateProperties(*, sku: _models.Sku, redis_configuration: _models.RedisCommonPropertiesRedisConfiguration | None = None, redis_version: str | None = None, enable_non_ssl_port: bool = False, replicas_per_master: int | None = None, replicas_per_primary: int | None = None, tenant_settings: Dict[str, str] | None = None, shard_count: int | None = None, minimum_tls_version: str | _models.TlsVersion | None = None, public_network_access: str | _models.PublicNetworkAccess = 'Enabled', update_channel: str | _models.UpdateChannel | None = None, disable_access_key_authentication: bool = False, subnet_id: str | None = None, static_ip: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
redis_configuration

All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.

redis_version
str

Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.

enable_non_ssl_port

Specifies whether the non-ssl Redis server port (6379) is enabled.

replicas_per_master
int

The number of replicas to be created per primary.

replicas_per_primary
int

The number of replicas to be created per primary.

tenant_settings

A dictionary of tenant settings.

shard_count
int

The number of shards to be created on a Premium Cluster Cache.

minimum_tls_version

Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Known values are: "1.0", "1.1", and "1.2".

public_network_access

Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Known values are: "Enabled" and "Disabled".

Default value: Enabled
update_channel

Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'. Known values are: "Stable" and "Preview".

disable_access_key_authentication

Authentication to Redis through access keys is disabled when set as true. Default value is false.

sku
Sku

The SKU of the Redis cache to deploy. Required.

subnet_id
str

The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1. # pylint: disable=line-too-long

static_ip
str

Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.

Variables

Name Description
redis_configuration

All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.

redis_version
str

Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.

enable_non_ssl_port

Specifies whether the non-ssl Redis server port (6379) is enabled.

replicas_per_master
int

The number of replicas to be created per primary.

replicas_per_primary
int

The number of replicas to be created per primary.

tenant_settings

A dictionary of tenant settings.

shard_count
int

The number of shards to be created on a Premium Cluster Cache.

minimum_tls_version

Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Known values are: "1.0", "1.1", and "1.2".

public_network_access

Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Known values are: "Enabled" and "Disabled".

update_channel

Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'. Known values are: "Stable" and "Preview".

disable_access_key_authentication

Authentication to Redis through access keys is disabled when set as true. Default value is false.

sku
Sku

The SKU of the Redis cache to deploy. Required.

subnet_id
str

The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1. # pylint: disable=line-too-long

static_ip
str

Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.