Domain 1 of 4 · Chapter 4 of 7

Deploy applications to Azure Container Apps

Unlock the complete study guide + 1,040 practice questions across 16 full exams.

Bundled into the existing Developing AI Cloud Solutions on Azure premium course — no separate purchase.

14-day money-back guarantee — no questions asked.

Included in this chapter:

  • What the environment gives you before your app runs
  • Template or configuration: what a change actually does
  • Getting the image in without a stored password
  • Secrets and the environment variables that read them
  • Ingress: one container port in, one setting for all revisions
  • Choosing which revision serves the request
  • Workload profiles, and what each plan bills
  • Exam-pattern recognition

Three ways to put a new revision in front of users

ConsiderationSingle revision modeMultiple revisions with traffic weightsRevision label URL
What a caller reachesAll traffic moves to the new revision once it is readyEach active revision receives the percentage of requests you assigned itOnly requests sent to the label's own URL reach that revision
How you set it upNothing to set; it is the default mode, so deploying a revision-scope change is enoughaz containerapp revision set-mode --mode multiple, then az containerapp ingress traffic set --revision-weightaz containerapp revision label add --revision <name> --label <label>
Percentages involvedNone; the platform switches over for youThe combined weight of all rules must equal 100, and latest is a reserved name for the newest revisionNone; labels work independently of traffic splitting
Rolling backDeploy the previous configuration again, or reactivate the earlier revisionMove the weight back to the known-good revisionMove the label to another revision; testers keep the same URL
What happens to the old revisionDeprovisioned automaticallyStays active at its assigned weight, including at 0 percent, until it is deactivatedStays active and reachable through its own URL
Best suited toOrdinary rollouts where an automatic, downtime-free switch is enoughCanary and blue-green releases where you control the paceHanding testers a stable address for one specific build

Decision tree

Does the workload runcontinuously, or stop when done?stops when doneruns continuouslyContainer Apps jobManual, Schedule, or Event triggerMust the build be validatedbefore real users reach it?noyesSingle revision modethe default; it switches once readyShould a share of livetraffic reach it?yesnoMultiple revision modetraffic weights, totalling 100Revision label URL0 percent weight, stable URL

Cheat sheet

  • The environment is the shared secure boundary for apps
  • VNet integration is set at environment creation
  • Container Apps Jobs and their trigger types
  • Workload profiles choose the compute tier inside one environment
  • Template changes create a new revision
  • Single versus multiple revision mode controls active revisions
  • Revision suffixes label revisions for reference
  • Traffic weights split ingress across revisions
  • Revision labels give a stable test URL
  • Weights are set with az containerapp ingress traffic set and must total 100
  • Ingress exposes an app on a target port
  • Secrets are referenced by env vars via secretref
  • Pull from a private ACR with a Container Apps managed identity

Unlock with Premium — includes all practice exams and the complete study guide.

Also tested in

References

  1. Quickstart: build and deploy your app from your local file system to Container Apps
  2. Integrate a virtual network with an Azure Container Apps environment
  3. Azure Container Apps environments
  4. Create a Container Apps environment with the Azure CLI (workload profiles)
  5. Jobs in Azure Container Apps
  6. Update and deploy changes in Azure Container Apps
  7. Manage revisions in Azure Container Apps
  8. Application lifecycle management in Azure Container Apps
  9. Containers in Azure Container Apps
  10. Azure Container Apps image pull from Azure Container Registry with managed identity
  11. Manage secrets in Azure Container Apps
  12. Ingress in Azure Container Apps
  13. Configure ingress for your app in Azure Container Apps
  14. Scaling in Azure Container Apps
  15. Traffic splitting in Azure Container Apps
  16. az containerapp ingress traffic (Azure CLI reference)
  17. Billing in Azure Container Apps
  18. Workload profiles in Azure Container Apps
  19. Azure Container Apps plan types