AInfraMinds

As part of the Microsoft AI Skills Fest, I participated in the challenge “Create Agentic AI Solutions with Azure AI Foundry” โ€” and here are my key takeaways from Module 1 of the learning journey.


๐Ÿ”— Quick Navigation


๐Ÿ“Œ Module 1: Plan and Prepare for AI Development on Azure

Iโ€™ve kicked off the AI Skills Fest Challenge by diving into Module 1: Plan and prepare to develop AI solutions on Azure. This module laid the foundation for building intelligent apps using the Azure AI Foundry platform and walked through key AI concepts, tools, and best practices.

๐Ÿค– What is AI Capable Of?

Modern applications can tap into a wide range of AI capabilities:

๐Ÿงฐ Azure AI Services Highlights

A few powerhouse services that form the Azure AI toolkit:

๐Ÿงฉ Choosing Between Standalone or Unified Services

You can either:

๐Ÿ—๏ธ What is Azure AI Foundry?

Itโ€™s a one-stop shop for AI development:

๐Ÿงช Projects come packed with:

๐Ÿ“ฆ Plan Smart: Foundry Considerations

๐Ÿ› ๏ธ Developer Toolkit


๐Ÿ” Module 2: Choose and Deploy Models in Azure AI Foundry

In this module, I explored the Model Catalog in Azure AI Foundry, a central place to find and deploy pre-built models tailored to specific generative AI needs.

๐Ÿง  Model Types: LLMs vs SLMs

๐Ÿงญ Task-Oriented Models

Beyond just language, some models can handle multi-modal input (text + images). For example:

๐ŸŒ Domain-Specific Models

Some models are built for specific regions or industries:

๐Ÿ†š Open vs Proprietary Models

Regardless of the type, all models in the catalog follow enterprise-ready standards for data privacy, security, and responsible AI.

๐Ÿš€ Can Your Solution Scale?

Once youโ€™ve built a prototype, you need to plan for real-world workloads:

Consider the full GenAIOps lifecycle for long-term success.

๐ŸŽฏ Prompt Engineering: Optimizing Model Responses

Crafting the right question is everything. Here’s how to optimize prompts:

๐Ÿ› ๏ธ Prompt Patterns

๐Ÿ”ง Advanced Optimization Strategies


๐Ÿ” Module 3: What is Azure AI Foundry SDK?

The Azure AI Foundry SDK is a powerful toolkit for developers to create applications using models and services defined within an Azure AI Foundry project. It supports Python and .NET, offering seamless integration to build generative AI applications.

๐Ÿ“ฆ Install the SDK

To use the SDK in Python, install the core package:

pip install azure-ai-projects

๐Ÿ”— Accessing Project Connections

Every Azure AI Foundry project includes connected resourcesโ€”such as Azure AI services, Storage, and AI Searchโ€”which are accessible using the AIProjectClient class in Python.

You can use the following methods from the connections property:

๐Ÿ’ฌ Creating a Chat Client

A common use case is building chat applications using generative AI models. The Azure AI Foundry SDK supports multiple model hosting options:

๐Ÿง‘โ€๐Ÿ’ป Build Apps Using Different Deployment Types

โœ… Azure AI Model Inference

Use the ChatCompletionsClient class from the SDK to chat with deployed models.
A key advantage of this approach is easy model switchingโ€”just update the model deployment name in your code to test against different models.

โœ… Azure OpenAI Service

Use the method AIProjectClient.get_azure_openai_client() to connect to the Azure OpenAI service resource in your project.
This returns an OpenAI client, which you can use to seamlessly interact with models deployed to the Azure OpenAI service.

๐Ÿค” What are AI Agents?

AI agents are intelligent software services that combine generative AI models, contextual data, and automation capabilities to perform tasks based on user input and environmental factors.

Example:
An AI agent could help employees manage expense claims by answering questions about corporate policy and automatically submitting recurring claims like monthly cellphone bills, or routing claims to appropriate approvers.

๐Ÿ› ๏ธ Options for Building AI Agents

Developers have several frameworks and SDKs available for creating AI agents:


๐Ÿค– Module 4 : Get Started with AI Agent Development on Azure

๐Ÿš€ Azure AI Agent Service Overview

The Azure AI Agent Service (part of Azure AI Foundry) helps you create, test, and manage AI agents through:

๐Ÿงฉ Components of an Azure AI Agent


๐Ÿ“š Module 5 : Develop a RAG-Based Solution with Your Own Data Using Azure AI Foundry

๐Ÿšซ Ungrounded Prompts and Responses

Language models generate answers based solely on their training data, which is often vast but uncontextualized.
This can lead to responses that sound logical but are inaccurate or even fictional.
Example: Asking “Which product should I use for X?” could result in details about a non-existent product.

๐Ÿ“Œ Grounded Prompts and Responses

By grounding prompts with relevant, factual data, you can guide the model to produce accurate and contextualized answers.
For example, grounding with a product catalog ensures the model recommends actual, available products.

๐Ÿง  How to Ground Your Language Model

Language models are great at generating natural text, but they often lack specific domain knowledge.
To improve accuracy, you can apply Retrieval Augmented Generation (RAG), which involves:

๐Ÿ—‚๏ธ Adding Grounding Data in Azure AI Foundry

Azure AI Foundry allows you to upload your own data for grounding, connecting to:

You can also upload files or folders directly into your AI Foundry project storage.

๐Ÿ” Make Your Data Searchable

For an agent to generate accurate answers, efficient searchability of your data is crucial.
Azure AI Foundry integrates with Azure AI Search for powerful retrieval capabilities.

๐Ÿงฎ Vector Indexing

Instead of relying only on text-based search, you can use a vector indexโ€”embedding your data into floating-point vectors to capture semantic meaning.

Example:
Texts like “The children played joyfully in the park.” and “Kids happily ran around the playground.” have different words but similar meaningโ€”captured through vector embeddings.

๐Ÿ—ƒ๏ธ Creating a Search Index

A search index organizes your content, similar to a library catalog.
It helps the search engine find relevant content quickly and efficiently.

๐Ÿ”Ž Searching the Index

You can query your index using:

๐Ÿ”„ Implement RAG in a Prompt Flow

Once you upload your data and create an index, you can use Prompt Flow in Azure AI Foundry to orchestrate a Retrieval Augmented Generation (RAG) solution.

โš™๏ธ Key Steps for RAG Implementation


๐Ÿ”’ Module 6: Introduction to AI Agent Service Security Controls

๐Ÿง  Understanding the Azure AI Agent Service

The Azure AI Agent Service acts as a “smart” microservice to:

It combines generative AI with tools that interact with real-world data.
Since the service is fully managed by Microsoft, you don’t need to worry about scaling, security, or infrastructure management.

However, it’s important to still follow basic security principles:

๐Ÿ›ก๏ธ Securing the Azure AI Agent Service

In Azure AI Foundry:

Key security features at the hub level include:

Hubs and projects are stored inside a resource group in your Azure subscription, but Foundry abstracts much of the complexity for developers.

๐Ÿ” Azure AI Agent Service Role-Based Access Control (RBAC)

Azure RBAC controls who can create, manage, or use resources.

You can add users and assign roles directly from the Azure AI Foundry portal:

๐ŸŒ Agent Service and Network Access

Network access for AI Agents is configured at the hub levelโ€”but only through the Azure portal (not the Foundry portal).

If your resources are outside Azure (e.g., in an on-premises network or a different VNet), you need:

  1. Application Gateway: Acts as a bridge between Azure and your non-Azure resources.
  2. Private Endpoint: Created from the Azure AI Foundry hubโ€™s managed VNet to the Application Gateway for private, secure accessโ€”keeping traffic off the public internet.

๐Ÿค– Module 7 Recap: Develop an AI Agent with Azure AI Agent Service

๐Ÿง  What is an AI Agent?

An AI agent is an intelligent software service that uses generative AI to understand context, make decisions, and take actionsโ€”independently executing workflows or tasks. Unlike traditional apps, AI agents operate autonomously and adapt to dynamic scenarios using grounding data and tools.

๐Ÿ’ก Why are AI Agents Useful?

๐Ÿ“Œ Example Use Cases

AI agents can be deployed in many roles:

โš™๏ธ How to Use Azure AI Agent Service

The Azure AI Agent Service enables developers to build AI agents that use large language models to automate tasks, make decisions, and respond to real-world inputs.

๐ŸŽฏ Key Use Cases

๐Ÿ› ๏ธ Features of Azure AI Agent Service

๐Ÿ—๏ธ Develop AI Agents with Azure AI Agent Service

Earlier, creating agent-like behavior required writing extensive code. Now, the Azure AI Agent Service supports easy integration using SDKs or REST APIs, with just a few lines of code.

๐Ÿง  Knowledge Tools

Used to enhance the agentโ€™s knowledge and ground prompts:

โšก Action Tools

Used to perform actions or execute functions:


๐Ÿงฉ Module 8 Recap: Integrate Custom Tools into Your AI Agent

โš™๏ธ Why Use Custom Tools?

Custom tools in Azure AI Agent Service empower developers to tailor agents for specific business needsโ€”improving productivity, accuracy, and process automation.

๐Ÿ’ก Benefits of Custom Tools

๐ŸŒ Common Scenarios for Custom Tools

Custom tools allow AI agents to connect with external systems and perform specialized tasks across industries:

๐Ÿ›๏ธ Customer Support Automation

๐Ÿญ Inventory Management

๐Ÿฅ Healthcare Scheduling

๐Ÿง‘โ€๐Ÿ’ป IT Helpdesk Support

๐ŸŽ“ E-Learning and Training

๐Ÿ”ง Options for Implementing Custom Tools

Azure AI Agent Service supports three main approaches:

๐Ÿ” Function Calling

โšก Azure Functions

๐ŸŒ OpenAPI Specification Tools

๐Ÿ› ๏ธ How to Integrate Custom Tools

Custom tools can be embedded into your AI agents based on your organizational setup:

๐Ÿงฉ Function Calling

๐Ÿ”„ Azure Functions

๐ŸŒ OpenAPI Tools


๐Ÿง  Module 9 Recap: Orchestrate a Multi-Agent Solution Using Semantic Kernel

๐Ÿงฉ What is the Semantic Kernel Agent Framework?

Semantic Kernel is an open-source SDK that helps developers integrate AI models into their applications. Its Agent Framework adds capabilities for building intelligent, task-oriented agents that can reason, collaborate, and act autonomously.

๐Ÿ”ง Core Concepts

๐Ÿง  Agent Types Supported

๐Ÿ’ฌ Create a Multi-Agent Group Chat

The AgentGroupChat feature enables multiple agents to collaborate dynamically in a shared conversation.

๐Ÿ—จ๏ธ Chat Modes

Messages can be added using the ChatMessageContent object, including the sender’s role and the message itself.

๐Ÿง  Design an Agent Selection Strategy

In a multi-agent setup, selecting the right agent is critical for accurate, efficient, and scalable interactions.

๐ŸŽฏ Why Agent Selection Matters

โš™๏ธ How It Works

๐Ÿ”„ Tip: You can truncate chat history to reduce token usage and improve performance while retaining the last relevant message for agent selection.

๐Ÿ”š Define a Chat Termination Strategy

To avoid endless conversations, the framework uses a termination strategy that determines when the conversation has met its goal.

โœ… Why Use a Termination Strategy?

Once the chat is marked as completed, youโ€™ll need to reset the state to allow further use of the AgentGroupChat instance.


๐Ÿ“š References

๐Ÿ‘‰ Return to AI-nstein's Notebook

๐Ÿ“ฆ Return to AI World

๐Ÿ  Take Me Home

Copyright 2026. All rights reserved.