Skip to content

Commit 6d4e964

Browse files
Merge pull request #53688 from ivorb/genai-agents-updates
Genai agents updates
2 parents b14e695 + b468bbd commit 6d4e964

16 files changed

Lines changed: 127 additions & 246 deletions
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
You've learned how to develop AI agents using Microsoft Foundry Agent Service through both the Foundry portal and Visual Studio Code. These flexible development approaches enable you to create intelligent automation that handles complex tasks, accesses real-time data, and integrates seamlessly with your applications.
22

3-
Throughout this module, you discovered what AI agents are and why they're valuable for automating workflows and enhancing decision-making. You explored the key features of Microsoft Foundry Agent Service, including automatic tool calling, secure data management, and enterprise-grade security. You learned to build agents using both the visual Foundry portal and the developer-focused VS Code extension, understanding when each approach fits best.
3+
Throughout this module, you discovered what AI agents are and why they're valuable for automating workflows and enhancing decision-making. You explored the key features of Microsoft Foundry Agent Service, including the two primary agent types — declarative agents (configured through visual designers and YAML) and hosted agents (created and deployed through code). You learned to build agents using both the visual Foundry portal and the developer-focused VS Code extension, understanding when each approach fits best.
44

5-
You configured agents with clear instructions that define their behavior and personality. You extended agent capabilities by adding tools like Code Interpreter, File Search, and Bing Search, transforming simple chat interfaces into sophisticated automation systems. You tested agents using integrated playgrounds, deployed them to production environments, and generated integration code to connect agents with your applications.
5+
You configured agents with clear instructions that define their behavior and personality. You extended agent capabilities using the tool catalog, which provides built-in tools like Code Interpreter, File Search, Bing Web Search, Azure AI Search, and many more, transforming simple chat interfaces into sophisticated automation systems. You tested agents using integrated playgrounds, deployed them to production environments, and generated integration code to connect agents with your applications.
66

77
With these skills, you can create AI agents that automate routine tasks, provide intelligent assistance, and integrate with your existing systems. Whether you're building customer service automation, developer productivity tools, or specialized research assistants, Microsoft Foundry Agent Service provides the foundation for reliable, scalable AI solutions.
88

@@ -14,14 +14,3 @@ Continue building your AI agent expertise with these resources:
1414
- [Microsoft Foundry documentation](/azure/ai-foundry/) - Explore detailed guides and API references
1515
- [GitHub Copilot fundamentals](/training/paths/copilot/) - Learn about AI agent applications in software development
1616

17-
## Clean up resources
18-
19-
If you created Azure resources for exercises in this module and no longer need them:
20-
21-
1. Navigate to the Azure portal at https://portal.azure.com
22-
1. Locate your resource group containing the AI Foundry resources
23-
1. Select **Delete resource group**
24-
1. Confirm deletion by typing the resource group name
25-
1. Select **Delete** to remove all resources
26-
27-
Deleting unused resources prevents unnecessary charges to your Azure subscription.

learn-pr/wwl-data-ai/develop-ai-agents-azure-vs-code/includes/2-understand-ai-agents-foundry.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,37 @@ Microsoft Foundry Agent Service is a fully managed service designed to empower d
7777

7878
Previously, creating agent-like experiences required significant coding effort using standard APIs. Microsoft Foundry Agent Service handles the complexity through a streamlined interface, enabling you to build agents via the Foundry portal or in your own applications with fewer than 50 lines of code.
7979

80+
### Agent types
81+
82+
Microsoft Foundry supports two primary types of agents:
83+
84+
**Declarative agents** - Agents defined through configuration rather than code. Declarative agents come in two forms:
85+
86+
- **Prompt-based agents** - A single agent configured with a model, instructions, tools, and prompts. This is the most common type and the focus of this module.
87+
- **Workflow agents** - Multi-agent orchestrations defined in YAML, enabling complex scenarios where multiple agents collaborate to complete tasks.
88+
89+
**Hosted agents** - Containerized agents that are created and deployed in code, then hosted by the Foundry platform. Hosted agents give you full control over agent logic and execution while the platform manages infrastructure.
90+
91+
Understanding these agent types helps you choose the right approach for your scenarios. This module focuses primarily on declarative prompt-based agents, which provide the most accessible path to getting started.
92+
8093
### Key features of Microsoft Foundry Agent Service
8194

8295
The service offers several powerful capabilities:
8396

8497
**Automatic tool calling** - The service handles the entire tool-calling lifecycle, including running the model, invoking tools, and returning results. This eliminates complex integration code.
8598

86-
**Securely managed data** - Conversation states are securely managed with `conversations`, removing the need for manual state management.
99+
**Securely managed data** - Conversation states are securely managed through the Responses API, removing the need for manual state management.
87100

88-
**Out-of-the-box tools** - Built-in tools support file retrieval, code interpretation, and interaction with data sources like Bing, Azure AI Search, and Azure Functions.
101+
**Extensive tool catalog** - A rich set of built-in and community tools extends agent capabilities beyond text generation, including code execution, file search, web search, and integrations with Azure services and external APIs.
89102

90103
**Model selection** - Choose from [various AI models](/azure/ai-foundry/agents/concepts/model-region-support?tabs=global-standard#available-models) to match your performance and cost requirements.
91104

92-
**Enterprise-grade security** - The service ensures data privacy and compliance with secure data handling and keyless authentication.
105+
**Enterprise-grade security** - The service ensures data privacy and compliance with secure data handling, keyless authentication, and built-in content safety filters.
93106

94107
**Customizable storage solutions** - Use platform-managed storage or bring your own Azure Blob storage for full visibility and control.
95108

109+
**Observability and tracing** - Built-in monitoring capabilities help you track agent behavior, debug issues, and optimize performance in production.
110+
96111
These features provide a streamlined and secure way to build and deploy AI agents compared to developing with the Inference API directly.
97112

98113
> [!NOTE]

learn-pr/wwl-data-ai/develop-ai-agents-azure-vs-code/includes/3-explore-development-approaches.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,27 @@ The Microsoft Foundry extension for Visual Studio Code brings enterprise-grade A
2222

2323
### Key capabilities of the VS Code extension
2424

25-
The extension provides comprehensive agent development features:
25+
The extension organizes its features into three main sections:
2626

27-
**Agent discovery and management** - Browse, create, and manage AI agents within your Microsoft Foundry projects directly from VS Code.
27+
**Resources** - Browse and manage your Foundry project assets directly from VS Code, including:
28+
- **Deployed models** - View and manage model deployments
29+
- **Declarative agents** - View and configure prompt-based and workflow agents
30+
- **Hosted agents** - View and manage containerized, code-deployed agents
31+
- **Connections** - Manage connections to external services
32+
- **Vector stores** - Organize document collections for File Search
2833

29-
**Visual agent designer** - Use an intuitive interface to configure agent instructions, tools, and capabilities without leaving your editor.
34+
**Tools** - Access development and testing capabilities:
35+
- **Model Catalog** - Browse and deploy models from the catalog
36+
- **Model Playground** - Experiment with models directly
37+
- **Agent Playgrounds** - Test agents using remote or local playgrounds
38+
- **Local Visualizer** - Debug and visualize agent behavior locally
39+
- **Deploy Hosted Agents** - Deploy containerized agents to production
3040

31-
**Integrated testing** - Test agents in real-time using the built-in playground without switching contexts or opening additional applications.
41+
**Help and Feedback** - Access documentation and support resources.
3242

33-
**Code generation** - Generate sample integration code to connect agents with your applications, accelerating the path from prototype to production.
43+
The extension also provides a visual **Agent Designer** for configuring agent properties, integrated **code generation** for application integration, and direct **YAML configuration** editing for precise control.
3444

35-
**Deployment pipeline** - Deploy agents directly to Microsoft Foundry for production use through streamlined commands.
36-
37-
**YAML configuration** - Access and edit agent configuration files directly, providing both visual and code-based workflows.
38-
39-
![Screenshot of an agent details in the Microsoft Foundry VS Code extension.](../media/vs-code-agent.png)
45+
![Screenshot of the Microsoft Foundry VS Code extension interface showing the Resources, Tools, and Help and Feedback sections.](../media/vs-code-agent.png)
4046

4147
### When to use Visual Studio Code
4248

@@ -55,8 +61,8 @@ The extension installs directly from the Visual Studio Code Marketplace and conn
5561
Regardless of your chosen approach, agent development follows a consistent pattern:
5662

5763
1. **Connect** to your Microsoft Foundry project
58-
1. **Create** an AI agent with a descriptive name and purpose
59-
1. **Configure** agent instructions defining its behavior and capabilities
64+
1. **Create** an AI agent in the Foundry portal with a descriptive name and purpose
65+
1. **Configure** agent instructions defining its behavior and capabilities (in the portal or VS Code)
6066
1. **Add tools** to extend what the agent can do
6167
1. **Test** the agent using integrated playgrounds
6268
1. **Iterate** on the design based on test results
@@ -72,7 +78,7 @@ Both development approaches require the same underlying Azure resources. To deve
7278
- **Microsoft Foundry project** - Organizes your agents, models, and related assets in one place
7379
- **Model deployments** - Deployed AI models (such as GPT-4.1 or Claude Sonnet 4.6) that power your agents
7480

75-
When you create a Microsoft Foundry project, the necessary infrastructure is provisioned automatically. As you add capabilities to your agents, such as File Search or custom tools, the service seamlessly integrates any required supporting services behind the scenes. If you choose to extend the capabilities of your agent even further, for example with Foundry IQ, you may need to deploy some addition Azure services.
81+
When you create a Microsoft Foundry project, the necessary infrastructure is provisioned automatically. As you add capabilities to your agents, such as File Search or custom tools, the service seamlessly integrates any required supporting services behind the scenes. If you choose to extend the capabilities of your agent even further, for example with Foundry IQ, you may need to deploy some additional Azure services.
7682

7783
### Optional Azure services
7884

learn-pr/wwl-data-ai/develop-ai-agents-azure-vs-code/includes/4-build-agent-azure-portal.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Foundry portal streamlines agent creation through an intuitive interface:
66

77
1. **Navigate to Microsoft Foundry** at https://ai.azure.com and sign in with your Azure credentials
88
1. **Select your project** from the list of available projects, or create a new one
9-
1. **Navigate to Agents** in the left navigation menu
9+
1. **Select Build > Agents** in the left navigation menu
1010
1. **Select Create** to start building a new agent
1111
1. **Enter agent details**:
1212
- **Name**: Provide a descriptive name for your agent
@@ -29,15 +29,13 @@ To test your agent, select the Playground tab and start a conversation. The play
2929

3030
## Adding basic tools
3131

32-
Before deployment, you can enhance your agent with basic capabilities:
32+
Before deployment, you can enhance your agent with tools from the tool catalog in the **Tools** section of the agent configuration (also accessible via **Build > Tools** in the portal). The catalog organizes tools into three categories:
3333

34-
**Code Interpreter** - Enables the agent to write and execute Python code for calculations, data analysis, and problem-solving.
34+
- **Configured** - Built-in tools ready to use immediately, such as Code Interpreter and File Search
35+
- **Catalog** - Additional tools you can add, including Bing Web Search, Azure AI Search, SharePoint, and more
36+
- **Custom** - Your own tools added through OpenAPI specifications or MCP servers
3537

36-
**File Search** - Allows the agent to search through uploaded documents to answer questions.
37-
38-
**Bing Search** - Connects your agent to real-time internet information.
39-
40-
You add these tools through the Tools section in the agent configuration. Tool capabilities are explored in detail in the *Extend agent capabilities* unit later in this module.
38+
Tool capabilities and configuration are explored in detail in the *Extend agent capabilities* unit later in this module.
4139

4240
## Deploying your agent
4341

learn-pr/wwl-data-ai/develop-ai-agents-azure-vs-code/includes/5-set-up-vs-code.md

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ Setting up Visual Studio Code for AI agent development brings enterprise-grade c
44

55
The Microsoft Foundry for Visual Studio Code extension provides direct access to Microsoft Foundry Agent Service capabilities. This extension creates an integrated experience for agent development that combines visual design tools with code-based configuration.
66

7-
![Screenshot of an agent details in the Microsoft Foundry VS Code extension.](../media/vs-code-agent.png)
7+
The extension organizes its features into three sections: **Resources** (for managing deployed models, declarative agents, hosted agents, connections, and vector stores), **Tools** (for accessing the model catalog, playgrounds, and deployment features), and **Help and Feedback**.
8+
9+
![Screenshot of the Microsoft Foundry VS Code extension interface showing the Resources, Tools, and Help and Feedback sections.](../media/vs-code-agent.png)
810

911
## Installing and configuring the extension
1012

@@ -14,7 +16,7 @@ Setting up the Microsoft Foundry extension takes just a few minutes and requires
1416

1517
1. Open Visual Studio Code on your machine
1618
1. Select **Extensions** from the left pane, or press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>X</kbd> (Windows/Linux) or <kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>X</kbd> (Mac)
17-
1. Search for **Microsoft Foundry** in the marketplace search box
19+
1. Search for **Foundry** in the marketplace search box
1820
1. Select the **Microsoft Foundry** extension from the results
1921
1. Select **Install** to add the extension to VS Code
2022
1. Wait for installation to complete (status appears in the Extensions panel)
@@ -23,20 +25,20 @@ After installation, the Microsoft Foundry icon appears in the VS Code activity b
2325

2426
### Connecting to Azure
2527

26-
Before creating agents, connect the extension to your Azure account and project:
28+
Before working with agents, connect the extension to your Azure account and project:
2729

28-
1. Select the **Microsoft Foundry** icon in the VS Code activity bar
29-
1. Select **Sign in to Azure** when prompted
30-
1. Complete authentication in your browser
31-
1. Return to VS Code after successful authentication
32-
1. Select your **Azure subscription** from the dropdown
33-
1. Choose your **Microsoft Foundry project** or create a new one
30+
1. Select the **Azure** icon in the VS Code activity bar
31+
1. In the **Azure Resources** pane, sign in to your Azure account if prompted
32+
1. Expand your **Azure subscription** in the resource tree
33+
1. Expand the **Foundry** section to see your projects
34+
1. Right-click your **Microsoft Foundry project**
35+
1. Select **Open in Foundry Extension**
3436

35-
The extension now displays your project resources, including existing agents, model deployments, and other assets.
37+
The extension now displays your project resources in the Microsoft Foundry panel, including existing agents, model deployments, connections, and vector stores.
3638

3739
## Preparing for agent development
3840

39-
Before creating your first agent in VS Code, ensure you have the necessary resources deployed.
41+
Before working with agents in VS Code, ensure you have the necessary resources deployed.
4042

4143
### Deploying a model
4244

@@ -52,24 +54,13 @@ Agents require deployed AI models to function. If you don't have a model deploym
5254
- **Capacity settings**: Configure throughput based on your needs
5355
1. Select **Deploy** and wait for deployment to complete
5456

55-
The deployed model becomes available in dropdown menus when you create or configure agents.
56-
57-
## Creating your first agent in VS Code
58-
59-
With the extension configured and a model deployed, you're ready to create an agent.
57+
The deployed model becomes available in dropdown menus when you configure agents.
6058

61-
### Agent creation process
62-
63-
1. In the **Microsoft Foundry** extension, navigate to the **Resources** section
64-
1. Find the **Agents** subsection
65-
1. Select the **+** (plus) icon next to Agents
66-
1. The extension opens two views:
67-
- **Agent Designer**: A visual interface for configuration
68-
- **YAML file**: The agent's configuration in code format
59+
## Working with agents in VS Code
6960

70-
![Screenshot of creating a new agent in the Microsoft Foundry VS Code extension.](../media/vs-code-create-new-agent.png)
61+
Agents are often created in the Foundry portal (as described in the previous unit) and then managed and configured in VS Code through the extension. Once you've created an agent in the portal, it appears automatically in the extension's **Resources** section.
7162

72-
Both views remain synchronized; changes in one automatically update the other. This dual approach lets you work with whichever format feels more natural for your current task.
63+
Changes to agents in VS Code can be saved directly to Foundry, so you can work with your agent across platforms.
7364

7465
## Managing multiple agents
7566

learn-pr/wwl-data-ai/develop-ai-agents-azure-vs-code/includes/6-configure-manage-agents.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
Once you create an agent in Visual Studio Code, the real work begins — configuring its behavior, instructions, and properties to match your requirements. The Microsoft Foundry extension provides comprehensive configuration options through both visual interfaces and direct file editing, giving you flexibility in how you work.
1+
Once you have a declarative agent (created in the Foundry portal or through the SDK), the real work begins — configuring its behavior, instructions, and properties to match your requirements. The Microsoft Foundry VS Code extension provides comprehensive configuration options through both the visual Agent Designer and direct YAML file editing, giving you flexibility in how you work.
2+
3+
> [!NOTE]
4+
> The configuration workflow described in this unit applies to **declarative prompt-based agents**. Hosted agents are configured through code, and workflow agents use a different YAML schema for multi-agent orchestration.
25
36
## Configuring agent properties
47

@@ -30,7 +33,7 @@ These settings appear in both the Designer interface and the YAML file, remainin
3033

3134
## Understanding the agent YAML structure
3235

33-
The YAML file contains all your agent's configuration in a structured, readable format. Understanding this structure helps you make precise changes and work efficiently when the visual interface isn't the best fit.
36+
The YAML file contains all your declarative agent's configuration in a structured, readable format. Understanding this structure helps you make precise changes and work efficiently when the visual interface isn't the best fit.
3437

3538
### Complete YAML example
3639

0 commit comments

Comments
 (0)