Explain it simpler
Azure App Service is a managed home for websites. Normally it supplies the programming language for you, but you can also hand it your own container, a packaged app. App Service then sits in front of your container like a receptionist, taking visitors on the usual web doors and passing them to your app. The receptionist must know which inside room your app is in, which is the port number, and you tell it with a setting called WEBSITES_PORT. App Service can also fetch your newest package automatically whenever you publish one. And it can run a practice copy of your site, called a deployment slot, so you can test a new version and then swap it with the live one in a moment, or swap back.
Tomas at Oakridge Books has a Flask image that works perfectly on his laptop. He deploys it as a custom container on Azure App Service, opens the URL and waits. And waits. The log stream fills with lines saying the container did not respond to HTTP pings on the expected port, followed by a restart, then the same lines again. His manager also wants to stop deploying straight into production on Friday evenings and asks for a way to test each new image on a real URL before customers see it, with an instant way back if something breaks. One setting fixes the restarts, and one App Service feature answers the manager. Which ones are they?
Azure App Service, often called Web Apps, can run your own container image on Linux instead of a built-in language runtime. You keep App Service's managed features, such as custom domains, TLS (Transport Layer Security) certificates, autoscale, built-in authentication and deployment slots, while controlling the whole runtime through your Dockerfile. You create one by choosing a container as the publish option and pointing it at an image, for example az webapp create --plan myplan --name orders-web -g rg --container-image-name myregistry.azurecr.io/orders-api:20260914.3. This is a good middle ground when you want a familiar web hosting model but need a runtime or system package the built-in stacks do not provide.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 5 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.