Azure Cache for Redis Retirement: My 2027 Agent Memory Plan

An origami diorama of two paper workers in blue hats carrying folded boxes across an orange paper bridge over a river, from a weathered gray warehouse to a cream warehouse with a terracotta roof, against folded paper hills and clouds.

In many AI agent stacks, Redis is the quiet layer: session memory, semantic cache, rate limits and job queues.
On Azure, the Enterprise tiers of Azure Cache for Redis retire on March 31, 2027 and are disabled from April 1, 2027.

The Azure Cache for Redis retirement is staged: Enterprise and Enterprise Flash instances retire on March 31, 2027 and are disabled starting April 1, 2027, while Basic, Standard and Premium retire on September 30, 2028. I would inventory every Redis use in an agent stack and move to Azure Managed Redis under a controlled cutover.

Redis rarely gets the attention given to the model, orchestration framework or application interface. Yet it can sit underneath almost every interaction an AI agent handles.

A chatbot might use it to remember a conversation. A RAG application might use it to avoid repeating expensive retrieval operations. An agent workflow might depend on it to coordinate jobs, enforce rate limits or preserve temporary state between steps.

That makes the Azure Cache for Redis Enterprise retirement more than a cloud-service housekeeping announcement.

For founders and small engineering teams running AI products on Azure, this is an infrastructure migration that deserves an explicit plan. I would treat it as an opportunity to review how agents use memory, separate critical state from disposable cache data, and move deliberately to Azure Managed Redis.

The objective is not simply to replace one connection string with another. It is to make sure the systems depending on Redis continue to behave correctly when the underlying infrastructure changes.

What exactly is happening to Azure Cache for Redis?

Microsoft is retiring Azure Cache for Redis in two stages.

The immediate concern is Enterprise and Enterprise Flash. All instances in these tiers retire on March 31, 2027, and Microsoft disables them starting April 1, 2027.

The remaining tiers follow later:

  • Enterprise and Enterprise Flash: Retirement on March 31, 2027; disabled starting April 1, 2027.
  • Basic, Standard and Premium: Retirement on September 30, 2028; disabled starting October 1, 2028.

Microsoft recommends upgrading to Azure Managed Redis now rather than waiting until the retirement deadlines.

The distinction between retirement and disabling matters. This is not simply a recommendation to consider another service when convenient. If an application continues depending on an affected Enterprise instance after the disabling date, that dependency becomes an operational problem.

For this article, I am focusing on the 2027 Enterprise deadline because it is the nearer milestone. Teams using Basic, Standard or Premium should still understand the migration direction and plan for the subsequent retirement.

The official starting point is Microsoft’s Azure Cache for Redis retirement FAQ. I would keep that page alongside the migration documentation during planning because availability and operational guidance can change.

My recommendation: identify the affected instances first, rather than assuming every Redis deployment in an Azure environment has the same deadline.

Why does Redis retirement matter for AI agents?

Redis often becomes an invisible dependency in an AI application.

The model receives the prompt, the application handles the response, and the user sees a conversation. Behind that interaction, Redis might be holding information that makes the entire experience work.

A common pattern:

A user starts a conversation with an AI assistant. The application stores session metadata and recent conversation state in Redis. When the user asks a follow-up question, the agent retrieves that information and constructs a context-aware prompt.

At the same time, a semantic cache stores previously generated answers or retrieval results. A rate limiter controls how frequently a particular user can call the service. A queue coordinates background tasks that process documents or trigger other agent workflows.

Now imagine the underlying Redis instance becomes unavailable.

The consequences depend on what the application has stored and how it handles failures:

  • Conversation memory: An agent may lose access to session state or recent conversational context.
  • Semantic caching: Requests may repeatedly execute retrieval and model-generation operations instead of using existing cached results.
  • Rate limiting: Application-level request controls may stop functioning as intended.
  • Job queues: Background processing and task coordination may be interrupted.
  • Workflow state: Multi-step agent operations may lose access to temporary information needed to continue.

These are different failure modes. Losing a disposable cache entry is not equivalent to losing the only available copy of an important workflow state.

That is why I would map every Redis key space before choosing a migration strategy.

A key space should have an owner, a purpose, a retention policy and an answer to one important question: can this data be reconstructed?

For a deeper look at the operational considerations behind agent deployment, see my guide to running AI agents in production.

The important distinction is between Redis as a performance optimization and Redis as part of the application’s state-management architecture. Both deserve attention, but they should not receive identical migration treatment.

An origami figure in a cream shirt and blue apron places an orange folded-paper cube into a terracotta tray, with a blue tray of cream cubes and a green tray of green cubes on the workbench, and shelves of tagged paper boxes behind.

What changes when moving to Azure Managed Redis?

Azure Managed Redis is Microsoft’s recommended destination. However, I would not treat it as an identical replacement that requires no application review.

There are several differences worth understanding before provisioning a new instance.

Redis software version

Azure Managed Redis runs Redis 7.4, while Azure Cache for Redis Enterprise runs Redis 7.2.

That difference deserves a compatibility review. Applications may depend on particular commands, client-library behavior, data structures or configuration assumptions. I would test the actual operations used by the application instead of assuming that a successful connection proves compatibility.

SKU families

Azure Managed Redis offers four SKU families:

  • Balanced
  • Memory Optimized
  • Compute Optimized
  • Flash Optimized

I would select a family based on the application’s workload rather than choosing purely by the size of the existing deployment.

For example, a workload dominated by conversation state may have different requirements from one dominated by temporary semantic caching or background processing.

Microsoft Entra ID authentication

One important security difference is authentication.

Azure Managed Redis supports Microsoft Entra ID authentication, while Azure Cache for Redis Enterprise does not.

Microsoft recommends adopting Entra ID for improved security. I would use this migration to review application identities, authentication flows and how credentials are managed across environments.

My broader approach is to prefer identity-based access over distributing shared credentials wherever the platform supports it. I discuss that principle in AI agent permissions and identity.

DNS hostname changes

The DNS suffix changes:

  • Existing: redisenterprise.cache.azure.net
  • New: redis.azure.net

This is easy to overlook. Hostnames can appear in environment variables, application configuration, deployment secrets, background workers and monitoring settings.

Updating the main application configuration without checking the other consumers can leave some components pointing at the old service.

Memory reservation

Azure Managed Redis reserves approximately 20% of memory for system operations and overhead.

This matters when comparing deployment sizes. I would not assume that the memory capacity visible in one service translates directly into equivalent application-available memory in the other.

The following table summarizes how I would evaluate the migration choices and infrastructure differences.

Option What you get What I watch
Balanced General-purpose workload option Whether the workload needs a different resource balance
Memory Optimized Memory-oriented SKU family Actual application data requirements and reserved overhead
Compute Optimized Compute-oriented SKU family Workload characteristics and processing requirements
Flash Optimized Flash-oriented SKU family Compatibility with the intended workload
Entra ID authentication Identity-based authentication support Application identity and access configuration
New Redis endpoint New DNS suffix Every application and worker using the connection

The detailed comparison is available in Microsoft’s Azure Managed Redis differences documentation.

My view: the migration is a useful opportunity to improve the architecture, but only if the team understands what its existing Redis deployment actually does.

Should I migrate Redis myself or use Microsoft’s migration tooling?

Microsoft documents two migration approaches. Its recommendation is Option 1, the self-service migration path, for most customers.

I would start there unless there is a specific reason to prefer the built-in tooling.

Option 1: Self-service migration

This approach gives the application team control over the migration sequence.

The general process is:

  1. Create a new Azure Managed Redis instance.
  2. Migrate the existing data.
  3. Update the application to connect to the new instance.
  4. Verify that the application works as expected.
  5. Delete the old instance after verification.

The biggest advantage is control over the cutover.

You decide when the application starts using the new Redis instance. That allows the team to prepare the target environment, test application behavior and coordinate the change with its deployment process.

This approach also supports geo-replicated caches. Microsoft explains that you can add instances to the replication group one at a time.

For teams with multiple application components, that flexibility matters. Different consumers can be identified, tested and updated as part of a controlled migration plan.

Option 2: Built-in migration tooling

The second approach uses Microsoft’s migration tooling to convert the existing instance.

One attraction is that the migration keeps the same hostname and access key. This can reduce the number of connection-setting changes required by applications.

However, the trade-off is significant.

You do not control exactly when traffic cutover happens. Once migration begins, it cannot be paused, cancelled or rolled back. Geo-replicated caches are also not supported through this approach.

That makes it important to understand the operational implications before starting.

I would not choose a migration method solely because it appears to require fewer configuration changes. Keeping a hostname is convenient, but controlling the timing of a production change may be more valuable.

My preference

For most small teams, I would favor self-service migration.

It gives the team an explicit opportunity to validate the new environment before directing application traffic toward it. It also makes the migration easier to coordinate with configuration management, deployment procedures and application-level testing.

Microsoft also provides a migration agent skill for Azure Cache for Redis Enterprise to help with migration planning.

That is worth investigating when preparing the implementation, but I would still treat the actual migration decisions as an engineering responsibility.

The official comparison is in Microsoft’s Azure Redis migration options documentation.

A cream origami warehouse with a terracotta roof stands open under a glowing paper lamp, its shelves stacked with cream, orange, green and terracotta folded-paper boxes, while an older gray warehouse sits across a river connected by an orange paper bridge.

How would I prepare an AI agent stack for migration?

I would approach this as an application dependency migration, not simply a Redis infrastructure replacement.

The first step is to understand every place Redis participates in the system. Only then would I provision the destination and schedule the cutover.

Here is the sequence I would follow.

1. Inventory every Redis instance

Create an inventory covering:

  • Existing Azure Cache for Redis instances.
  • Tier and region.
  • Application environments using each instance.
  • Connected applications and background workers.
  • Geo-replication arrangements, where applicable.
  • Configuration and secret locations.

The purpose is to establish which deployments are affected by the 2027 deadline.

2. Map the key spaces

For each instance, document what its data represents.

I would classify keys into four practical groups:

  • Conversation memory and session state.
  • Semantic cache and temporary application cache.
  • Job queues and background task state.
  • Rate limits and request-control data.

Then identify whether each category can be reconstructed, restored or must be preserved.

This is especially important for agent applications. A cache entry that can be regenerated from a source document is different from a conversation state that cannot easily be recovered.

3. Select the destination SKU family

Evaluate the workload and choose an appropriate Azure Managed Redis SKU family.

Account for the approximately 20% memory reservation when comparing capacity. Do not assume the previous deployment’s apparent memory allocation is directly equivalent.

4. Build a staging environment

Create the Azure Managed Redis instance in staging.

Configure Microsoft Entra ID authentication and verify that the application’s identity has the necessary access.

I would also test the actual Redis operations used by the application against the new service. Connection success is only the beginning of compatibility testing.

5. Update configuration and secrets

Review all connection references.

This includes:

  • Application environment variables.
  • Deployment configuration.
  • Secret stores.
  • Background workers.
  • Scheduled jobs.
  • Agent orchestration services.
  • Monitoring and operational configuration.

Update the hostname from the previous DNS suffix to the new one wherever applicable.

I would avoid scattering connection details across multiple configuration files. Centralizing them makes the migration easier to reason about and reduces the chance of leaving an old endpoint behind.

6. Replay or warm the required caches

Not every Redis key needs to be copied or preserved.

Some data can be regenerated. Other data needs to be migrated or restored before application traffic is redirected.

I would identify which categories need warming, which can be replayed and which must be preserved as part of the migration.

For AI systems, this is particularly relevant to semantic caching. An empty cache may not break the application, but it can change how frequently retrieval and model-generation operations are executed.

7. Test complete agent sessions

I would test more than individual Redis commands.

A complete test should cover:

  • Starting a new agent conversation.
  • Continuing an existing conversation.
  • Retrieving stored session information.
  • Executing a semantic-cache lookup.
  • Handling a cache miss.
  • Applying rate limits.
  • Processing background tasks.
  • Recovering from an interrupted workflow where applicable.

The goal is to establish that the application still behaves correctly across the full interaction lifecycle.

8. Plan the cutover and verification

Choose a quiet operational window.

For the self-service path, redirect application consumers to the new instance, verify the important workflows and keep the old instance until the new environment has been confirmed.

I would not delete the previous deployment simply because the new connection succeeds. The decision should follow application-level verification.

For teams that need help reviewing their Azure architecture, my Cloud & Agent Infrastructure services cover the infrastructure side of production systems. For application-level agent workflows, see AI Agents & Automation.

What should founders and small teams prioritize before March 2027?

The biggest mistake would be treating the retirement deadline as something to address only when the application is ready for its next major release.

Infrastructure dependencies tend to become more complicated as products grow. A Redis instance that initially supports a single chatbot may eventually serve several agents, background workers and application services.

That makes an early inventory valuable even if the actual migration happens in stages.

I would use the following checklist as a practical starting point.

Azure Cache for Redis Enterprise migration checklist

  • Identify every Azure Cache for Redis Enterprise and Enterprise Flash instance.
  • Record the region and deployment tier for each instance.
  • Identify every application and worker connected to Redis.
  • Document the purpose of each Redis key space.
  • Separate rebuildable cache data from important application state.
  • Review geo-replication requirements.
  • Select an appropriate Azure Managed Redis SKU family.
  • Account for the system memory reservation.
  • Review Redis 7.4 compatibility against existing application operations.
  • Prepare Microsoft Entra ID authentication.
  • Create and configure the staging instance.
  • Update hostnames, connection strings and secrets.
  • Test agent sessions and background workflows.
  • Prepare the cache migration or warming strategy.
  • Schedule a controlled production cutover.
  • Keep the previous instance until the new deployment is verified.
  • Complete the Enterprise migration well before March 31, 2027.

There is also an important documentation consideration.

Microsoft notes that some management operations, regions and SKU sizes are not yet available in Azure Managed Redis. That means teams should not assume every existing configuration has an immediately available equivalent.

Check the official retirement FAQ and migration documentation before provisioning, selecting a migration path or making production changes.

I would also avoid treating the documentation reviewed today as permanently fixed. Platform capabilities and migration guidance can evolve, so the official pages should remain part of the implementation checklist.

What is my 2027 plan for Redis-backed agent memory?

My approach is to separate the migration into three decisions: what must be preserved, what can be rebuilt and what needs to change in the application.

Those decisions are more important than the mechanics of creating a new Redis instance.

For AI products, memory is not one thing. Conversation state, semantic caching, queues and rate limits serve different purposes. A migration plan that treats all of them as interchangeable key-value data misses the application-level dependencies.

I would also use this transition to review authentication. Moving toward Microsoft Entra ID is an opportunity to make access management more deliberate rather than carrying forward assumptions about shared credentials.

The Enterprise deadline is the immediate priority, but teams using Basic, Standard or Premium should not ignore the subsequent 2028 retirement.

My broader engineering principle is straightforward: infrastructure migrations should improve the clarity of the system, not just move its dependencies somewhere else.

Key takeaways

  • Azure Cache for Redis Enterprise and Enterprise Flash retire March 31, 2027, and are disabled starting April 1, 2027.
  • Basic, Standard and Premium follow on September 30, 2028.
  • Azure Managed Redis introduces Redis 7.4, Microsoft Entra ID authentication and a new DNS suffix.
  • Self-service migration is Microsoft’s recommended approach for most customers because it provides control over cutover.
  • Map conversation memory, semantic caches, queues and rate limits before deciding what to migrate.
  • Test complete agent workflows before retiring the previous infrastructure.

If you are building or operating AI agents, chatbots or RAG applications on Azure, this is a good time to review the infrastructure underneath them.

Let’s discuss your cloud and agent infrastructure requirements.

I also share practical engineering observations, infrastructure changes and production-focused AI insights through the Production Notes newsletter. Sign up on turjo.me to follow future field notes.

— Rezaul Hoque Turjo, Founder, NextCTL

FAQ

When is Azure Cache for Redis retired?

Azure Cache for Redis Enterprise and Enterprise Flash tiers retire on March 31, 2027, and are disabled starting April 1, 2027. Basic, Standard and Premium tiers retire on September 30, 2028, and are disabled starting October 1, 2028. Microsoft recommends moving to Azure Managed Redis rather than waiting for the deadlines.

What happens to my Redis Enterprise cache after March 31, 2027?

Microsoft disables Azure Cache for Redis Enterprise instances starting April 1, 2027. Applications that still depend on those instances may lose access to the Redis functionality they require, including session memory, caching, queues or rate limiting. Plan and validate the migration before the retirement deadline rather than relying on the existing deployment afterward.

Should I use the migration tooling or migrate myself?

Microsoft recommends self-service migration for most customers. It allows you to create a new Azure Managed Redis instance, migrate data and decide when application traffic moves. Built-in migration tooling retains the same hostname and access key, but you cannot control cutover timing or pause, cancel or roll back once migration begins.

Do I need to change my Redis hostname when moving to Azure Managed Redis?

Yes, when using the self-service migration path, the DNS suffix changes from redisenterprise.cache.azure.net to redis.azure.net. Update application configuration, secrets, workers and other Redis consumers accordingly. Microsoft’s built-in migration tooling retains the same hostname and access key, which is one of its differences from the self-service approach.

next

next

Founder & CEO, NextCTL

The Production Notes

One practical blog post a week on AI agents, production systems, and building an AI-native company. No fluff, no forwarded hype.

The Production Notes

One practical blog post a week on AI agents, production systems, and building an AI-native company. No fluff, no forwarded hype.

Please wait...

Done. First essay lands this week.

The Production Notes

One practical blog post a week on AI agents, production systems, and building an AI-native company. No fluff, no forwarded hype.
One practical post a week. No hype.