Skip to main content

redis_enterprise

Creates, updates, deletes, gets or lists a redis_enterprise resource.

Overview

Nameredis_enterprise
TypeResource
Idazure_isv.redisenterprise.redis_enterprise

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
encryptionobjectEncryption-at-rest configuration for the cluster.
highAvailabilitystringEnabled by default. If highAvailability is disabled, the data set is not replicated. This affects the availability SLA, and increases the risk of data loss. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
hostNamestringDNS name of the cluster endpoint.
identityobjectThe managed service identities assigned to this resource.
kindstringDistinguishes the kind of cluster. Read-only. Known values are: "v1" and "v2". (v1, v2)
locationstringThe geo-location where the resource lives. Required.
maintenanceConfigurationobjectCluster-level maintenance configuration.
migratedEndpointstringThe endpoint of the source resource that is currently pointing to this resource as a result of an ACR/ACRE to AMR migration.
minimumTlsVersionstringThe minimum TLS version for the cluster to support, e.g. '1.2'. Newer versions can be added in the future. Note that TLS 1.0 and TLS 1.1 are now completely obsolete -- you cannot use them. They are mentioned only for the sake of consistency with old API versions. Known values are: "1.0", "1.1", and "1.2". (1.0, 1.1, 1.2)
privateEndpointConnectionsarrayList of private endpoint connections associated with the specified Redis Enterprise cluster.
provisioningStatestringCurrent provisioning status of the cluster. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Updating", and "Deleting". (Succeeded, Failed, Canceled, Creating, Updating, Deleting)
publicNetworkAccessstringWhether or not public network traffic can access the Redis cluster. Only 'Enabled' or 'Disabled' can be set. null is returned only for clusters created using an old API version which do not have this property and cannot be set. Required. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
redisVersionstringVersion of redis the cluster supports, e.g. '6'.
redundancyModestringExplains the current redundancy strategy of the cluster, which affects the expected SLA. Known values are: "None", "LR", and "ZR". (None, LR, ZR)
resourceStatestringCurrent resource status of the cluster. Known values are: "Running", "Creating", "CreateFailed", "Updating", "UpdateFailed", "Deleting", "DeleteFailed", "Enabling", "EnableFailed", "Disabling", "DisableFailed", "Disabled", "Scaling", "ScalingFailed", and "Moving". (Running, Creating, CreateFailed, Updating, UpdateFailed, Deleting, DeleteFailed, Enabling, EnableFailed, Disabling, DisableFailed, Disabled, Scaling, ScalingFailed, Moving)
skuobjectThe SKU to create, which affects price, performance, and features. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
zonesarrayThe availability zones.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, subscription_idGets information about a Redis Enterprise cluster.
list_by_resource_groupselectresource_group_name, subscription_idLists all Redis Enterprise clusters in a resource group.
listselectsubscription_idLists all Redis Enterprise clusters in the specified subscription.
createinsertresource_group_name, cluster_name, subscription_id, location, skuCreates or updates an existing (overwrite/recreate, with potential downtime) cache cluster.
updateupdateresource_group_name, cluster_name, subscription_idUpdates an existing Redis Enterprise cluster.
deletedeleteresource_group_name, cluster_name, subscription_idDeletes a Redis Enterprise cache cluster.
list_skus_for_scalingexecresource_group_name, cluster_name, subscription_idLists the available SKUs for scaling the Redis Enterprise cluster.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cluster_namestringThe name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets information about a Redis Enterprise cluster.

SELECT
id,
name,
encryption,
highAvailability,
hostName,
identity,
kind,
location,
maintenanceConfiguration,
migratedEndpoint,
minimumTlsVersion,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
redisVersion,
redundancyMode,
resourceState,
sku,
systemData,
tags,
type,
zones
FROM azure_isv.redisenterprise.redis_enterprise
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster.

INSERT INTO azure_isv.redisenterprise.redis_enterprise (
tags,
location,
properties,
sku,
zones,
identity,
resource_group_name,
cluster_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ sku }}' /* required */,
'{{ zones }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ cluster_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type,
zones
;

UPDATE examples

Updates an existing Redis Enterprise cluster.

UPDATE azure_isv.redisenterprise.redis_enterprise
SET
sku = '{{ sku }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type,
zones;

DELETE examples

Deletes a Redis Enterprise cache cluster.

DELETE FROM azure_isv.redisenterprise.redis_enterprise
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Lists the available SKUs for scaling the Redis Enterprise cluster.

EXEC azure_isv.redisenterprise.redis_enterprise.list_skus_for_scaling 
@resource_group_name='{{ resource_group_name }}' --required,
@cluster_name='{{ cluster_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;