Deploy containers to Azure App Service
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 App Service supplies around your image
- Authenticate the image pull with a managed identity
- Ports, pings, and the container start time limit
- How configuration reaches the container
- Key Vault references for secrets in app settings
- Redeploy automatically on a registry push
- Deployment slots and swaps for containers
- Exam-pattern recognition
Three ways to put a new image in front of production traffic
| Consideration | Update the image reference directly | Continuous deployment webhook | Staging slot and swap |
|---|---|---|---|
| What starts it | You run az webapp config container set with the new image or tag | A docker push to the watched repository and tag posts to the webhook | You deploy to the staging slot, then issue the swap |
| Effect on the running app | App Service pulls the new image and serves the old one until the new one is ready | The webhook restarts the app, which then pulls the updated image | Instances are warmed in the source slot first, then routing switches |
| Validation before production traffic | None; the change goes straight to the live app | None; whatever was pushed to that tag is what starts | Full, on the slot's own hostname, and swap with preview adds a pause |
| Rollback | Point the app back at the previous image and wait for another pull | Push the previous image again, or turn continuous deployment off | Swap the same two slots back for the last known good app |
| Tier requirement | Any tier that runs custom containers | Any tier that runs custom containers | Standard, Premium, or Isolated |
| Container-specific catch | A stable tag can pull different content on a later restart or scale-out | Needs basic authentication publishing credentials enabled or the webhook gets 401 | Auto swap is unsupported for containers, and managed identities do not swap |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
Also tested in
References
- Configure an App Service app
- Environment variables and app settings reference
- Configure a custom container for Azure App Service
- Use Key Vault references as app settings in Azure App Service and Azure Functions
- Configure CI/CD to custom containers in Azure App Service
- Set up staging environments in Azure App Service