Domain 1: Develop Containerized Solutions on Azure (Part 1 of 2)
This lesson covers 4 exam topics: Azure Container Registry: Images, Tags and Tiers, Building Images with ACR Tasks, Containers on App Service: Settings and Secrets, Azure Container Apps: Environments and Revisions. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
2. Building Images with ACR Tasks
Central question: How do you build and patch images in Azure without a local Docker engine?
Facts
| Task type | What it does |
|---|---|
| Quick task | az acr build: docker build + push in the cloud, no local Docker Engine |
| Triggered task | az acr task create: build on source commit or pull request (GitHub, Azure DevOps), on base image update, or on a timer |
| Multi-step task | YAML-defined build, test, push steps |
- Base-image triggers automate OS and framework patching while keeping containers immutable.
- Tasks integrate into CI/CD: a pipeline signed in with a service principal can run
az acr build.
Exam traps
- Installing Docker on build agents when
az acr buildworks. - Manual rebuilds after base-image patches. Use a base image trigger.
- Confusing quick tasks with triggered tasks.
3. Containers on App Service: Settings and Secrets
Central question: How do you run a custom container on App Service and give it configuration and secrets?
Facts
- App settings are injected into the container as environment variables.
- App Service assumes port 80; set WEBSITES_PORT if the container listens elsewhere.
- Pull from ACR with managed identity (system- or user-assigned) granted the AcrPull role; service-principal pulls for Windows containers are no longer supported.
- Key Vault references as app settings:
@Microsoft.KeyVault(SecretUri=...)or(VaultName=...;SecretName=...); the app's managed identity needs Key Vault Secrets User (RBAC). - References without a version use the latest secret version; App Service caches values and refetches every 24 hours (any config change forces an immediate refetch).
Exam traps
- Secrets in the image or in plain app settings. Use Key Vault references.
- Wrong port with no WEBSITES_PORT.
- Registry admin credentials instead of managed identity + AcrPull.
4. Azure Container Apps: Environments and Revisions
Central question: How are Container Apps organized, configured and versioned?
Environments
- An environment is a secure boundary around container apps and jobs; apps in it share a virtual network and log destination.
- Workload profiles environments (default) support Consumption (scale to zero, pay per use) and Dedicated profiles; Consumption-only environments are legacy.
Revisions
- A revision is an immutable snapshot of a version of the app.
- Revision-scope changes (anything in
properties.template: image, env vars, scale rules) create a new revision; application-scope changes (secrets, ingress, registries) don't. - Modes: Single (default; new revision replaces old once ready; failed update keeps traffic on old) and Multiple (traffic splitting, blue-green); labels give a revision its own URL.
- Changing secrets doesn't create a revision: restart or deploy a new revision to pick them up.
- Secrets can reference Key Vault; avoid literal values in production.
Exam traps
- Expecting a new revision after changing a secret.
- Traffic splitting in single revision mode. Use multiple.
- Literal secret values instead of Key Vault references.
References
- AI-200 study guide — checked Oct 22, 2026
- ACR introduction — checked Oct 22, 2026
- Image tag best practices — checked Oct 22, 2026
- ACR Tasks overview — checked Oct 22, 2026
- Configure a custom container — checked Oct 22, 2026
- Key Vault references — checked Oct 22, 2026
- Revisions — checked Oct 22, 2026
- Environments — checked Oct 22, 2026
- Manage secrets — checked Oct 22, 2026
Check your understanding
Tag for production deployments?Show answerHide answer
Answer
A unique tag (build ID or digest).Build without local Docker?Show answerHide answer
Answer
az acr build (quick task).Container listens on 8080?Show answerHide answer
Answer
Set WEBSITES_PORT=8080.20% traffic to a new version?Show answerHide answer
Answer
Multiple revision mode with traffic split.Tier for geo-replication?Show answerHide answer
Answer
Premium.