{"id":4893,"library":"azure-mgmt-redisenterprise","title":"Azure Redis Enterprise Management Client Library for Python","description":"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.","status":"active","version":"3.1.0","language":"en","source_language":"en","source_url":"https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/redisenterprise/azure-mgmt-redisenterprise","tags":["Azure","Cloud","Redis","Enterprise","Management","SDK","PaaS"],"install":[{"cmd":"pip install azure-mgmt-redisenterprise azure-identity","lang":"bash","label":"Install stable version"}],"dependencies":[{"reason":"Required for Azure Active Directory token authentication.","package":"azure-identity","optional":false}],"imports":[{"symbol":"RedisEnterpriseManagementClient","correct":"from azure.mgmt.redisenterprise import RedisEnterpriseManagementClient"},{"symbol":"DefaultAzureCredential","correct":"from azure.identity import DefaultAzureCredential"},{"note":"Commonly used model for cluster creation/update operations.","symbol":"Sku","correct":"from azure.mgmt.redisenterprise.models import Sku"},{"note":"Commonly used model for database operations within a cluster.","symbol":"Database","correct":"from azure.mgmt.redisenterprise.models import Database"}],"quickstart":{"code":"import os\nfrom azure.identity import DefaultAzureCredential\nfrom azure.mgmt.redisenterprise import RedisEnterpriseManagementClient\n\n# Set environment variables for authentication and subscription:\n# AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET\n# AZURE_SUBSCRIPTION_ID\n# Learn more: https://learn.microsoft.com/en-us/azure/developer/python/sdk/authentication-overview\n\n# Get subscription ID from environment variable\nsubscription_id = os.environ.get(\"AZURE_SUBSCRIPTION_ID\", \"\")\nif not subscription_id:\n    raise ValueError(\"AZURE_SUBSCRIPTION_ID environment variable not set.\")\n\n# Authenticate with Azure\ncredential = DefaultAzureCredential()\n\n# Create a Redis Enterprise Management client\nclient = RedisEnterpriseManagementClient(credential=credential, subscription_id=subscription_id)\n\n# List all Redis Enterprise clusters in the subscription\nprint(\"Listing Redis Enterprise Clusters:\")\nfor cluster in client.redis_enterprise.list():\n    print(f\"- Name: {cluster.name}, Location: {cluster.location}, SKU: {cluster.sku.name}\")","lang":"python","description":"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."},"warnings":[{"fix":"Update method calls to use the `begin_` prefix for LROs and adjust polling logic for `azure.core.polling.LROPoller`.","message":"Operations 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.","severity":"breaking","affected_versions":">=2.1.0b2"},{"fix":"Migrate to `azure-identity` classes (e.g., `DefaultAzureCredential`) for authentication and update client constructor to use the `credential` parameter.","message":"The 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`.","severity":"breaking","affected_versions":"All versions >=12.0.0b1 (for general Azure SDKs), effectively current stable versions."},{"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.","message":"There is a known issue where `client.databases.begin_update` may not correctly support PATCH operations for updating database persistence configurations, despite documentation suggesting so.","severity":"gotcha","affected_versions":"Unknown, reported in April 2026 for current versions."},{"fix":"Upgrade your Python environment to 3.9 or higher, as required by recent versions of this library.","message":"Python 2.7 support for Azure SDK Python packages, including `azure-mgmt-redisenterprise`, ended on January 1, 2022.","severity":"deprecated","affected_versions":"<=1.x"},{"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.","message":"Upcoming 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.","severity":"gotcha","affected_versions":"Future minor/major versions (post 3.1.0)"}],"env_vars":null,"last_verified":"2026-04-12T00:00:00.000Z","next_check":"2026-07-11T00:00:00.000Z"}