3D cloud and datacenter explorer
Pick a scene, then step through it. Drag to turn the view, and press the “…what if” buttons to break things on purpose. Every step is also written out below the scene.
Plan and manage Foundry: models, data, deployments, cost, security and safety
Learn it in “Secure Foundry: Managed Identity, Keyless Auth and Private Networking” →Pick the right model or tool
A router in your app sends each job to the cheapest thing that does it well: a reasoning model for multistep problems, a small language model for high-volume labelling, a multimodal model for photos, and a Foundry Tool such as Content Understanding for invoices.
Where an agent gets its facts
Curated company content lives in a Foundry IQ knowledge base on Azure AI Search. Files a user drops into the chat go to file search. What the agent learns about the user across sessions goes to memory (user profile, chat summary).
Resource, projects and deployment types
One Foundry resource holds deployments, networking and keys. Projects inside it isolate teams. Global deployments may process anywhere, Data Zone stays in the EU or US zone, Standard stays in one region. The standard agent setup keeps threads, files and vectors in your own Cosmos DB, Storage and AI Search.
Configure deployments and agent versions
A deployment pins a model, a model version, a deployment type, capacity (TPM) and a guardrail. An agent gets a new version every time you change it; the endpoint serves the version you choose, so you can roll back.
CI/CD with an evaluation gate
The agent definition, prompts and Bicep live in Git. The pipeline signs in with workload identity federation (no secret), runs an evaluation on a test set, and only then promotes from dev to test to prod projects.
Quotas, 429s, spillover and budgets
Quota is tokens per minute per model, per region, per deployment type. Each deployment gets a slice; RPM comes with it. Go over and you get HTTP 429 with a retry-after header. Provisioned throughput can spill over to a standard deployment, and a cost control can stop a project at its token budget.
Monitor models, agents and search
Azure Monitor metrics show requests, tokens, latency and errors. Application Insights holds traces, and continuous evaluation scores a sample of live answers for groundedness and safety. For Azure AI Search, watch indexer runs, document counts, search latency and throttled queries.
Keyless and private
The app uses a managed identity and Microsoft Entra ID tokens, with the Foundry User role on the resource. Local (key) auth is turned off. Public network access is disabled and a private endpoint in your VNet is the only way in.
Guardrails at four intervention points
A guardrail is a set of controls: a risk (hate, violence, prompt attacks, indirect attacks, protected material, PII), the intervention point (user input, tool call, tool response, output) and the action (annotate, or annotate and block).
Evaluate, red team and trace
Evaluators score answers: groundedness, relevance, coherence, safety, and agent ones like tool call accuracy and task adherence. The AI red teaming agent attacks before launch. Traces in Application Insights record every model call, tool call and approval for audit.
Govern what the agent may do
Give the agent only the tools it needs (allowed tools), make risky tools require approval from a human, let the tool call guardrail check what it sends, and limit where a hosted agent can connect with network egress controls.
Generative AI and agents: models, RAG, flows, agents, orchestration and tuning
Learn it in “Agents with Retrieval, Function Calling and Memory” →Deploy a model, call the deployment
A deployment is a named copy of a model with a version, a deployment type and capacity. Your app calls the deployment name, never the model name. Pick a large model for hard work and a small language model for cheap, fast, simple work.
RAG: retrieve first, then answer
Retrieval-augmented generation searches your own content (Azure AI Search, hybrid keyword plus vector), puts the best chunks in the prompt and asks the model to answer from them with citations. Without retrieval the model guesses.
A multistep flow with checks
A workflow breaks one big request into steps you control: classify, extract to a JSON schema, call a tool, draft, then verify. Retries, fallbacks and a final check live in code, so one bad step can’t slip through unseen.
Evaluate before you ship
Evaluators score each answer on a test set: groundedness (is it supported by the context?), relevance, coherence and safety checks. A fabrication shows up as a low groundedness score on one row, so you fix it before users see it.
SDK, project endpoint and connections
The Foundry SDK (
azure-ai-projects) opens one door: AIProjectClient with the project endpoint and DefaultAzureCredential. From it your app gets an OpenAI-compatible client, deployments and connections (Azure AI Search, Application Insights) with no secrets in code.Design the agent: role, goal, tool schema
An agent is a model plus instructions (role and goal), tools and a conversation (thread). A strict function schema names each parameter and marks the required ones, so the model asks the user instead of inventing a value.
Retrieval, function calling and memory
One agent can use file search for documents, a function for live data and memory for what it learned about a user. The model asks to call a function; your code runs it and returns the result. Memory survives into a new conversation.
Multi-agent orchestration
Several specialist agents can share a job. Sequential passes work down a line, concurrent fans out and merges, handoff moves control to the right specialist, group chat lets agents take turns in one shared conversation and Magentic lets a manager agent plan and delegate. Microsoft Agent Framework builds all five.
Autonomy with approvals
Reads are safe, writes are not. A tool marked approval required pauses the run until a person decides. A hard limit in code blocks what no one should approve, whatever the model says.
Monitor and debug agent runs
Agent evaluators read the whole run: intent resolution, tool call accuracy and task adherence. Error analysis groups the failing rows, such as a made-up tool argument, and points to the fix.
Tune prompts and parameters
Instructions shape tone and rules, a few-shot example shows the format, temperature and top_p change how adventurous the wording is, and max output tokens caps length. A self-critique loop drafts, checks against a checklist and revises once.
Trace every call and count tokens
OpenTelemetry spans record each agent run, model call and tool call, with tokens and latency, and Application Insights stores them. Tracing is opt-in, and recording message content is for development only because it captures prompts and answers.
Route requests to the right model
A hybrid design puts rules first for answers code can decide, a small model for easy language work and a large or reasoning model only when needed. A model router can pick for you. Fewer big-model calls means a lower bill and faster replies.
Computer vision in Foundry: generate, understand, extract and keep it safe
Learn it in “Multimodal Image Understanding: Captions, Alt Text and Visual Q&A” →Generate and edit an image
A gpt-image deployment turns a prompt into pixels. Choose a size (1024x1024, 1024x1536 or 1536x1024), a quality (low, medium, high) and a format (PNG or JPEG). To change only part of a picture, send the image plus a mask: a PNG of the same size where the transparent area is what the model may repaint.
Generate and remix a video
Sora 2 makes video as an asynchronous job: create, poll until it's done, then download. Pick 720x1280 or 1280x720 and 4, 8 or 12 seconds. An input reference image must match the video size, and faces in it are rejected. Remix changes a finished video with a short prompt, ideally one change at a time.
Ask a model about a picture
A multimodal chat model such as gpt-4.1-mini reads images you send with the prompt. The prompt decides the result: a concise caption, a detailed one, alt text for accessibility, or an answer to a question that points to what is visible. Up to 10 images can go in one request, and detail (low, high, auto) trades cost for small text.
Content Understanding turns media into fields
Azure Content Understanding in Foundry Tools runs an analyzer on an image or video and returns the same structured record every time. Start from prebuilt-imageSearch or prebuilt-videoSearch, or create a custom analyzer with fields that classify or generate. For video, segmentation splits the file into scenes with their own fields, key frames and transcript.
Keep visual content safe
Images and video need gates too. A guardrail with image controls classifies hate, sexual, violence and self-harm content, and a custom analyzer can enforce your own visual policy (a competitor's logo, a missing watermark). Text inside a picture can be an indirect prompt injection: read it as data, scan it with Prompt Shields, and never let it grant a tool or an approval.
Text and speech: extract, judge, translate, listen and speak
Learn it in “Speech to Text and Text to Speech for Agents” →Entities and strict JSON
A support ticket goes to Azure Language for named entities (fixed categories, confidence scores) or to a model deployment that can return any shape you ask for. A model needs a JSON schema with strict: true before code can trust the fields. JSON mode only promises valid JSON.
Domain summaries and custom extraction
A plain summary drops what an auditor needs. A domain prompt (role, checklist, glossary, one worked example, temperature 0) fixes that without training. For the same fields at high volume, custom named entity recognition in Azure Language learns your own entity types from labelled examples.
Sentiment and tone
Sentiment analysis returns positive, neutral, negative or mixed with confidence scores, and opinion mining ties each opinion to its target. It is cheap and steady, but it reads “Oh great, another hour on hold” as positive. For tone, ask a model for a label from an enum.
Safety, PII and Prompt Shields
Content Safety scores Hate, Sexual, Violence and Self-harm at severity 0, 2, 4 or 6 and you choose the block threshold. PII detection can redact only the categories your policy lists. Prompt Shields checks the user prompt and any document for hidden instructions.
Translator or an LLM
Azure Translator returns many target languages in one fast call, per character. A dynamic dictionary or Custom Translator protects brand names. An LLM translation flow follows tone and formatting rules written in plain words, but it costs more and can vary, so evaluate it first.
A voice for the agent
Speech to text turns the caller into words, the agent answers, and text to speech with a neural voice speaks the reply. SSML controls pauses and rate. A phrase list boosts a few words; custom speech is for many terms, accents or noise. Voice Live runs the loop over one low-latency connection.
Translate speech and reason over audio
Speech translation recognises one spoken language and returns text in several in one pass, and can speak the result. When the question is about how something was said, send the audio to an audio-capable model such as gpt-4o-audio-preview. A text-only deployment rejects input_audio.
Information extraction: indexing, search, enrichment, agents and Content Understanding
Learn it in “Semantic, Hybrid and Vector Search” →Ingest and index content
An indexer reads files from a data source, runs a skillset (OCR, Text Split, an embedding model) and writes one search document per chunk into the index. Scanned images only become searchable when the OCR skill gets the images (imageAction: generateNormalizedImages).
Keyword, vector, hybrid and semantic
Keyword search (BM25) matches words. Vector search compares embeddings, so it matches meaning. Hybrid runs both in parallel and merges them with Reciprocal Rank Fusion. The semantic ranker then re-reads the top 50 results with a language model and adds captions.
Enrich with skills
A skillset is a chain of skills that adds fields to each document: built-in skills such as OCR, PII Detection and Key Phrase Extraction, a Web API custom skill for your own code, and the Content Understanding skill for layout-aware chunking. Outputs reach the index through output field mappings or index projections.
Connect retrieval to an agent
A Foundry agent gets a knowledge base as a tool (an MCP endpoint). The project’s managed identity needs the Search Index Data Reader role. A retrieval reasoning effort of minimal, low or medium decides whether a model plans subqueries. Answers should come back with citations.
Content Understanding analyzers
An analyzer turns a document into Markdown (layout, tables, figures) and into fields you define. Each field uses a method: extract (text on the page), classify (a fixed list) or generate (the model writes it). Fields come with a confidence score and a source location.
Simulations for education only. They show how Azure behaves; they are not connected to Microsoft Azure.