Skip to main content

Azure AI Foundry News & Changes

·899 words·5 mins
AI Agents Foundry Azure VS Code MS Build
Author
Alexander Ullah
Table of Contents

Intro
#

In this short blog post, I want to share with you some of the news and changes from Microsoft Build 2025 around Azure AI Foundry. For example, the Azure AI Foundry Agent Service aka Azure AI Agent Service is now GA. The blog post for the GA announcement can be found here. Additionally, there were plenty of new public preview features for Azure AI Foundry announced, such as Connected Agents, Model Router, Tracing and many more. A summary of the Azure AI Foundry announcements can be found here. I am not going to cover every feature in this blog post, instead we are going to focus on the introduced changes and tease some of the VS Code related capabilities.

New resources & changes
#

As mentioned above, besides all the new announcements, there were some changes around the Azure AI Foundry resources and APIs. The former construct was built with Hub-based projects hosted in an Azure AI Foundry Hub.

Hub

This is now being replaced by Foundry projects built on an Azure AI Foundry resource. This provides a simplified setup and coding, improved governance and management.

Foundry

Compared to the five Azure resources required for the old construct (Key Vault, AI Services, Storage Account, Azure AI Hub, Azure AI Project), it only needs one Azure AI Foundry and a project resource for the new approach.

Resources

There is a great blog article covering the changes, here. In terms of capabilities of the different project types, there is a comparison matrix and additional information to be found, here.

API & SDK changes
#

From an API and SDK perspective, there were also a couple of changes introduced to unify the development of the core building blocks of your AI application. Here are a few examples:

  • Connecting via the PROJECT_CONNECTION_STRING is not possible anymore and got changed to PROJECT_ENDPOINT, see following example:
# create ai project client
project_client = AIProjectClient(
  endpoint=PROJECT_ENDPOINT,
  credential=DefaultAzureCredential()
)

The AI Foundry project endpoint url can be found under the Overview tab of your project, see following screenshot:

Project endpoint

  • Creating a thread changed from project_client.agents.create_thread to project_client.agents.threads.create, see following example:
# create a thread
thread = project_client.agents.threads.create()
  • Creating a message changed from project_client.agents.create_message to project_client.agents.messages.create
# create a message
message = project_client.agents.messages.create(
    thread_id=thread.id,
    role="user",
    content="Who is the greatest Basketball player of all time?",
    )
  • Creating a run changed from project_client.agents.create_and_process_run to project_client.agents.runs.create_and_process, see example here:
# ask the agent to perform work on the thread
run = project_client.agents.runs.create_and_process(thread_id=thread.id, agent_id=agent.id)

The blog post here introduces the new Azure AI Foundry API and SDK with various examples.

If you were following my previous blog posts about Azure AI Agent Service and Azure AI Foundry, you will notice that the code on the blog posts is still using the old approach. However, on the referenced GitHub repo, I have already changed the code to work with the latest changes.

Build and deploy Azure AI Foundry Agents via VS Code
#

If you haven’t done it already, you should take a look at the Azure AI Foundry VS Code extension (currently in Preview). It allows you to build, test, and deploy Azure AI Foundry Agents from within VS Code. Agents and tools can be defined via yaml files as you can see in the following screenshot:

VS Code - Foundry Agent yaml

Additionally, they can be defined and deployed via a graphical editor in VS Code, as you can see here:

VS Code - Foundry Agent editor

Check out the following blog post and the documentation link here if you are keen to learn more about working with Azure AI Foundry from within VS Code.

Open in VS Code workflow
#

Another nice little new feature is the option to open a VS Code for the Web session directly from the Azure AI Foundry Agent playground.

Foundry playground

From the sample code page, you can press Open in VS Code.

Open in VS Code

This will open a VS Code for the Web session.

VS Code for the Web

If you want to learn more about this feature, have a look at the following blog post.

Infrastructure templates
#

In terms of infrastructure deployment, you can find bicep templates creating the new Azure AI Foundry resources here.

Summary
#

If you are already using Azure AI Foundry and you are using the Hub-based construct, you can continue using it, as it will remain accessible for now. However, if you are not using any feature that is solely available on Hub-based projects, you should consider moving to the new Foundry-based projects, as new capabilities and services in GA (e.g., Foundry Agent Service & Foundry API) will only be made available there.

As I spend most of my time in VS Code, I love the integration to Azure AI Foundry via the extension. It simply is a big time saver, and I can iterate fast from within VS Code. If you haven’t, you should definitely check it out.

Sources
#