A lot of the first business agents on Azure were built on the Assistants-style threads-and-runs model.
Microsoft now says those agents (classic) retire on March 31, 2027, and the threads they stored don’t move by themselves.
The Foundry Agents classic retirement means Azure teams must move classic agents to the new Foundry Agent Service before March 31, 2027. Threads and runs become conversations and responses, some tools need replacing, and stored conversation history does not migrate automatically, so I plan code, tools, state and the project move as separate workstreams.
I would approach this Azure AI Foundry Agent Service migration as an application migration rather than a routine SDK update.
The agent definition is only one part of a working business assistant. There are also conversations, tool integrations, permissions, application records and decisions about how much historical context the assistant needs.
This is the migration plan I would use for a small team running Azure-hosted business agents.
What happens to Foundry Agents (classic) on March 31, 2027?
Microsoft has deprecated Foundry Agents (classic) and announced that they will retire on March 31, 2027.
The announcement appears in the official Foundry Agent Service (classic) release notes, which direct developers towards the generally available Microsoft Foundry Agent Service and its migration documentation.
The practical implication is straightforward: plan to stop depending on classic agents before the retirement date.
This matters for applications such as:
- Customer support assistants that maintain conversation history.
- Internal research agents that retrieve company information.
- Document Q&A assistants connected to knowledge sources.
- Operational agents that call business systems and external tools.
Microsoft also explains that new features and model support are being added to the new agents rather than the classic implementation.
I would establish that dependency list before changing anything.
What changes when threads and runs become conversations and responses?
The new Foundry Agent Service uses the Responses API instead of the older Assistants API.
According to Microsoft’s Foundry Agent Service migration guide, threads and runs are replaced by conversations and responses.
In the classic implementation, an application could create an agent, establish a thread, add messages and create a run against that thread.
In the new implementation, the application works with agent versions, conversations and responses.
Adding conversation items moves to conversations.items.create(), replacing the classic client.agents.messages.create() approach.
Agent creation also changes. Instead of create_agent(), the migration guide directs developers towards create_version(), with explicit kind, model and instructions fields.
There is another architectural distinction worth understanding: agent creation and versioning remain responsibilities of the project client, while conversation and response operations use the OpenAI client obtained from that project.
In Python, that client is available through project.get_openai_client(). In JavaScript, the corresponding method is project.getOpenAIClient().
For JavaScript migrations, Microsoft’s guide specifies Node.js 22 or later with @azure/ai-projects 2.8.0.
I would review the application code that connects these operations rather than treating the migration as a search-and-replace exercise.
In particular, I would check how the application associates its own users, sessions and business records with the identifiers returned by the agent service.
Those relationships are part of the application’s behaviour, even when they are not part of the agent definition itself.

Which classic agent tools need to be rebuilt?
Not every classic agent tool has a direct equivalent in the new service.
Microsoft’s migration guide includes a tool compatibility table. I would compare that table against the actual tools configured for each agent before beginning implementation.
Two examples deserve particular attention.
Connected Agents: Microsoft does not list this classic tool as carrying over directly. Its recommended alternative is the A2A tool.
Deep Research: The classic tool does not carry over as-is. Microsoft recommends using a Deep Research model with the Web Search tool.
I would document what each tool currently does, what information it receives, what external systems it accesses and whether it can make changes outside the agent.
A common pattern: an internal research assistant retrieves documents, delegates part of a question to another agent and prepares a summary. Replacing the delegation mechanism requires checking how information moves between those components, not merely whether the final response looks reasonable.
This is also a useful opportunity to re-check what each agent tool is allowed to do.
I would explicitly review authentication, permitted operations, human approval requirements and the application’s handling of unsuccessful tool calls.
If you are planning an Azure-hosted agent migration and need help reviewing its architecture, tool dependencies or conversation state, get in touch. I would start with the existing application rather than assume everything needs rebuilding.
Why does conversation history need its own migration plan?
Microsoft provides a migration tool on GitHub that converts code constructs, including agent definitions and the creation of threads, messages and runs.
However, Microsoft explicitly distinguishes code migration from state migration.
The tool does not migrate historical runs, threads or messages.
A common pattern: a customer support assistant maintains a conversation about an unresolved request. The customer returns later and expects the assistant to understand the earlier discussion. If the application switches to a new conversation without preserving the necessary context, that continuity may be lost.
I would decide which historical information matters before moving the application.
Not every historical message necessarily needs to become part of a new conversation. Some records may belong in an application database or an archive rather than in the active context supplied to a model.
My approach would distinguish between active conversations, historical business records, information required for future assistance and records that no longer need to be retained.
Where history must be preserved, I would design and test an appropriate export process while the existing application remains accessible.
I would also keep a mapping between existing application records and their replacement conversation identifiers where continuity is required.

How do I move from a hub-based project to a Foundry project?
The project migration introduces a separate set of considerations.
Microsoft’s guide to migrating hub-based projects to Foundry projects identifies resources that transfer and resources that do not.
Model deployments, data files, fine-tuned models and vector stores are among the resources Microsoft lists as transferable.
Preview agent state, including messages, threads and files, does not transfer. Microsoft directs developers towards recreating their agents in code within the new project.
The guide also identifies open-source model deployments and hub project access as items that do not transfer.
I would create a Foundry project on the Foundry resource, review and recreate the necessary connections, and configure the new application client to use the project endpoint.
The documented endpoint format is:
text
https://resource_name.services.ai.azure.com/api/projects/project_name
The following is how I would translate the main migration changes into an engineering review.
| Classic piece | What Microsoft says replaces it | What I check |
|---|---|---|
| Assistants API | Responses API | Application request and response handling |
| Threads | Conversations | User sessions and conversation identifiers |
| Runs | Responses | Execution handling and application behaviour |
| Message creation | conversations.items.create() |
Message content and conversation continuity |
create_agent() |
create_version() |
Agent kind, model and instructions |
| Connected Agents | A2A tool recommended | Delegation and information boundaries |
| Deep Research | Deep Research model with Web Search tool recommended | Research workflow and output quality |
| Hub-based project | Foundry project | Connections, access and required features |
| Historical agent state | No automatic state migration | Export, retention and reconstruction |
I would pay particular attention to project access because hub projects cannot see the new projects.
For me, the project migration and the agent migration are related workstreams, but each needs its own validation.
How would I run the migration before retirement?
I prefer migrations that allow the existing application to remain available while its replacement is being evaluated.
The same principle applies here as in my notes on moving between agent framework versions: understand the application dependencies, establish expected behaviour and introduce the replacement in a controlled way.
This is the checklist I would follow.
- Inventory classic agents, application dependencies and configured tools.
- Identify which agents support active business processes.
- Decide which historical conversations and records must be retained.
- Check the Foundry project feature support matrix.
- Create a separate Foundry project for migration testing.
- Recreate and validate required project connections.
- Run Microsoft’s code migration tool on a dedicated development branch.
- Recreate agent definitions using
create_version(). - Replace thread, message and run operations with the new equivalents.
- Rebuild incompatible tool integrations and approval workflows.
- Export and preserve required historical state separately.
- Run the same evaluation set against the classic and new agents.
- Review conversation continuity, permissions and tool behaviour.
- Cut over individual agents with a defined rollback window.
- Complete the transition well before March 31, 2027.
The evaluation set is particularly important.
I would include representative business questions, multi-turn conversations, document retrieval requests, tool failures and situations where the assistant must request human approval.
I would also review the operational visibility available to the team. My broader approach to operating AI agents in production treats monitoring, evaluation and controlled changes as ongoing responsibilities rather than activities reserved for launch.
During the cutover, I would keep the classic implementation available as a rollback option only while it remains supported and accessible.
Rollback should also account for conversations created after the switch. Otherwise, restoring the old application configuration could introduce another discontinuity in user history.
What would make me reconsider the migration approach?
Microsoft acknowledges that Foundry projects have not yet reached full feature parity with hub-based projects.
Before committing to a replacement architecture, I would check the current feature support matrix against the capabilities the application actually requires.
Where an essential capability is missing, I would investigate alternatives rather than assume it will become available before retirement.
Preview capabilities also deserve separate consideration because their behaviour and availability can change.
The approach described here is a proposed engineering method based on Microsoft’s published documentation, not a report of a completed Foundry migration. Application-specific decisions require inspecting the actual implementation and its dependencies.
Key takeaways
- Foundry Agents (classic) retire on March 31, 2027.
- Conversations and responses replace threads and runs.
- Agent creation moves towards explicitly defined agent versions.
- Some classic tools require different integrations.
- Historical agent state does not migrate automatically.
- Foundry project feature compatibility needs checking before cutover.
- Code conversion, state preservation and behavioural evaluation are separate migration responsibilities.
My priority would be preserving the business function of the agent, not reproducing every implementation detail of the classic architecture.
The retirement creates a reason to review those details now, while there is still an opportunity to test the replacement alongside the existing application.
For teams working through similar changes, my cloud and agent infrastructure services and AI agent development and automation services cover the architecture, integration and operational aspects of these systems.
If you are responsible for an Azure-hosted business agent, start by identifying its dependencies and deciding what conversation history must survive the move.
I also share practical engineering decisions, migration considerations and production architecture notes through my Production Notes newsletter. Sign up to follow future field notes.
— Rezaul Hoque Turjo, Founder, NextCTL
FAQ
When do Foundry Agents (classic) retire?
Microsoft has announced that Foundry Agents (classic) retire on March 31, 2027. The classic service is already deprecated, and Microsoft directs developers towards the generally available Foundry Agent Service. I would plan to complete application migration, tool compatibility checks, state preservation and behavioural testing before the retirement date rather than use it as the cutover target.
Do my threads and messages migrate to the new Foundry Agent Service?
No. Microsoft’s migration tool converts code constructs but does not migrate historical runs, threads or messages. Preview agent state also does not transfer automatically during the hub-based project migration. Application owners should determine which historical information must be preserved, design an appropriate export process and decide how that information will be associated with new conversations or retained separately.
What replaces threads and runs in Foundry?
Conversations replace threads, and responses replace runs. The new Foundry Agent Service is built on the Responses API instead of the older Assistants API. Developers use the project client for agent creation and versioning, while conversation and response operations use the OpenAI client obtained from the project. Adding conversation items uses conversations.items.create().
Do I have to move from a hub-based project to a Foundry project?
For applications using the classic hub-based project architecture, moving to the new Foundry Agent Service involves establishing a Foundry project and configuring the application to use its project endpoint. Microsoft documents which resources transfer and which do not. Because feature parity is not yet complete, teams should check the support matrix and recreate necessary connections before switching production workloads.