Choosing Models & Foundry Services
Model catalog · leaderboards · model router · agent types · Azure AI Search retrieval · memory · toolbox · tools
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Choosing a model
| Catalog category | Who supports it | Billing and traits |
|---|---|---|
| Foundry Models sold by Azure | Microsoft provides support; enterprise-grade SLAs | Billed through Azure meters as First Party Consumption Services. Undergo Microsoft's internal Responsible AI review |
| Foundry Models from partners and community | The model provider; SLA and support vary | Billed through Azure Marketplace. Typically validated by the providers themselves |
- The catalog holds foundation, reasoning, small language, multimodal, domain-specific and industry models. Filter by collection, region, deployment option, deployment SKU, lifecycle, industry, supported features (for example reasoning, tool calling) and inference task (for example chat completion or embeddings).
- Model leaderboards compare catalog text models (LLMs, SLMs) and embedding models on quality, safety, performance (latency, throughput) and cost. Open Compare models or a model card's Benchmarks tab. Use a scenario leaderboard when your task is specific, such as coding or math.
- Leaderboard cost uses a three-to-one input-to-output token ratio; adjust for your real ratio. Lower attack success rates mean a more robust model. Public benchmarks don't replace evaluating a model on your own data.
- Model router is one deployment that picks an underlying LLM for each prompt. Routing mode: Balanced (default, small quality band), Cost (larger quality band, cheapest model) or Quality (best model, ignores cost). You don't deploy the supported LLMs separately, except Claude models, which you deploy from the catalog first.
- The model router's effective context window is limited by the smallest underlying model; use a model subset to require larger windows.
Model names, versions and regions change often. Choose by capability (reasoning, multimodal, embeddings, tool calling), support model, cost and benchmark results, not by memorising a model list.
Choosing a Foundry service for the task
| Goal | Use | Notes |
|---|---|---|
| Pick and deploy the model behind an app | Foundry Models | Catalog of models from Microsoft, OpenAI, Anthropic, Meta and others. If the gap is missing context, use retrieval; if prompting and retrieval can't reach quality, consider fine-tuning |
| Agent with no runtime to manage | Prompt agent | Declarative: instructions, a model and tools. Foundry runs it |
| Your own code, framework or container | Hosted agent | Bring your own framework, custom protocols, control compute; you ship a container image (or a source .zip that Foundry builds) |
| Agent code already runs elsewhere | Responses API | Call it directly; no agent resource to manage |
| Real-time spoken agent | Voice-based prompt agent | Connect over a WebSocket with Voice Live |
| Ground answers in your content | Foundry IQ | Agentic retrieval over a knowledge base. For a few uploaded files, file search is lighter weight |
| Persistent recall across sessions | Memory (preview) | Long-term memory stores |
| Several agents or steps in one task | Workflows | Orchestration of multiple agents and steps. See the retirement note |
| Share and govern tools | Toolbox | One MCP-compatible endpoint |
- Foundry resource types sit under
Microsoft.CognitiveServices(Foundry, Azure OpenAI, Speech, Language, Vision); Azure AI Search sits underMicrosoft.Searchand supplies knowledge retrieval over your data. - Some capabilities exist only at the Foundry resource level, not the project: the Translator API is one example.
Retrieval and indexing in Azure AI Search
| Method | What it does | Pick it when |
|---|---|---|
| Full-text (keyword) | Matches terms in an inverted index | Exact terms matter |
| Vector search | Finds content with similar meaning from numeric representations (embeddings); also across languages and content types | Wording differs from the documents |
| Hybrid search | One request with search and vectorQueries; runs full-text and vector in parallel and merges with Reciprocal Rank Fusion (RRF) into one result set | You need conceptual recall and keyword precision together |
| Semantic ranker | Secondary (L2) ranking over a BM25 or RRF result set; adds captions and answers | Improve relevance of the initial results; it reranks, it doesn't retrieve |
| Agentic retrieval | Multi-query pipeline: query planning, parallel subqueries (keyword, vector or hybrid), semantic reranking, merged result | Complex, multi-part or context-dependent questions; accepts more latency |
- Classic RAG uses hybrid search and semantic ranking: Microsoft names it for simpler requirements or when you need generally available (GA) features. Azure AI Search has two engines: classic search for single requests and agentic retrieval for parallel, iterative, LLM-assisted search.
- Agentic retrieval always needs a knowledge base and at least one knowledge source. A search index is required only for indexed knowledge sources (a source can instead be remote). Retrieval reasoning effort defaults to
lowand is set on the knowledge base. - Integrated vectorization in an indexer pipeline needs an indexer, a supported data source and a skillset that drives chunking and embedding. Or generate embeddings outside the service and push the vectors into vector fields.
- Foundry IQ connects to an agent over MCP; the connection needs an Azure AI Search service with a knowledge base, and hub-based projects aren't supported.
Memory, tools and knowledge for agents
| Need | Use |
|---|---|
| Learned, user-specific context that persists across sessions | Memory (memory store) |
| Curated organizational content | Foundry IQ knowledge base |
| Documents the user provides during an interaction | File search tool |
| Index you already have in Azure AI Search | Azure AI Search tool |
| Your own HTTP API with an OpenAPI 3.0 or 3.1 spec | OpenAPI tool (anonymous, API key or project managed identity authentication) |
| Custom code that your app runs | Function calling: your app executes the function and returns the output |
| Tools exposed by a remote MCP server | MCP tool (remote MCP server) |
| Python for data analysis and charts | Code interpreter (sandboxed) |
| Call a remote A2A (Agent2Agent) agent endpoint | Agent2Agent (A2A) tool |
| Define tools once, reuse and govern them centrally | Toolbox |
- Memory types: user profile (retrieve near the start of each conversation), chat summary (retrieve per turn) and procedural (retrieve for a recurring workflow). Memory works in three phases: extraction, consolidation, retrieval. A
scopeparameter segments memory across users. Memory and its Memory Store API are preview features. - A memory walk-through: create a memory store, attach the memory search tool to the agent, converse, then start a new conversation to confirm recall. The project needs a chat model and an embedding model deployment.
- Toolbox pillars: Build, Discover, Consume, Govern. It gives credential injection through Microsoft Entra ID, guardrails on tool inputs and outputs, and versions you promote to default without redeploying agents. Tool search exposes
tool_searchandcall_toolso hundreds of tools don't flood the context window. - Function calling: runs expire 10 minutes after creation, so submit tool outputs in time. The portal can't add or update function definitions; use the SDK or REST API.
- With a private virtual network, the Azure AI Search tool must use Microsoft Entra project managed identity; key-based authentication isn't supported there.
Exam Tips
Tick each tip once you can answer it without looking.
“Need Microsoft support and enterprise SLAs for the model” → Foundry Models sold by Azure. Trap: Partner and community models are supported by their providers, with varying SLA and support.
“Shortlist models by quality, safety, latency and cost from public benchmarks” → Model leaderboards and Compare models in the catalog. Trap: They don't replace evaluating on your own data; leaderboard cost assumes a 3:1 input-to-output ratio.
“Cut cost without hand-written routing logic” → Model router: one deployment, Balanced (default), Cost or Quality mode. Trap: Quality mode ignores cost; Cost mode accepts a larger quality band.
“Agent needs your own framework, container or custom protocol” → Hosted agent. Trap: A prompt agent is only instructions, model and tools, with no code to run.
“Fastest agent with no runtime to manage” → Prompt agent. Trap: Hosted agents give the most control but you package a container image.
“Agent code already runs elsewhere; you only want Foundry models and tools” → Call the Responses API directly. Trap: No saved agent resource, so features that need a saved prompt agent don't apply.
“Concept and keyword precision in one request” → Hybrid search: search plus vectorQueries, merged by RRF. Trap: Semantic ranker only reranks an existing BM25 or RRF result set.
“Multi-part questions that depend on earlier chat turns” → Agentic retrieval (knowledge base plus knowledge source). Trap: It adds latency over a single-query pipeline; for simple needs or GA-only features use classic RAG.
“What does agentic retrieval always need?” → A knowledge base and at least one knowledge source. Trap: A search index is required only for indexed knowledge sources; a source can be remote.
“Chunk and embed content inside the indexer pipeline” → Integrated vectorization: indexer, supported data source, skillset. Trap: Without those, generate embeddings yourself and push vectors into vector fields.
“Agent must remember user preferences across sessions” → Memory store with the memory search tool. Trap: File search is for documents the user provides; Foundry IQ is for curated organizational content.
“Ground answers on curated organizational content” → Foundry IQ knowledge base. Trap: For just a few uploaded files, file search is lighter weight.
“Memory type retrieved at the start of each conversation” → User profile memory. Trap: Chat summary memory is retrieved per turn; procedural memory for a recurring workflow.
“Call an existing HTTP API described by an OpenAPI spec” → OpenAPI tool (3.0 or 3.1). Trap: Function calling makes your app execute the function and return the output.
“Many agents repeat the same tools and credentials” → Toolbox: one MCP-compatible endpoint, central auth and versioning. Trap: Foundry IQ is retrieval over a knowledge base, not a tool catalog.
Sources
- Microsoft Foundry Models overview
- Model benchmarks and leaderboards in Microsoft Foundry
- Model router for Microsoft Foundry concepts
- Microsoft Foundry product and capability map
- What is Microsoft Foundry Agent Service?
- Prompt agents in Foundry Agent Service
- Hosted agents in Foundry Agent Service
- Microsoft Foundry architecture
- What is Toolbox in Microsoft Foundry?
- What is Memory?
- Create and use memory in Foundry Agent Service
- Connect Agents to Foundry IQ Knowledge Bases
- Connect an Azure AI Search index to Foundry agents
- File search tool for Foundry agents
- Function calling for Foundry agents
- OpenAPI tool for Foundry agents
- Build a workflow in Microsoft Foundry
- Azure AI Search overview
- Vector search overview
- Hybrid search overview
- Semantic ranking overview
- Agentic retrieval overview
- Tool catalog for Foundry agents
- Code Interpreter tool for Foundry agents
- Connect to an A2A agent endpoint from Foundry Agent Service
- Connect to Model Context Protocol servers
- RAG and generative AI in Azure AI Search
Checked against Microsoft Learn on November 13, 2026.