Skip to main content

Migrating Azure Redis Data to Azure Managed Redis

This guide covers migrating data from Azure Cache for Redis to Azure Managed Redis using the Import/Export tool.

Import/Export Tool - All Tiers Supported

When to use: When you need to migrate data between Redis instances. The destination (Azure Managed Redis) supports all tiers; source must have Premium SKU if using Azure Cache for Redis export feature.

How it works: Export from any Redis → Upload to Azure Storage → Import to Azure Managed Redis

Key Features:

  • All tiers supported - Works with Basic, Standard, Premium, and all Azure Managed Redis tiers

  • Export stays available - Source Redis remains accessible during export

  • Import causes downtime - Target cache unavailable during import

  • Destructive import - All existing data in target cache is deleted before import

Source Requirements:

  • Azure Cache for Redis: Must have Premium SKU (Basic/Standard tiers do not support export)

  • Azure Managed Redis: All tiers support export

Target Requirements: - Azure Managed Redis (any tier) - Must be same size or larger than source cache

Step: Export Data from Source Redis (Azure Portal)

If source is Azure Cache for Redis or Azure Managed Redis:

  1. Navigate to Azure Portal → Your Redis instance
  2. Select Export data from Resource menu (left sidebar)
  3. In the working pane, select Choose Storage Container
  4. Select storage account → Select or create container
  5. Type a Blob name prefix (e.g., migration-backup)
  6. Click Export to start export

Export duration: Varies by cache size and data volume

Step: Verify Export Completed

  1. Go to Azure PortalStorage AccountContainers
  2. Navigate to your container
  3. Verify RDB file exists: migration-backup-<timestamp>.rdb.gz
  4. Note the exact blob name for import step

Step: Import Data into Azure Managed Redis (Azure Portal)

  1. Navigate to Azure Portal → Your Azure Managed Redis instance
  2. Select Import data from Resource menu (left sidebar)
  3. Click Choose Blob(s)
  4. Select the storage account containing your RDB file
  5. Select the container
  6. Select one or more blobs to import (checkbox left of blob name)
  7. Click Select
  8. Click Import to begin import

Important Warnings: - Cache becomes UNAVAILABLE during import - Applications cannot connect - All existing data DELETED - Target cache is wiped before import begins - No rollback - Once started, the import cannot be undone

Step: Validate Data Imported

# Check key count on new Redis
redis-cli -h $NEW_HOST -p 10000 --tls \
  --user default -a $NEW_KEY \
  DBSIZE

To inspect the actual keys in the destination instance:

# Connect and list all keys
redis-cli -h $NEW_HOST -p 10000 --tls \
  --user default -a $NEW_KEY \
  KEYS "*"

# Get a specific key value to verify data integrity
redis-cli -h $NEW_HOST -p 10000 --tls \
  --user default -a $NEW_KEY \
  GET "your-test-key"

Step: Confirm No Downtime on Source Redis

You can verify that there is no downtime on the source Redis instance by continuously pinging it using the following script:

while true; do 
  redis-cli -h crumble-recipe-backend-session-storage-sandbox.redis.cache.windows.net \
    -p 6380 --tls -a "key" \
    PING && echo "$(date): CONNECTED" || echo "$(date): DISCONNECTED"
  sleep 2
done

Automation Options:

# PowerShell Export
Export-AzRedisEnterpriseCache -ResourceGroupName <rg> -Name <cache> -StorageContainerUri <uri>

# PowerShell Import
Import-AzRedisEnterpriseCache -ResourceGroupName <rg> -Name <cache> -StorageContainerUri <uri>
# Azure CLI Export
az redisenterprise database export --resource-group <rg> --cluster-name <cache> --sas-uri <uri>

# Azure CLI Import
az redisenterprise database import --resource-group <rg> --cluster-name <cache> --sas-uri <uri>

Documentation:

This page was last reviewed on 13 May 2026. It needs to be reviewed again on 13 November 2026 by the page owner platops-build-notices .
This page was set to be reviewed before 13 November 2026 by the page owner platops-build-notices. This might mean the content is out of date.