Basics of Azure AI foundry

Researching on Foundry tool kit in azure and its usecases and implementing real world projects

Azure AI Foundry โ€” Deep Dive

Goal: Understand Azure AI Foundry end-to-end and build real-world AI applications on top of it.


๐Ÿ“š Research & Learning Resources

# Resource Type
1 Azure AI Foundry Overview ๐ŸŽฌ Video
2 AI Foundry Agent Intro ๐ŸŽฌ Video
3 Official Learning Path ๐Ÿ“– Docs

๐Ÿ—๏ธ Platform Architecture

graph TD A["Azure AI Foundry"] --> B["Hub"] B --> C["Project A"] B --> D["Project B"] C --> E["Model Deployments"] C --> F["Prompt Flows"] C --> G["Evaluations"] E --> H["GPT-4o / Llama / Mistral"] F --> I["LLM Nodes"] F --> J["Python Nodes"] F --> K["AI Search Nodes"] G --> L["Groundedness"] G --> M["Relevance"] G --> N["Coherence"] style A fill:#0078d4,color:#fff style B fill:#50e6ff,color:#000 style C fill:#50e6ff,color:#000 style D fill:#50e6ff,color:#000

๐Ÿ”ง Background & Prerequisites

1. Azure AI Services Ecosystem

AI Foundry acts as a unified surface over these Azure AI services:

Service What It Does Key Use Case
Azure OpenAI GPT-4, GPT-4o, DALL-E, Whisper, Embeddings Chat, code gen, summarization
Azure AI Search Vector + keyword hybrid search RAG knowledge retrieval
Azure AI Speech Speech-to-text, text-to-speech Voice interfaces
Azure AI Vision Image analysis, OCR, captioning Visual understanding
Document Intelligence Extract data from PDFs, invoices, forms Structured extraction
Content Safety Detect hate, violence, sexual, self-harm Guardrails & moderation

๐Ÿ’ก Key insight: AI Foundry doesn't replace these services โ€” it orchestrates them into cohesive applications.


2. Core Concepts

graph LR Hub["๐Ÿข Hub
(Shared resources)"] --> Project1["๐Ÿ“ Project
(Your AI app)"] Project1 --> Deploy["๐Ÿš€ Model Deployment
(API endpoint)"] Project1 --> PF["โšก Prompt Flow
(LLM pipeline)"] Project1 --> Eval["๐Ÿ“Š Evaluation
(Quality metrics)"] Hub --> Connections["๐Ÿ”— Connections
(OpenAI, Search, Storage)"] Hub --> Compute["๐Ÿ’ป Compute
(GPU/CPU)"]
Concept Description
Hub Shared container โ€” connections, compute, config. Created once per team.
Project Workspace for a specific AI app. Has its own deployments, flows, evaluations.
Model Catalog 1600+ models (Azure OpenAI, Meta Llama, Mistral, Cohere, HuggingFace). Deploy as MaaS or MaaP.
Playground Interactive UI to test chat, completions, and image generation before coding.

3. Prompt Flow

The primary tool for building LLM-powered applications inside AI Foundry.

flowchart LR Input["๐Ÿ“ User Query"] --> Embed["๐Ÿ”ข Embedding Node"] Embed --> Search["๐Ÿ” AI Search Node"] Search --> LLM["๐Ÿค– LLM Node
(GPT-4o)"] LLM --> Safety["๐Ÿ›ก๏ธ Content Safety"] Safety --> Output["๐Ÿ’ฌ Response"]

Flow Types:

Key Features:


4. AI Agents in Foundry

graph TD User["๐Ÿ‘ค User"] --> Agent["๐Ÿค– AI Agent"] Agent --> Tools["๐Ÿ”ง Tools"] Agent --> Knowledge["๐Ÿ“š Knowledge
(AI Search / RAG)"] Agent --> Safety["๐Ÿ›ก๏ธ Safety Rules"] Tools --> API["๐ŸŒ External APIs"] Tools --> Code["๐Ÿ’ป Code Execution"] Tools --> Search["๐Ÿ” Document Search"]
Building Block Purpose
System Prompt Instructions that define agent behavior
Tools Functions the agent can call (defined as JSON schemas)
Knowledge Sources Grounding data via Azure AI Search (RAG pattern)
Safety Rules Content filters, prompt shields, PII detection

๐Ÿ”ฎ Emerging pattern: Multi-agent orchestration โ€” specialized agents coordinating to solve complex tasks.


5. Responsible AI & Safety

Layer What It Does
Content Filters Block hate / sexual / violence / self-harm at 4 severity levels
Prompt Shields Detect jailbreak attempts & prompt injection
Groundedness Detection Verify responses are based on provided context
PII Detection Identify & redact personal information

โœ… TODO โ€” Remaining Work

# Task Priority
1 Create an AI Foundry Hub + Project (with screenshots) ๐Ÿ”ด High
2 Deploy GPT-4o from the model catalog ๐Ÿ”ด High
3 Build a simple chat app in the Playground ๐Ÿ”ด High
4 Create a Prompt Flow: query โ†’ AI Search โ†’ LLM response ๐Ÿ”ด High
5 Build an AI Agent with tool calling (weather API + doc search) ๐ŸŸก Medium
6 Run evaluation flow (groundedness + relevance metrics) ๐ŸŸก Medium
7 Configure content filters & test adversarial prompts ๐ŸŸก Medium
8 Compare AI Foundry vs LangChain/LlamaIndex for RAG ๐ŸŸข Low
9 Document pricing model & cost optimization ๐ŸŸข Low
10 Final architecture diagram of full Hubโ†’Projectโ†’Deployโ†’Agent flow ๐ŸŸข Low
Back to Blog About the Author
๐Ÿง˜