Migrate with tooling - Basic, Standard, and Premium tiers to Azure Managed Redis

Azure provides built-in migration tooling that automates endpoint migration from your existing Azure Cache for Redis instance to a precreated Azure Managed Redis instance. After you create a new Azure Managed Redis instance and initiate the migration, the tooling updates your Azure Cache for Redis hostname to point to Azure Managed Redis, so your client applications reconnect automatically to the Azure Managed Redis instance using the same hostname and access key. When you validate the migration, delete the old Azure Cache for Redis instance and update your client applications to use the new Azure Managed Redis hostname.

Important

Review the limitations carefully before choosing this approach.

Migrate using the migration agent skill

Use the Redis migration agent skill to help assess your cache, prepare a migration plan, and execute migration. For a step-by-step walkthrough, see Migrate using the migration agent skill.

Migrate using the Azure portal

Follow these steps to migrate Basic, Standard, or Premium caches using the Azure portal.

Step 1: Update deployment scripts and create new Azure Managed Redis instance

  1. Once you have identified the appropriate Azure Managed Redis SKU, update your deployment scripts (such as ARM templates, Bicep files, or Terraform configurations) to provision Azure Managed Redis instead of Azure Cache for Redis.
  2. Use the SKU mapping table to select the right size (same size or bigger than the existing cache) and performance tier.
  3. Create the instance by following the Quickstart: Create an Azure Managed Redis Instance.
  4. If your application uses private connectivity, configure private endpoints and private DNS for the target Azure Managed Redis instance before updating the application to use its hostname. Source private endpoint settings aren't copied during migration. See Configure Azure Private Link.
  5. If the target uses the OSS clustering policy, allow connections from each application network to its shard ports in the 85XX range before starting migration. These ports can change, so don't hardcode them in your application. See Clustering policies.

Step 2: Configure Microsoft Entra ID authentication (optional)

If you use Microsoft Entra ID authentication, configure required managed identities and permissions on the target Azure Managed Redis instance before migration.

Step 3: Data migration (optional)

To copy your data to your new Azure Managed Redis instance as part of migration, select Migrate Data in Step 4. If you prefer to migrate your data separately, review the self-service data migration strategies.

Data migration copies only logical database 0 and clears all existing data in the target Azure Managed Redis database when migration starts, including keys that don't conflict with source keys. Preserve any target data you need before starting migration.

Built-in data migration isn't supported for clustered source caches or source caches with private endpoints. For these caches, use endpoint-only migration and transfer data separately if needed.

Step 4: Validate and start migration

  1. In the Azure portal, use the Resource menu for your Azure Cache for Redis instance and go to Overview. In the top-level command bar, select Migrate, then select Migrate to Azure Managed Redis.

    Screenshot of the Azure Cache for Redis Overview page with the Migrate menu expanded to show Migrate to Azure Managed Redis.

  2. In the migration pane, select the existing Azure Managed Redis instance you want to migrate to, then select Validate. This will run validations on your Azure Cache for Redis instance to ensure it is ready for migration.

  3. You may see some warnings about potential differences between your Azure Cache for Redis and Azure Managed Redis instances. If there are differences identified, they could be of type warning or error. For example, if Azure Cache for Redis instance has persistence enabled but the new Azure Managed Redis does not, then this will be flagged as a warning. If Azure Cache for Redis instance is injected in a virtual network, then this will be an error as this is not supported.

  4. If you want to migrate your data as part of the migration, select the Migrate Data checkbox.

    Screenshot of the Azure portal migration pane showing the selected target, successful validation, and optional Migrate Data checkbox.

  5. You can choose to bypass warnings, if present, by selecting the I acknowledge the issues above and understand the risks of proceeding with the migration checkbox.

    Screenshot of the migration pane showing an identity validation warning and the selected acknowledgment checkbox highlighted.

  6. Select Start migration to begin the migration.

Step 5: During migration

  • During migration, cache status changes to Migrating. You can't perform any other management operations until migration finishes.
  • Your client application will experience a connection blip, similar to maintenance experience. When your client application reconnects, it will connect to Azure Managed Redis instance.

Step 6: Validate migration and update client applications

  1. After migration completes, validate that your application behaves as expected with the migrated endpoint.
  2. Before switching applications to the Azure Managed Redis hostname, update network rules to allow connections to the target on port 10000. If the target uses the OSS clustering policy, also allow connections to individual shards on ports in the 85XX range. These shard ports can change, so don't hardcode them in your application. For more information, see Clustering policies.
  3. Update applications to use the Azure Managed Redis hostname (<cachename>.<region>.redis.azure.net) and port 10000.
  4. Verify connectivity to the native Azure Managed Redis hostname and port, including shard connections when using the OSS clustering policy, from each application network. Validate application behavior before deleting the source cache. Retain the source cache until migration rollback is no longer needed.

Step 7: Delete the old Azure Cache for Redis instance

After you finish validation and no longer need migration rollback, delete your Azure Cache for Redis instance. The Azure Cache for Redis hostname continues to point to the new Azure Managed Redis instance even after the source instance is deleted. Retire the unused Azure Cache for Redis hostname. An API to retire the unused Azure Cache for Redis hostname is on the roadmap.

Migrate using the PowerShell script

You can also use Azure PowerShell commands to perform pre-validation and then initiate migration. You can also check the status of migration operation and cancel it, if required. You can find a PowerShell script for migration here.