Migrate Agents created using Azure AI foundry > Azure AI Hub > Projects > Agents to Azure AI Foundry > Projects > Agents

67050851 0 Reputation points
2025-05-26T14:28:04.2433333+00:00

I have multiple agents with vector store and files added to vector store in a Azure AI hub based projects. But looking at the sdk, latest version is only supporting to Azure AI Foundry based projects. How can i migrate these agents to Azure AI Foundry based projects.

https://learn.microsoft.com/en-us/azure/ai-foundry/what-is-azure-ai-foundry#which-type-of-project-do-i-need

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,604 questions
{count} votes

2 answers

Sort by: Most helpful
  1. SriLakshmi C 6,010 Reputation points Microsoft External Staff Moderator
    2025-05-26T17:17:18.67+00:00

    Hello @67050851,

    Yes, you're correct Microsoft is transitioning from Azure AI Hub–based projects to Azure AI Foundry–based projects, and the latest SDK versions now support only the Foundry-based setup. If you have agents built under AI Hub, migration to Foundry requires a manual but straightforward process, as there is no automated migration path at this time.

    Here's are some steps to consider doing:

    Before migrating, make sure you've set up a new Azure AI Foundry project. You can follow the quickstart guide to create it.

    You will need to switch your code to use the updated SDK methods for Azure AI Foundry. As outlined in the migration guides, the way you create clients, agents, and upload files has changed. Ensure that you refer to the .NET Migration Guide or the Python Migration Guide to adjust the code you’re using.

    Since a direct migration path is not available, you’ll need to manually recreate the agents in the new Azure AI Foundry project. Be sure to document any associated vector stores or files from the original setup, and re-upload them using the updated SDK methods.

    After completing the migration, review your existing codebase to ensure compatibility. Since endpoint URLs and authentication methods differ in Azure AI Foundry, make sure to update all relevant connection settings accordingly.

    Foundry projects use different endpoints and authentication mechanisms. Update your environment configuration and code to reflect these new details for smooth integration.

    I hope this helps, do let me know if you have further queries.

    Thank you!

    0 comments No comments

  2. 67050851 0 Reputation points
    2025-05-27T07:56:17.7366667+00:00

    Will the hub based projects be phased out? can you confirm please. It should not happen that we migrate 100s of hub based agents only to find out hub based projects are also GA.

    Check this https://github.com/Azure/azure-sdk-for-python/issues/41197 where some one from microsoft said to use previous version of SDK for time being. What does that mean, does it mean that support for hub based projects in next version of SDK is expected?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.