← All posts

IaaS, PaaS, SaaS and Serverless: Choosing the Right Cloud Model

LAYER On-prem IaaS PaaS SaaS Data & access Application Runtime Middleware Operating system Virtualization Servers & storage Networking Physical datacenter you manage provider manages

When I prepared for AZ-900 (Microsoft Azure Fundamentals) while working as an Azure App Developer at Microsoft, the exam covered a lot of ground. But one idea kept coming back: when you move to the cloud, how much of the stack do you still want to manage yourself?

Answer that, and the alphabet soup — IaaS, PaaS, SaaS, serverless — sorts itself out. Here is how I map each model to real Azure services, and the quick flow I use to pick one.

Who manages what

The diagram at the top of this article shows the full stack, from the physical datacenter up to your data. The highlighted (teal) part is what you manage; the rest is managed by the cloud provider:

  • On-premises — you manage everything, from the building to the application.
  • IaaS (Infrastructure as a Service) — the provider gives you virtual machines, storage and network. You still manage the operating system and everything above it.
  • PaaS (Platform as a Service) — the provider also manages the OS and runtime. You deploy your code and configure it.
  • SaaS (Software as a Service) — the provider runs the whole application. You only manage your data and who has access to it.

Don’t miss this: Look at the top row again. In every model, even SaaS, your data and access are your responsibility. This is the “shared responsibility model”, and it explains why most cloud security incidents are not the provider failing — they are a public storage container, an over-permissioned account, or a missing MFA policy on the customer side.

The same app, four ways

To make it concrete, take one task — hosting a web application — and see how it looks in each model on Azure:

Model Azure service You do Azure does
IaaS Virtual Machines Patch the OS, install the runtime, configure IIS or nginx, back it up Hardware, hypervisor, network
PaaS App Service Deploy the code, set the configuration OS, patching, runtime, load balancing, scaling
Serverless Azure Functions Write functions Everything else, including scaling to zero
SaaS Microsoft 365 Configure users, policies and data The entire application

If you followed my Azure DevOps article, the web app there used the PaaS model: we only deployed code to App Service and never touched a server.

How to choose

This is the flow I use. Start at the top and stop at the first “yes”:

1. Does an existing product already do this? SaaS yes 2. Need OS / kernel / custom-agent control? IaaS yes 3. Event-driven, short, bursty? Serverless yes 4. Many services, portability matters? Containers (AKS) yes 5. Otherwise — a standard web app or API PaaS
  1. Does an existing product already do this? Then use SaaS. Building your own email or CRM is rarely worth it.
  2. Do you need control of the OS (custom agents, kernel settings, legacy software)? Then use IaaS — and accept the patching that comes with it.
  3. Is the workload event-driven, short and bursty? Then serverless is usually the cheapest option.
  4. Do you have many services and need portability? Then containers (for example Azure Kubernetes Service, which I introduced in this article).
  5. Otherwise — a normal web app or API — PaaS.

The order matters. It always pushes you to the most managed option that still fits, which is almost always the cheapest one to operate.

Cloud terms you will hear all the time

These terms come up in AZ-900 and in every cloud discussion afterwards:

Term Meaning
CapEx → OpEx Stop buying servers upfront; pay monthly for what you use
Elasticity Scale out and back in automatically with demand
High availability Keep running when one component fails (Availability Sets and Zones)
Disaster recovery Keep running when a whole region fails (paired regions, geo-replication)
Region pair Two regions in the same geography, updated one at a time and recovered in priority order
Availability Zone A physically separate datacenter inside a region
Composite SLA Chained services multiply: 99.95% × 99.99% = 99.94%, always lower than the weakest link

And the three deployment models, in one line each:

  • Public cloud — shared provider infrastructure, pay as you go.
  • Private cloud — dedicated infrastructure, run by you (on-premises or hosted).
  • Hybrid cloud — both connected together (for example with VPN Gateway, ExpressRoute or Azure Arc). This is where most enterprises really are.

The 2 a.m. test

Choosing a cloud model really comes down to one question: what are you willing to patch at 2 a.m.? If the answer is nothing, go SaaS or serverless. If it’s only your code, PaaS. If you genuinely need the operating system, take IaaS and the work that comes with it. Preparing for AZ-900 yourself? The official Azure Fundamentals page links to free Microsoft Learn paths that cover all of this.