SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Plan and manage an Azure AI solution

AI-103 Set Up AI Solutions in Foundry: Deployment Types, Agent Setup and CI/CD

18 min readAI-103 · Plan and manage an Azure AI solutionUpdated

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

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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

Resource: networking, RBAC,deploymentsProject: agents, files, evaluationsUpgrade Azure OpenAI keeps endpointand keysSeparate resources for dev and prod1✓Resource and projectsType, not region, sets processingscopeData Zone: multi-country, more quotaOne country: Standard or RegionalProvisionedDeveloper has no residency guarantee2✓Where prompts areprocessedStandard: per token, best-effortProvisioned PTUs: predictable latencyBatch: ~50% off, 24 h target, ownquotaDeveloper deleted after 24 hours3✓Billing model by workloadpriority: steady latency, no PTUsdefault overrides a prioritydeploymentflex: half price, 429s, no fallbackPriority on Global and US Data Zone4✓Processing tiersServerless: per token, built-infiltersManaged compute: open-weight, per hourManaged compute: no built-in filtersServerless is the default when offered5✓Serverless API vs managedcomputeOnceNewDefaultVersionAvailable: earlyOnceCurrentVersionExpired: atretirementNoAutoUpgrade stops working atretirementapi-version is the API, not the model6✓Model version upgradesDeployment type = sku.name--sku-capacity sets quota or PTUsPolicy denies Global and DeveloperTierSKUsLocation policy cannot enforceresidency7✓Deployments as codeStandard: your Cosmos DB, Storage,SearchCosmos DB holds threads and historyCapability settings fixed at creationCosmos RU/s grows with each project8✓Basic vs standard agentsetupVersions are immutable snapshotsOne version per endpoint, no splitsPer-session sandboxes drive costGrant roles to the agent's ownidentity9✓Hosted agentscreate_version makes name:versionOIDC: id-token: write + federated credai-agent-evals or AIAgentEvaluation@2First listed agent is the baseline10✓CI/CD for agentsFoundry deployments,agent setup andCI/CD
Mind map

AI-103 Set Up AI Solutions in Foundry: Deployment Types, Agent Setup and CI/CD

Resource: networking, RBAC,deploymentsProject: agents, files, evaluationsUpgrade Azure OpenAI keeps endpointand keysSeparate resources for dev and prod1✓Resource and projectsType, not region, sets processingscopeData Zone: multi-country, more quotaOne country: Standard or RegionalProvisionedDeveloper has no residency guarantee2✓Where prompts areprocessedStandard: per token, best-effortProvisioned PTUs: predictable latencyBatch: ~50% off, 24 h target, ownquotaDeveloper deleted after 24 hours3✓Billing model by workloadpriority: steady latency, no PTUsdefault overrides a prioritydeploymentflex: half price, 429s, no fallbackPriority on Global and US Data Zone4✓Processing tiersServerless: per token, built-infiltersManaged compute: open-weight, per hourManaged compute: no built-in filtersServerless is the default when offered5✓Serverless API vs managedcomputeOnceNewDefaultVersionAvailable: earlyOnceCurrentVersionExpired: atretirementNoAutoUpgrade stops working atretirementapi-version is the API, not the model6✓Model version upgradesDeployment type = sku.name--sku-capacity sets quota or PTUsPolicy denies Global and DeveloperTierSKUsLocation policy cannot enforceresidency7✓Deployments as codeStandard: your Cosmos DB, Storage,SearchCosmos DB holds threads and historyCapability settings fixed at creationCosmos RU/s grows with each project8✓Basic vs standard agentsetupVersions are immutable snapshotsOne version per endpoint, no splitsPer-session sandboxes drive costGrant roles to the agent's ownidentity9✓Hosted agentscreate_version makes name:versionOIDC: id-token: write + federated credai-agent-evals or AIAgentEvaluation@2First listed agent is the baseline10✓CI/CD for agentsFoundry deployments,agent setup andCI/CD

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

  1. 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.
  2. Upgrading an Azure OpenAI resource to a Foundry resource keeps its endpoint and keys; hub-based projects are Foundry (classic).
  3. 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).
  4. 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.
  5. service_tier: priority buys latency per token, default overrides a priority deployment, flex is half price but preemptible with no automatic fallback.
  6. 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.
  7. versionUpgradeOption: OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired or NoAutoUpgrade (plus a migration plan before retirement).
  8. Deployment type is the deployment's sku.name, so Azure Policy on sku.name governs which types can exist.
  9. Standard agent setup: Cosmos DB for threads, Storage for files, AI Search for vector stores; capability settings cannot change on an existing project.
  10. 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.
0/10
Ready to start

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.

1 min read · 10 parts, about 12 min in allStart lesson

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.

Spotted a mistake in this lesson?