Generative AI & agentic solutions · 30–35%

Build agents with Foundry

~4 min read

Agent = model + instructions + tools

An agent is a named AI configuration that bundles a model, instructions (its role and rules), and tools it may call — so it can act, not just chat.

Foundry Agent Service is the managed platform that runs them: it handles the whole tool-calling lifecycle, keeps state via the Responses API, and adds a tool catalog, content safety, and tracing.

Agent typeDefined by
Declarative: prompt-basedConfig (portal / YAML in VS Code). Most common.
Declarative: workflowYAML multi-agent orchestration
HostedCode, containerized, platform-hosted

Dev surfaces: Foundry portal (visual, prototyping) · VS Code Foundry extension (Agent Designer, YAML, playgrounds, Git-versioned config).

Tool catalog — 3 buckets

  1. Configured (built-in, ready): Code Interpreter, File Search.
  2. Catalog: Bing Web Search (with citations), Azure AI Search, SharePoint, Fabric, Browser Automation, Computer Use, Image Generation, Deep Research, Agent-to-Agent.
  3. Custom: OpenAPI specs, MCP servers.
File Search vs Azure AI Search: File Search = docs you upload to a vector store; Azure AI Search = your existing enterprise index. If the question mentions an “existing index”, the answer is the AI Search tool.

Custom tool options

OptionWhen
Function callingYour code, any logic; agent emits call, schema from your definition
Azure FunctionsEvent-driven / serverless; queue triggers + bindings
OpenAPI 3.0 toolExisting REST API + spec. Auth: anonymous, API key, managed identity
Logic AppsLow-code/no-code workflow connectors

Agent is declarative: you never write code that calls the tool — the agent decides from names + descriptions. Good descriptions = good tool selection.

MCP (Model Context Protocol)

MCP is an open protocol that gives agents a standard way to discover and call external tools at runtime — connect once, and tools can change server-side without redeploying the agent.

Foundry IQ (knowledge)

Foundry IQ is a managed knowledge platform built on Azure AI Search: you create knowledge bases once and any agent connects to them via MCP, instead of each team building its own RAG pipeline. Knowledge bases organized by business domain; shared across agents.

Data sources: AI Search index · Blob Storage (direct) · Web via Bing (real-time) · SharePoint Remote (real-time, respects SP permissions, no index) vs SharePoint Indexed (faster, custom pipelines, needs reindex) · OneLake (Fabric).

Retrieval instructions must specify: when to retrieve (always), how to cite (exact format), fallback when not found.

Deploy vs Publish — exam favorite

Published agent gets a new identitydev permissions don’t transfer. Tools that call Azure resources fail with 403 until you re-assign RBAC roles to the new agent identity. Classic exam trap: “works in playground, fails after publishing”.

Microsoft 365 integration

Agent security quick list

Risks: prompt injection, privilege escalation, data leakage/poisoning, over-autonomy. Mitigations: RBAC + least privilege, prompt filtering, human-in-the-loop approvals for sensitive ops, full logging/traceability, audit third-party deps.