Home › Studies › AI-103 › Plan & Manage › Foundry Setup & Deployments

Foundry Setup & Deployments

Foundry resource and projects · topology · RBAC · deployment types · model and agent deployments · CI/CD

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Resource hierarchy and topology

PieceAzure typeRole
Foundry resourceMicrosoft.CognitiveServices/accounts, kind AIServicesTop-level resource: networking, security, model deployments
Foundry projectMicrosoft.CognitiveServices/accounts/projects (subresource)Development boundary: agents, evaluations, files. Shares network security, deployments and tool integration with the parent
Connected resourcesStorage, Key Vault, Azure AI SearchIndependent Azure resources with their own governance boundaries; manage their networking and access separately
DecisionSetupMain trade-off
Co-located workloads, experimentationOne Foundry resource, one project per use caseShared blast radius: production incidents, quota exhaustion, misconfiguration
Production workload with strict containment, access control and quota or cost boundariesOne Foundry resource per production workload boundaryMore resources to manage; self-serve is harder

Create the resource and grant access

  1. Create (or reuse) a resource group.
  2. az cognitiveservices account create with --kind AIServices --sku S0 --custom-domain <name> --assign-identity --allow-project-management true.
  3. az cognitiveservices account project create with --name (resource), --project-name and --location.
  4. Verify both with show --query properties.provisioningState; the output should be Succeeded.
RoleUse it for
Foundry UserLeast-privilege role for developers building and testing agents (data actions, reader access, interact with agent endpoints)
Foundry Project ManagerManage and build in projects, assign the Foundry User role, publish agents
Foundry Account OwnerManage projects and resources (manage models); assign Foundry User, ACR and monitoring roles; doesn't build in projects
Foundry OwnerFull access to manage and build; assign Foundry User, ACR and monitoring roles
Foundry Agent ConsumerOnly interact with agent endpoints

These roles were previously named Azure AI User, Azure AI Owner, Azure AI Account Owner and Azure AI Project Manager. Role IDs and core permissions are unchanged.

Deployment types for models

TypeSKU codeProcessingBillingBest for
Global StandardGlobalStandardAny Azure regionPay-per-tokenDefault: newest models, lowest price, broadest regions
Global ProvisionedGlobalProvisionedManagedAny Azure regionReserved PTUPredictable high throughput
Global BatchGlobalBatchAny Azure region50% discount, 24-hour targetLarge async jobs
Data Zone StandardDataZoneStandardWithin the Microsoft-specified data zonePay-per-tokenData zone compliance
Data Zone ProvisionedDataZoneProvisionedManagedWithin data zoneReserved PTUData zone plus throughput
Data Zone BatchDataZoneBatchWithin data zone50% discountAsync jobs in a data zone
StandardStandardWithin Azure geographyPay-per-tokenGeography compliance, low volume
Regional ProvisionedProvisionedManagedWithin Azure geographyReserved PTUGeography compliance plus throughput
DeveloperDeveloperTierAny Azure regionPay-per-tokenFine-tuned model evaluation only: 24-hour lifetime, no SLA

Configure model and agent deployments

  1. List models and SKUs: az cognitiveservices account list-models. Note name, format, version and SKU.
  2. Create the deployment: az cognitiveservices account deployment create with --deployment-name, --model-name, --model-version, --model-format, --sku-capacity and --sku-name.
  3. Verify: az cognitiveservices account deployment show; provisioningState should be Succeeded.

CI/CD for Foundry projects

CLI and PowerShell

TaskAzure CLIPowerShell
Create the Foundry resourceaz cognitiveservices account create --name my-foundry-resource --resource-group my-foundry-rg --kind AIServices --sku S0 --location eastus --custom-domain my-foundry-resource --assign-identity --allow-project-management true-
Create a projectaz cognitiveservices account project create --name my-foundry-resource --resource-group my-foundry-rg --project-name my-foundry-project --location eastus-
List models and SKUs available to the resourceaz cognitiveservices account list-models -n $accountName -g $resourceGroupName-
Create a model deploymentaz cognitiveservices account deployment create -n $accountName -g $resourceGroupName --deployment-name Phi-4-mini-instruct --model-name Phi-4-mini-instruct --model-version 1 --model-format Microsoft --sku-capacity 1 --sku-name GlobalStandard-
Check a deployment's stateaz cognitiveservices account deployment show --deployment-name Phi-4-mini-instruct -n $accountName -g $resourceGroupName-

Exam Tips

Tick each tip once you can answer it without looking.

“Several teams need isolated work areas with shared model deployments” → One Foundry resource with a project per team or use case. Trap: Projects share network security and deployments with the parent; some capabilities work at resource scope only.

“Production workload needs independent access, quota and cost boundaries” → One Foundry resource per production workload boundary. Trap: Co-location shares the blast radius: incidents, quota exhaustion, misconfiguration.

“Each team needs independent fine-tuning or file isolation” → Separate Foundry resources. Trap: Fine-tuning and batch files are resource-scoped; separate projects don't isolate them.

“CLI project creation fails: managed identity must be enabled” → Create the resource with --assign-identity. Trap: --allow-project-management can't be changed after creation, so pass it when you create the resource.

“Developer manages resources but can't chat with an agent” → Add a data plane role such as Foundry User. Trap: Owner or Contributor are management roles and aren't sufficient for all development.

“Least-privilege role to build and test agents” → Foundry User. Trap: Foundry Agent Consumer only interacts with agent endpoints.

“Role that publishes agents and can assign Foundry User” → Foundry Project Manager on the Foundry resource. Trap: Foundry User can't publish; Foundry Account Owner is for managing projects and resources.

“Default deployment type for most workloads” → Global Standard (GlobalStandard). Trap: Move off it only for data residency, reserved throughput or batch.

“Keep inference inside the EU or US with pay-per-token” → Data Zone Standard (DataZoneStandard). Trap: Standard keeps processing in an Azure geography; Global types can process in any region.

“Guaranteed throughput and low latency variance” → A provisioned type (PTU), such as Global Provisioned. Trap: PTUs bill hourly even when idle and can't be paused; only deleting the deployment stops billing.

“Big asynchronous job, results within 24 hours, lowest cost” → Global Batch or Data Zone Batch (50% less). Trap: Developer is only for evaluating fine-tuned models: 24-hour lifetime, no SLA.

“Deploy a partner or community model” → Needs Azure Marketplace permissions (subscription Owner or Contributor include them). Trap: Models sold by Azure don't have this requirement.

“Published agent's tool calls now fail with authorization errors” → Reassign RBAC to the new agent identity. Trap: Publishing creates a unique agent identity, and permissions don't transfer automatically.

“Referring to a specific agent version in code” → <agent_name>:<version>; versions are immutable. Trap: Edits create a new version; a 404 on a stored ID means the agent was deleted, so recreate it.

“GitHub Actions pipeline to deploy a hosted agent” → OIDC sign-in, then azd deploy; assign Foundry User and Contributor on the project. Trap: The template deploys to existing infrastructure; provision first with azd provision.

“Run offline agent evaluation before release in CI/CD” → The agent evaluation GitHub Action with a dataset and agent-ids. Trap: Preview items on that page are preview; use agent-name:version for each agent ID.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Choosing Models & Foundry ServicesQuotas, Monitoring & Security →