MOFAKH.COM
← Back to profile
Azure Fundamentals

What the cloud actually is: renting someone else's computers

Nov 20, 202616 min readWritten

The cloud is not a place and not magic: it is enormous buildings full of ordinary servers, sliced up by virtualization and rented out by the minute through an API. This part builds that picture from the problem it solves, then names the five properties that make something a cloud, the IaaS/PaaS/SaaS/serverless scale, and the shared responsibility model that decides what stays your problem.

This is the first part of a bottom-up series on Azure. Before any Azure product, it answers the question underneath all of them: what is a "cloud", and why does nearly every company now run its software on one? Everything later (subscriptions, regions, App Service, Functions) is a detail of the picture built here.

None of this part is Azure-specific. AWS, Google Cloud and Azure are three companies selling the same basic thing, so the mental model transfers to all of them.

The problem: software needs computers

Every piece of software runs on a computer somewhere. A web API needs a machine that is switched on, connected to the internet, and able to answer requests at three in the morning on a public holiday. Its database needs disks that do not lose data. Its background jobs need processors to run on.

Before the cloud, a company that wanted to run software had to own those computers. Owning a server turns out to involve far more than buying one:

JobWhat it actually means
Buychoose hardware, order it, wait weeks for delivery
Housea room with racks, physical security and fire suppression
Powerreliable electricity, plus batteries and generators for outages
Coolservers turn electricity into heat; without cooling they shut down
Connectnetwork switches, routers, internet links, and spares for each
Maintainreplace failed disks, fans and power supplies; patch firmware and operating systems
Plan capacityguess how much you will need a year from now, then buy it up front
Retirereplace everything after a few years, and wipe the old disks securely

The last two rows are the painful ones. Capacity planning forces a bet: buy for your busiest day of the year and most of the hardware sits idle the rest of the time; buy for an average day and the busiest day takes the site down. And all of it is paid up front, as a large purchase, before the software has earned anything.

The core problem: owning computers means paying in advance for capacity you have to guess, then employing people to keep machines you do not care about alive. Almost nobody's business is "running servers", yet everybody who ships software had to do it.

What the cloud is

A cloud provider solves this by doing all of it once, at enormous scale, and renting it out.

Physically, a cloud is a set of datacentres: warehouse-sized buildings filled with rows of racks, each rack holding dozens of ordinary servers. Those servers are not exotic. They have processors, memory, disks and network cards like any computer. What is special is the scale, and what surrounds them: redundant power feeds, generators, industrial cooling, and private fibre networks linking the buildings together.

The provider then rents slices of that hardware to anyone with a credit card, by the minute or by the second, through a website and, more importantly, through an API. You do not phone anyone or sign a purchase order. You send a request that says "give me a machine with 4 processors and 16 GB of memory in western Europe", and a minute later it exists. When you send "delete it", it stops existing and the bill stops growing.

Owning versus renting
On-premises
you own it
buy up front
guess capacity
maintain everything
vs
Cloud
you rent it
pay per use
scale on demand
provider maintains hardware

Accountants have names for the two models. Buying servers is capital expenditure (CapEx): a large purchase of an asset, paid up front. Renting from a cloud is operational expenditure (OpEx): a running cost, paid as you go, that grows and shrinks with usage. Much of the cloud's appeal to businesses is this shift alone: no big bet up front, and a bill that tracks what is actually used.

The trick that makes renting possible: virtualization

There is a puzzle in "rent a slice of a server". A physical server is one machine. How can it be rented to ten different customers at once, each believing they have their own computer, none able to see the others?

The answer is virtualization. A thin layer of software called a hypervisor runs directly on the physical hardware and divides it into several virtual machines (VMs). Each VM gets its own share of the processors, its own slice of memory, its own virtual disk and its own virtual network card. Each runs its own operating system, which believes it is talking to real hardware. The hypervisor enforces the boundaries, so one customer's VM cannot read another's memory.

One physical server, many virtual machines
Customer VMs
each with its own operating system
VM for customer A
VM for customer B
VM for customer C
run on
Hypervisor
divides and isolates the hardware
runs on
Physical server
processors, memory, disks, network card

Virtualization is what turns a building full of servers into a pool of resources that can be carved up, handed out and taken back in seconds. Azure runs its own hypervisor, derived from Microsoft's Hyper-V, on every server in every datacentre. Every Azure service you will meet, even the ones that never show you a VM, ultimately runs on virtual machines carved out this way.

The arrangement where many customers share the same physical hardware, isolated from each other, is called multi-tenancy.

Note to self
"Tenant" means two different things in Azure. In the multi-tenancy sense, a tenant is any customer sharing the hardware. In the identity sense (the Azure Identity series), a tenant is an organization's directory in Entra ID. Same word, unrelated ideas; context always tells them apart.

The five properties of a cloud

"Cloud" was a marketing word for years before anyone defined it. The definition the industry settled on comes from the US National Institute of Standards and Technology (NIST), and it is useful because it names exactly what separates a cloud from "a server in someone else's building". A cloud has five essential characteristics:

PropertyMeaningWhat it looks like
On-demand self-serviceyou get resources yourself, without a human at the providera database created with one command, at 3 a.m., with nobody approving it
Broad network accesseverything is reachable over the network with standard protocolsthe portal, the API and your app all work over HTTPS from anywhere
Resource poolingthe provider's hardware is shared among many customersyour VM and a stranger's VM may sit on the same physical server
Rapid elasticitycapacity grows and shrinks quickly, often automaticallyten servers at the evening peak, two at night
Measured serviceusage is metered and billed by what you consumea bill itemized in hours of compute, gigabytes stored, requests served

A company that rents a fixed rack in a hosting facility, signs a three-year contract and emails support to add a server has none of these. That is hosting, not cloud. The five properties are why the cloud changed how software is built: when a server can be created by code in a minute and deleted when no longer needed, servers stop being precious things to care for and become disposable parts.

Deployment models: public, private, hybrid

Who the cloud's hardware belongs to gives three deployment models:

  • Public cloud: the provider's hardware, shared among many customers, reached over the internet. Azure, AWS and Google Cloud are public clouds. This path is entirely about the public cloud.
  • Private cloud: the same self-service, pooled, elastic model, but on hardware dedicated to a single organization, often in its own datacentre. Common in banks, governments and others with strict rules about where data may sit.
  • Hybrid cloud: a mix of the two, connected so that workloads and data can move between them. For example, a company keeps its customer database in its own datacentre for regulatory reasons but runs its website in a public cloud.

You will also hear multi-cloud: using more than one public provider at once, say Azure for most things and another provider for one specific service.

Service models: who manages what

Renting computers can mean very different things. Renting a bare virtual machine leaves you installing and patching the operating system yourself. Renting "a place to run my web app" leaves the provider handling the operating system and everything beneath it. The industry describes this as a stack of layers, and the service models differ only in where the line falls between what the provider manages and what you manage.

LayerOn-premisesIaaSPaaSServerless (FaaS)SaaS
Your data and accessyouyouyouyouyou
Your application codeyouyouyouyouprovider
Runtime (.NET, Node)youyouproviderproviderprovider
Scaling decisionsyouyousharedproviderprovider
Operating systemyouyouproviderproviderprovider
Virtualizationyouproviderproviderproviderprovider
Physical servers, storage, networkyouproviderproviderproviderprovider
Buildings, power, coolingyouproviderproviderproviderprovider

Reading the columns left to right, the provider takes on more and more of the stack:

IaaS: Infrastructure as a Service

You rent the infrastructure: virtual machines, virtual disks, virtual networks. The provider runs the hardware and the hypervisor; you get a machine with an operating system on it and everything above that is yours: patches, security updates, installing .NET, configuring the web server, scaling.

Azure examples: Azure Virtual Machines, managed disks, virtual networks.

Choose it when you need full control of the operating system, or you are moving an existing application that expects a "real server" and cannot easily change. It is the most flexible model and the most work.

PaaS: Platform as a Service

You rent a platform: somewhere to run your code or store your data, with the operating system and runtime managed for you. You hand over a compiled web app and the platform runs it, patches the operating system underneath, and adds more instances when you ask. You never log in to a server.

Azure examples: App Service (web apps and APIs), Azure SQL Database (a SQL Server database with no server to manage), Azure Storage, Azure Cache for Redis.

Choose it when you are writing your own application and do not want to run servers. For most new web software this is the default.

Serverless (FaaS: Functions as a Service)

A further step: you hand over individual functions (small pieces of code) and tell the platform which events should run them, such as "an HTTP request arrived", "a file was uploaded", "it is midnight". The platform runs your code when an event happens, scales the number of copies to match the number of events, all the way down to zero when nothing is happening, and bills for the time your code actually ran.

Azure examples: Azure Functions; to a degree also Logic Apps and Azure Container Apps.

Choose it when the work is event-driven and bursty: background processing, scheduled jobs, reacting to files or messages. "Serverless" does not mean there are no servers. It means the servers are entirely the provider's concern, including how many there are at any moment.

SaaS: Software as a Service

You rent finished software and simply use it. There is nothing to deploy and no code of your own. You manage only your data and who has access.

Examples: Microsoft 365 (email, Office, Teams), GitHub, Salesforce, Gmail.

Choose it when the software you need already exists. Nobody should build their own email system.

The pattern: every step to the right trades control for convenience. IaaS lets you change anything and makes you responsible for everything. SaaS lets you change almost nothing and asks almost nothing of you. Most real systems mix several: PhotoDrop will use PaaS for its API and storage, serverless for its background work, and SaaS for things like source control.

The shared responsibility model

The service-model table has a second, more serious reading: security and reliability are split along the same line. Whatever the provider manages, the provider secures. Whatever you manage, you secure. Microsoft calls this the shared responsibility model.

Three things stay yours in every model, even SaaS:

  • Your data. What you store, whether it is classified correctly, and whether it is backed up the way your business needs.
  • Your accounts and identities. Who has access, whether they use multi-factor authentication, and whether old accounts get removed.
  • Your devices. The laptops and phones people use to reach the cloud.

Everything else moves with the model. On a VM (IaaS), an unpatched operating system is your fault. On App Service (PaaS), patching the operating system is Microsoft's job, but a SQL injection hole in your code is still yours. The cloud never removes responsibility. It moves the line, and you have to know where the line is for each service you use.

A common and expensive misunderstanding: "it's in the cloud, so it's backed up and secure." The provider guarantees its hardware will not lose your data and its buildings are physically secure. It does not stop you, or an attacker holding your credentials, from deleting that data, and it does not make a public storage container private. Most real cloud security incidents are misconfigurations on the customer's side of the line.

Scaling, elasticity and availability

Three words come up constantly in cloud material, and they are worth pinning down now.

Scaling is changing the capacity of a system to match its load, and there are two directions:

Scale up (vertical)Scale out (horizontal)
What changesa bigger machine: more processors, more memorymore machines of the same size
Examplemove the API from 2 to 8 processorsrun the API on 6 instances instead of 2
Limitthe largest machine size availablealmost none, if the app is designed for it
Needs app changes?rarelyyes: no state kept in one instance's memory
Downtime?often a restartusually none

Scaling out is the cloud's natural direction, and it imposes one rule on application design: an instance must not keep anything important in its own memory, because the next request may land on a different instance. That is why sessions, caches and uploaded files live in shared services (a database, Redis, Blob Storage) rather than on the web server.

Elasticity is scaling that happens automatically and in both directions: capacity grows with demand and shrinks again afterwards. Scalability is the ability to grow; elasticity is growing and shrinking on its own. Shrinking is where the cloud saves money, since idle capacity you have released costs nothing.

High availability means the system keeps working when parts of it fail. In the cloud, parts fail constantly: with millions of servers, some are dying at every moment. Availability comes from redundancy (more than one copy of everything, in places that do not fail together), which is the whole subject of Part 3.

What the cloud does not solve

A fair picture includes the costs:

  • Less control. You cannot walk into the datacentre, choose the exact hardware, or keep the provider from retiring a feature you depend on.
  • Lock-in. Code written against a provider-specific service (Azure Functions bindings, a proprietary database API) does not move to another provider for free.
  • Cost surprises. Pay-as-you-go also means pay-for-mistakes. A forgotten large VM or a runaway loop calling a paid API keeps charging until someone notices. Part 6 is about avoiding this.
  • The network is in the way. Every call to a cloud service crosses a network, which adds latency and can fail. Code has to handle timeouts and retries that a local function call never needed.
  • Failures still happen. Providers have outages. The cloud gives you the tools to survive them (zones, regions, redundancy), but using those tools is your design decision.

The vocabulary so far

TermMeaning
Datacentrea building full of servers, power, cooling and network
Virtualizationsplitting one physical machine into many isolated virtual ones
Hypervisorthe software layer that does the splitting and enforces isolation
Virtual machine (VM)one isolated slice: its own OS, processors, memory and disk
Multi-tenancymany customers sharing hardware, isolated from each other
CapEx / OpExbuying assets up front / paying running costs as you go
IaaS / PaaS / FaaS / SaaSwhere the provider/customer management line falls
Shared responsibilitysecurity and reliability split along that same line
Scale up / scale outbigger machines / more machines
Elasticityscaling automatically, in both directions

The one idea to hold onto

The cloud is someone else's datacentres, sliced into virtual machines by a hypervisor and rented by the minute through an API. Its five properties (self-service, network access, pooling, elasticity, metering) turn servers from precious assets into disposable parts. The service models (IaaS, PaaS, serverless, SaaS) only decide where the line falls between what the provider runs and what you run, and responsibility for security and reliability splits along exactly the same line.

Further reading

What comes next

Part 2 moves from clouds in general to Azure in particular, and answers the first practical question: when you create something in Azure, where does it live? It builds the hierarchy every Azure resource sits in (tenant, management groups, subscriptions, resource groups, resources), what each level is for, and how permissions, policies and costs flow down through it.