Loading video player...
š Build an ASP.NET Website Powered by AI Agents! | Azure AI Foundry & MCP Integration In this groundbreaking tutorial, I'll show you how to move beyond traditional APIs and integrate a public-facing ASP.NET website directly with an Azure AI Foundry Agent. We'll build a complete user registration system where the "Create Account" logic is handled by an AI Agent, which then uses a custom MCP server to save data to Azure Storage. š What You'll Learn: š ļø Build an MCP Server: Create a custom Model Context Protocol (MCP) server in .NET with a tool to save user accounts to an Azure Storage Table. Integrate AI foundry agent with MCP server using C# & ASP.NET š¤ Create an AI Agent: Build and configure an Azure AI Foundry Agent, connect it to your MCP server, and give it natural language instructions. š Integrate with ASP.NET: Build a Razor Pages website with a sign-up form and write the C# code to call your AI Foundry Agent directly from the backend. š Handle Agent Execution: Learn how to manage the agent's execution flow, including handling "requires action" status for tool approval. āļø Full Deployment: Learn how to deploy your MCP server to Azure and configure everything for a production environment. š Timestamps: 00:00 - Introduction & Demo 00:30 - Building the MCP Server Tool 06:24 - Testing the MCP Server Locally 13:37 - Configuring Azure Storage 22:49 - Deploying the MCP Server to Azure 25:56 - Creating the Azure AI Foundry Agent 31:00 - Testing the Agent in AI Foundry 35:42 - Creating the ASP.NET Web Application 43:53 - Installing the AI Agents SDK 47:35 - Coding the Agent Client Service 55:25 - Handling the Agent Execution Loop 1:03:20 - Approving Tool Calls from Code 1:09:57 - Retrieving the Agent's Response 1:13:30 - Final Demo: Full Website Integration 1:15:20 - Conclusion & Next Steps š Resources & Code: Azure AI Agents .NET SDK: Azure.AI.Agents.Persistent (Note: Use the pre-release version as shown in the video) š” Keywords: Azure AI Foundry, MCP Server, ASP.NET Tutorial, AI Agent Integration, .NET 8, Model Context Protocol, Azure AI Agents, C# Tutorial, Razor Pages, Azure Storage Table, AI Powered Website, AI Application Development, OpenAI, ChatGPT, MCP, AI Foundry Agent This tutorial opens up a new world of possibilities for building intelligent, agentic applications with .NET. Whether you're building the next great SaaS product or just experimenting with AI, this is a must-learn skill set. If you enjoyed this deep dive, please Like & Subscribe for more content on building the future with .NET and AI! #dotnet #azure #aifoundry #mcp #aspnet #ai