AI Tutorial
Home All Courses Blog Interview Prep ↗ Export PDF 0%
1
Curious builder 0 XP earned · 300 to level 2
0 days Finish a lesson to begin
Badge collection
0 of 5 unlocked
small wins to finish your path
Next lesson →

What is Azure AI Foundry

Export PDF

Before touching code, you need a map. This lesson explains what problem Foundry solves, how it grew out of Azure OpenAI Service, the building blocks you will meet in every later lesson, what you see in the portal, and an honest comparison with the alternatives so you know when Foundry is the right choice.

Last updated: 01 Nov, 2026 · azure-ai-projects 2.x · Python 3.10+

The problem Foundry solves

Calling a model is easy. Running AI in a company is not. Once an app leaves the prototype stage, a long list of questions appears:

Question a company asksWithout a platformWith Foundry
Which models can we use?Separate contracts and keys per vendorOne catalog, one bill, one endpoint for many vendors
Who is allowed to call them?Shared API keys in config filesEntra ID identities with roles and audit logs
Does our data leave our network?Traffic goes over the public internetPrivate endpoints and network isolation
Is harmful output blocked?Each team writes its own filtersBuilt-in guardrails applied to every call
Are the answers any good?Manual spot checksBuilt-in evaluators, datasets, and scheduled evaluation
What happened in this bad conversation?Print statementsEnd-to-end traces in Application Insights
How do we run agents reliably?Custom servers, queues, and stateA managed Agent Service with conversations and tools

Foundry is Microsoft's answer: a single platform that handles those concerns so your team can focus on the application logic.

A short history

Knowing the history explains the naming you will see in docs, Stack Overflow answers, and older code.

WhenWhat happenedWhat you will see in old material
2021–2023Azure OpenAI Service launches: OpenAI models hosted inside Azure, managed in Azure OpenAI Studio.openai.azure.com endpoints, AzureOpenAI client, api-version query strings.
Nov 2023Azure AI Studio (preview) brings non-OpenAI models, prompt flow, and evaluation together, built on Azure Machine Learning hubs.Hubs, hub-based projects, prompt flow, Azure ML workspaces.
Nov 2024Renamed Azure AI Foundry. The Azure AI Agent Service is announced.“Azure AI Foundry portal”, azure-ai-projects 1.x, create_agent(), threads and runs.
2025A new Foundry resource type and Foundry projects replace hubs as the default. One endpoint serves models, agents, and tools.services.ai.azure.com/api/projects/... endpoints.
Nov 2025Renamed Microsoft Foundry. A new portal experience and a rebuilt Agent Service on the Responses API.“Foundry (new)” vs “Foundry (classic)” in the docs.
2026azure-ai-projects 2.x goes GA on the v1 REST API. Agents use create_version() and conversations.This course.
Tip

When you find a tutorial online, check which era it is from. If it uses create_agent(), threads, and runs, it targets the classic Agent Service. If it creates a hub, it targets classic hub-based projects. Both still work but are not where new features land.

The building blocks

Definition · Foundry Models

The model catalog plus the serving layer. Includes models sold directly by Azure (OpenAI GPT and o-series, Microsoft Phi and MAI, DeepSeek, Meta Llama, Mistral, xAI Grok and others, billed and supported by Microsoft) and models from partners and the community (thousands of open and commercial models, some deployed to managed compute).

Definition · Foundry Agent Service

A managed runtime for agents. You define an agent — instructions, a model, and tools — and the service runs the reasoning loop, executes built-in tools, stores conversation state, and exposes the agent through an API.

Definition · Foundry Tools

Capabilities agents and apps can use: file search, code interpreter, web search, Azure AI Search, SharePoint, Microsoft Fabric, MCP servers, OpenAPI endpoints, and the classic Azure AI services (Speech, Vision, Language, Translator, Document Intelligence, Content Safety).

Definition · Observability

Evaluation (scoring quality and safety), red teaming (attacking your own app to find weaknesses), tracing (recording every step of every request), and monitoring dashboards.

Definition · Control plane

Governance features applied across many projects and agents: identity, RBAC, networking, policy, quota, guardrails, and cost visibility.

Tour of the portal

Open ai.azure.com and sign in with your Azure account. Exact labels shift between releases, but you will find these areas:

AreaWhat you do there
Home / project overviewSee the project endpoint, API keys (if enabled), and quick-start code. Copy your endpoint from here.
Model catalog (Discover)Browse and compare models, read model cards, view benchmarks and leaderboards, and deploy.
Models + endpointsManage deployments: change capacity, version, deployment type, and guardrail.
PlaygroundsChat with a deployment, test images, audio, and agents interactively, then export the code.
Agents (Build)Create and version agents, attach tools and knowledge, and test them.
Knowledge / dataUpload files, create datasets, vector stores, and connect search indexes.
EvaluationRun evaluations against datasets or agents, and compare runs.
Tracing / monitoringInspect traces of agent runs and view dashboards (requires Application Insights).
Guardrails + controlsCreate content filter policies and blocklists, then assign them to deployments or agents.
Management center / adminProjects, connected resources, users and roles, and quota.
Try it
  1. Sign in to the portal and find the model catalog.
  2. Filter by “Models sold directly by Azure” and open the model card for any chat model.
  3. Note its context window, supported deployment types, and regions. You will use this skill constantly.

How a request flows through Foundry

Request flow
your app (Python, C#, JS, Java)
   │  HTTPS + Entra ID token (or API key)
   ▼
project endpoint  https://<resource>.services.ai.azure.com/api/projects/<project>
   │
   ├─► input guardrail  ── blocks harmful prompts and jailbreaks
   │
   ├─► model deployment (gpt-5-mini, DeepSeek-R1, ...)  or  agent
   │         │  agent may call tools: search, code interpreter, MCP, your functions
   │
   ├─► output guardrail ── blocks harmful completions, protected material
   │
   └─► trace + metrics ──► Application Insights / Azure Monitor
   ▼
response (text, tool calls, usage, content-filter annotations)

Foundry compared with alternatives

OptionBest whenTrade-off
FoundryYou are on Azure or Microsoft 365, need enterprise governance, or want many model vendors under one contract.More concepts to learn than a single API key; some features are Azure-region dependent.
Direct vendor API (OpenAI, Anthropic, Google)Prototypes, startups, or when you need a vendor feature on day one.You build identity, networking, safety, and evaluation yourself.
Azure OpenAI only (classic)Existing apps that only use OpenAI models.Still supported, and the same models are available in Foundry; new agent and evaluation features land in Foundry.
Azure Machine LearningTraining and serving classic ML or custom deep learning models.Not focused on generative AI app building.
Amazon Bedrock / Google Vertex AIYour company is standardised on AWS or GCP.Equivalent ideas with different names; skills transfer well.
Self-hosted open modelsFull control, offline, or strict data residency.You operate GPUs, scaling, patching, and safety.
Data privacy

For models sold directly by Azure, Microsoft states that your prompts and completions are not used to train the underlying models and are not shared with the model provider. Data is processed under Azure's enterprise terms. Always confirm current terms and data residency (for example, with Data Zone deployments) with your compliance team.

Common real-world use cases

  • Internal knowledge assistant: employees ask questions over SharePoint, policies, and wikis (RAG + agent).
  • Customer support agent: answers from help-center articles, checks order status through an API, and escalates to a human (the project in this course).
  • Document processing: extract fields from invoices and contracts with Document Intelligence plus an LLM.
  • Developer copilots: code review and test generation over private repositories.
  • Contact-center analytics: transcribe calls with Speech, summarise, and score sentiment.
Key takeaways
  • Foundry is Microsoft's platform for generative AI apps and agents; “Azure AI Foundry” and “Microsoft Foundry” are the same product.
  • It adds governance — identity, networking, safety, evaluation, tracing, cost — around the familiar send-messages-get-reply loop.
  • The building blocks are Foundry Models, the Agent Service, Foundry Tools, observability, and the control plane.
  • Old tutorials use hubs, create_agent(), and threads; current code uses Foundry projects, create_version(), and conversations.
  • Choose Foundry when enterprise requirements or multi-vendor models matter; a direct API is fine for quick prototypes.