Azure App Service, Functions and Containers: PaaS and Serverless Compute for Beginners
App Service
- A PaaS to host web apps, APIs and mobile back ends in .NET, Java, Node.js, Python, PHP and more
- Azure handles servers, OS, patching, load balancing and scaling
- Features: autoscale, deployment slots (staging), custom domains and HTTPS, CI/CD from GitHub
- You pay by the App Service plan (size and number of instances)
Azure Functions
- Serverless: write a small piece of code that runs when an event happens
- Triggers: HTTP request, timer, new file in storage, message in a queue
- Pay only when it runs. Scales automatically, including down to zero
- Good for small tasks: resize an image, send an email, process an order
What Is a Container?
- A container packages an app with everything it needs, so it runs the same everywhere
- Smaller and faster than a VM because containers share the host operating system
- An image is the template. A registry stores images (Azure Container Registry)
| Virtual machine | Container | |
|---|---|---|
| Includes | Full operating system | App and libraries only |
| Start time | Minutes | Seconds |
| Size | GBs | MBs |
| Isolation | Strong (own OS) | Process level (shared kernel) |
Azure Container Services
| Service | Use |
|---|---|
| Container Instances (ACI) | Run a container quickly with no cluster. Good for simple or short jobs |
| Container Apps | Run microservices and APIs serverlessly, scale to zero |
| Azure Kubernetes Service (AKS) | Managed Kubernetes for large container apps with many services |
| Azure Container Registry | Private storage for your container images |
Choosing Compute
| Need | Service |
|---|---|
| Full control, existing software | Virtual Machines |
| Website or API, minimal management | App Service |
| Small event-driven code | Functions |
| Run a single container fast | Container Instances |
| Many containerized microservices | AKS or Container Apps |
| Desktops in the cloud | Azure Virtual Desktop |
Practice
- Which service runs a thumbnail maker whenever a photo is uploaded?
- Why are containers lighter than VMs?
- What does AKS manage for you?
Conclusion
App Service hosts web apps, Functions runs event-driven code, and container services run packaged apps. Choose by how much control and management you want.
Quick Summary: App Service; Functions; containers; Azure container services; choosing.

