Registry / azure / azure-mgmt-redisenterprise

azure-mgmt-redisenterprise

JSON →
library3.1.0pypypi✓ verified 22d ago

This is the Microsoft Azure Redis Enterprise Management Client Library for Python, providing tools to manage Azure Redis Enterprise resources. It currently supports Python 3.9+ and is part of the Azure SDK for Python, which follows a regular release cadence. The latest stable version, 3.1.0, was released in October 2025, following the General Availability of Azure Managed Redis in May 2025.

pip install azure-mgmt-redisenterprise azure-identity
INSTALL
IMPORT
SIG · AZURE-MGMT-REDISEN
A
azure-mgmt-redisenterprise
azurepythonv3.1.0
Install
4.0s avg
Import
571ms
Disk
46MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.598s · 46.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.0s · import 0.544s · 47MB
46MB installed
● package 46MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RedisEnterpriseManagementClient
from azure.mgmt.redisenterprise import RedisEnterpriseManagementClient
DefaultAzureCredential
from azure.identity import DefaultAzureCredential
Sku
from azure.mgmt.redisenterprise.models import Sku
Commonly used model for cluster creation/update operations.
Database
from azure.mgmt.redisenterprise.models import Database
Commonly used model for database operations within a cluster.

Initializes the RedisEnterpriseManagementClient using DefaultAzureCredential for authentication and lists all Redis Enterprise clusters accessible within the configured Azure subscription. Ensure AZURE_SUBSCRIPTION_ID, AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_CLIENT_SECRET environment variables are set for authentication.

import os from azure.identity import DefaultAzureCredential from azure.mgmt.redisenterprise import RedisEnterpriseManagementClient # Set environment variables for authentication and subscription: # AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET # AZURE_SUBSCRIPTION_ID # Learn more: https://learn.microsoft.com/en-us/azure/developer/python/sdk/authentication-overview # Get subscription ID from environment variable subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "") if not subscription_id: raise ValueError("AZURE_SUBSCRIPTION_ID environment variable not set.") # Authenticate with Azure credential = DefaultAzureCredential() # Create a Redis Enterprise Management client client = RedisEnterpriseManagementClient(credential=credential, subscription_id=subscription_id) # List all Redis Enterprise clusters in the subscription print("Listing Redis Enterprise Clusters:") for cluster in client.redis_enterprise.list(): print(f"- Name: {cluster.name}, Location: {cluster.location}, SKU: {cluster.sku.name}")
Debug
Known issues
breakingOperations that perform long-running actions (LROs) are now prefixed with `begin_` and return an `azure.core.polling.LROPoller` object instead of `msrest.polling.LROPoller`. For example, `PrivateEndpointConnectionsOperations.delete` was renamed to `PrivateEndpointConnectionsOperations.begin_delete` in version 2.1.0b2.
fix
Update method calls to use the `begin_` prefix for LROs and adjust polling logic for `azure.core.polling.LROPoller`.
affects: >=2.1.0b2
breakingThe credential system was revamped across Azure SDKs. Old authentication methods (`azure.common.credentials` or `msrestazure.azure_active_directory`) are no longer supported. The `credentials` parameter has been renamed to `credential`.
fix
Migrate to `azure-identity` classes (e.g., `DefaultAzureCredential`) for authentication and update client constructor to use the `credential` parameter.
affects: All versions >=12.0.0b1 (for general Azure SDKs), effectively current stable versions.
gotchaThere is a known issue where `client.databases.begin_update` may not correctly support PATCH operations for updating database persistence configurations, despite documentation suggesting so.
fix
Verify desired updates via other means or consult Azure support if `begin_update` for database persistence fails unexpectedly. Consider creating a new database with updated settings and migrating data if a direct update is critical and not working.
affects: Unknown, reported in April 2026 for current versions.
deprecatedPython 2.7 support for Azure SDK Python packages, including `azure-mgmt-redisenterprise`, ended on January 1, 2022.
fix
Upgrade your Python environment to 3.9 or higher, as required by recent versions of this library.
affects: <=1.x
gotchaUpcoming changes in Azure CLI (`az redisenterprise create` for May 2026) indicate future API versions may make certain parameters, like `--public-network-access`, required and change defaults (e.g., `--access-keys-auth` to 'Disabled'). While specific to CLI, this often reflects underlying API changes that could affect direct SDK usage.
fix
Stay informed on Azure SDK release notes and Azure CLI breaking changes. Explicitly set values for parameters like `public_network_access` and `access_keys_auth` when creating/updating clusters to ensure consistent behavior across API versions.
affects: Future minor/major versions (post 3.1.0)
Upgrade
Version history
3.1.0latest on PyPI · released Oct 20, 2025
Audit
Dependencies
azure-identityrequiredRequired for Azure Active Directory token authentication.
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
azure-mgmt-redisenterprise — pip install azure-mgmt-redisenterprise · libregistry