AI-103 Set Up AI Solutions in Foundry: Deployment Types, Agent Setup and CI/CD
Setting up AI solutions in Microsoft Foundry means designing the Azure infrastructure behind your apps and agents, choosing deployment types that meet residency, latency and cost requirements, configuring model and agent deployments, and promoting them through CI/CD pipelines. This lesson covers the Foundry resource and project model, every deployment type and processing tier, model version upgrade options, basic versus standard agent setup, prompt versus hosted agents, and keyless, evaluation-gated pipelines.
What you’ll learn
- Design Foundry infrastructure with resources and projects, and choose the right isolation boundary for teams and environments
- Choose a deployment type (Global, Data Zone or geography; Standard, Provisioned, Batch or Developer) from residency, latency, quota and cost requirements
- Use priority, flex and default processing tiers and choose between Serverless API and managed compute
- Configure model version upgrade options and create or govern deployments as code with CLI, Bicep and Azure Policy
- Choose basic or standard agent setup and prompt or hosted agents, and configure hosted agent versions, protocols and identity
- Integrate Foundry projects with GitHub Actions or Azure DevOps using OIDC, agents as code and evaluation gates
The 10 parts · about 12 min of reading
- How is Microsoft Foundry infrastructure organized?Start hereA Foundry resource holds deployments, networking and RBAC; projects hold agents and files. Pick the isolation boundary to match.1 min
- Which deployment type keeps prompts where you need them?Deployment type, not resource region, decides where prompts are processed: Global, Data Zone or a single Azure geography.1 min
- Standard, provisioned, batch or DeveloperStandard bills per token best-effort, Provisioned reserves PTUs, Batch runs files at half price in a day, Developer tests fine-tunes.1 min
- Priority, flex and default processing on standard deploymentsThe service_tier parameter trades latency for price on Standard: priority for steady speed, flex at half price, default to opt out.1 min
- Serverless API or managed compute?Serverless API serves Azure-sold models per token with filters; managed compute hosts open-weight models on dedicated GPUs that Foundry sizes, billed hourly.1 min
- How do model versions and upgrade policies work?versionUpgradeOption sets when a deployment moves to a new model version: at a new default, at retirement, or never.1 min
- Model deployments as code and deployment governanceDeployments are child resources whose SKU is the deployment type, so CLI, Bicep and Azure Policy on sku.name govern them.1 min
- Basic vs standard agent setup in Foundry Agent ServiceStandard setup keeps agent state in your own Cosmos DB, Storage and AI Search; capability settings are fixed at project creation.1 min
- Prompt agents vs hosted agentsHosted agents run your container code with immutable versions, per-session sandboxes, protocols and a dedicated Entra agent identity.2 min
- Integrating Foundry projects with CI/CD pipelinesAgents as code, keyless OIDC pipeline sign-in and evaluation gates promote Foundry agents safely through dev, test and prod.2 min
Mind map
How the exam tests this
Questions in this topic are scenario-based. Deployment items give a residency rule, a traffic pattern and a cost or quota constraint and ask for the deployment type or processing tier, so you need to separate where prompts are processed (Global, data zone, geography) from how capacity is billed (per token, PTU, batch). Infrastructure items ask how to split teams or environments across Foundry resources and projects, how to keep an Azure OpenAI endpoint while moving to Foundry, and how to restrict deployment types with policy. Agent items contrast basic and standard setup, which resource stores which data, prompt and hosted agents, hosted agent versioning, protocols and identity. Expect short CLI and Python snippets asking which parameter, value or method completes them, version upgrade options, and pipeline items on OIDC sign-in and evaluation inputs. Some items ask you to select two answers.
Key takeaways
- A Foundry resource holds model deployments, networking and resource-level RBAC; Foundry projects hold agents and files. Separate resources isolate environments; projects under one resource share deployments.
- Upgrading an Azure OpenAI resource to a Foundry resource keeps its endpoint and keys; hub-based projects are Foundry (classic).
- The deployment type, not the resource region, decides where prompts are processed: Global (any region), Data Zone (a multi-country zone), Standard and Regional Provisioned (one Azure geography).
- Provisioned (PTU) gives predictable latency for steady volume; Batch is about half price with a 24-hour target and its own quota; Developer is a 24-hour, no-SLA deployment for testing fine-tuned models.
- service_tier: priority buys latency per token, default overrides a priority deployment, flex is half price but preemptible with no automatic fallback.
- Serverless API has built-in filters and data-zone options; managed compute hosts open-weight models on Foundry-managed GPUs billed hourly, with no geography types and no built-in filtering.
- versionUpgradeOption: OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired or NoAutoUpgrade (plus a migration plan before retirement).
- Deployment type is the deployment's sku.name, so Azure Policy on sku.name governs which types can exist.
- Standard agent setup: Cosmos DB for threads, Storage for files, AI Search for vector stores; capability settings cannot change on an existing project.
- Hosted agent versions are immutable, one version serves all traffic, scaling is per session, and each agent has its own Entra agent identity; pipelines use OIDC and an evaluation gate before prod.
Part 1: How is Microsoft Foundry infrastructure organized?
A Foundry resource holds deployments, networking and RBAC; projects hold agents and files. Pick the isolation boundary to match.
Frequently asked questions
Does creating a Foundry resource in an EU region keep all AI processing in the EU?
No. The resource region governs where data is stored at rest, but the deployment type decides where prompts and responses are processed. Global deployment types can process requests in any Azure region. To keep processing inside the EU, use a Data Zone type in the EU data zone or a geography-based Standard or Regional Provisioned deployment, and use Azure Policy on the deployment SKU to deny Global and Developer types.
What is the difference between Data Zone Standard and Standard deployments in Foundry?
Both bill per token and keep processing out of the global pool. Data Zone Standard processes requests anywhere within a Microsoft-defined multi-country zone, such as the EU or US, and has higher default quotas. Standard processes requests within the Azure geography of the deployment, which is the choice when a single country's boundary, such as Switzerland, is required.
When should I use a Batch deployment instead of Standard or Provisioned?
Use Global Batch or Data Zone Batch for large asynchronous jobs that can wait up to a day. Batch costs about half the Global Standard price, targets a 24-hour turnaround without a real-time guarantee, and uses a separate enqueued-token quota so it does not consume the quota of online deployments. Interactive traffic belongs on Standard or Provisioned deployments.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.