MOFAKH.COM
← Back to profile
Azure Fundamentals

Regions, availability zones and redundancy: where Azure physically is

Nov 20, 202615 min readWritten

Azure is buildings, and buildings fail: power cuts, floods, a cut fibre line. This part maps the physical layout (datacentres, availability zones, regions, geographies), shows which failure each layer protects against, and builds the vocabulary of reliability that every later service uses: zonal versus zone-redundant, region pairs, durability versus availability, SLAs and the downtime they allow, RTO and RPO.

This is the third part of the Azure series. Part 2 placed every resource in a logical hierarchy: subscription, resource group, resource. This part places it physically. Every Azure resource runs on real servers, in real buildings, at a specific spot on the planet, and where that spot is decides how fast your app is for its users, which laws apply to its data, and what happens when something breaks.

The second half of the part is vocabulary. Words like "zone-redundant", "99.99% SLA" and "RPO of 15 minutes" appear in every service's documentation, and they are easy to nod along to without knowing what they promise.

Things fail, so the question is which things fail together

Part 1 ended with a fact worth repeating: at cloud scale, hardware fails all the time. With millions of servers, disks die every hour, power supplies burn out, network switches crash. Occasionally something bigger goes: a building loses power, a cooling system fails, a construction crew cuts a fibre line, a flood or storm hits a city.

You cannot stop these failures. What you can do is make sure that no single failure takes down every copy of your app or your data. Each kind of failure has a blast radius (everything it takes down with it), and redundancy only helps if the copies sit outside each other's blast radius.

FailureBlast radiusSurvived by copies on...
a disk or server diesone machineother servers
a rack loses powera few dozen serversother racks
a building loses power or coolingone datacentreanother datacentre
a local disaster (flood, fire, grid failure)nearby datacentresa datacentre far enough away
a regional disaster or large outagea whole metropolitan areaanother region, hundreds of km away

Azure's physical layout is built as a nested set of these blast radii, and each layer has a name.

The physical layers

Azure's physical layout, smallest to largest
Datacentre
one building
servers
racks
power
cooling
grouped into
Availability zone
independent site
one or more datacentres
grouped into
Region
a metro area
usually three zones
grouped into
Geography
a country or market
one or more regions

Datacentres

The smallest unit is a datacentre: one building, with its servers, power and cooling. Inside, Azure already spreads things around: when you run several instances of a VM or app, Azure places them on different servers and racks, so that one failed machine does not take down every instance. You rarely need to think about this level directly.

Availability zones

An availability zone is a physically separate site within a region: one or more datacentres with their own independent power, cooling and networking. The point of "independent" is that a failure in one zone (a power cut, a cooling failure, a network fault) should not affect the others.

Zones are a balance between two needs:

  • Far enough apart that a local problem does not hit two at once. Microsoft places them typically several kilometres apart.
  • Close enough that data can be copied between them almost instantly. Zones in a region are usually within 100 km of each other, and Microsoft aims for a round-trip network latency of under roughly 2 milliseconds between them.

That second number is what makes zones so useful. At 2 milliseconds, a database can wait for every write to be confirmed in two or three zones before telling the app "saved" (called synchronous replication), and the app barely notices. So data can be kept in several zones with no data loss if one goes down.

A zone-enabled region usually has three availability zones. Not every region has zones, and not every service supports them in every region, so it is worth checking both when choosing where to deploy.

Note to self
Zone numbers are not the same for everyone. Each subscription sees zones labelled 1, 2 and 3, but Azure maps those labels to physical sites separately per subscription, to spread customers evenly. Zone 1 in one subscription may be a different building from zone 1 in another. Within one subscription the labels are consistent, which is all that usually matters.

Regions

A region is a set of datacentres within a single metropolitan area, connected by a fast, low-latency network: West Europe (in the Netherlands), East US (in Virginia), UK South (London), Australia East (Sydney). Azure has well over 60 of them around the world. A region is the thing you actually choose when you create a resource, and it is what the "location" field in Part 2 refers to.

Each region has a display name and a programmatic name that the CLI and templates use: "West Europe" is westeurope, "East US 2" is eastus2.

Geographies

A geography is a larger area, usually a country or a market such as "United Kingdom", "Germany" or "United States", containing one or more regions. Geographies matter for data residency: laws and contracts often say data must stay within a given country or legal area, and Azure commits that certain data stays within the geography you chose.

How to choose a region

For most applications, the choice comes down to five questions, in roughly this order:

QuestionWhy it matters
Where must the data be stored?legal and contractual rules can rule out most regions before anything else is considered
Where are the users?every request crosses the distance to the region and back; a region on the user's continent saves tens to hundreds of milliseconds per round trip
Does it have availability zones?without zones, the region offers no protection against a datacentre-level failure
Does it offer the services I need?newer or specialized services (certain VM sizes, some AI services) are not in every region
What does it cost?the same service can be priced differently in different regions

Two more practical rules. Keep the resources of one application in the same region where possible, because traffic between regions is slower and is often charged for. And choose once, carefully: moving a running application to another region is a migration project, not a setting.

Zonal versus zone-redundant resources

Once a region has zones, a resource can relate to them in one of three ways, and the words for them are precise:

KindWhat it meansIf one zone fails
Non-zonal (regional)Azure places it somewhere in the region, with no zone guaranteesit may be unavailable, depending on where Azure put it
Zonalpinned to one zone that you chooseit goes down with that zone
Zone-redundantspread across several zones automaticallyit keeps working from the other zones

A zonal resource is useful when you want control: for example, placing a VM in the same zone as the database it talks to, to shave off latency. But one zonal resource alone has no protection against a zone outage. To survive one, you must deploy several zonal copies in different zones and spread traffic between them yourself.

A zone-redundant resource does that work for you. A zone-redundant storage account keeps copies of your data in three zones; a zone-redundant App Service plan spreads your app's instances across zones. This is usually what you want for anything that matters, and it is often a single setting, though some services require choosing it at creation time and some charge more for it.

The general term Microsoft uses is zone-resilient: a resource that keeps working through the loss of a zone, because it uses two or more zones.

Region pairs and nonpaired regions

Zones protect against a failure in part of a region. They cannot protect against an event that takes down a whole region, or a large part of one: a regional power-grid failure, a major natural disaster, or a software fault that spreads across a region. For that, you need copies in a second region, far away.

Historically, Azure organized this around region pairs: most regions were paired with another region in the same geography, typically hundreds of kilometres away, such as North Europe with West Europe or East US with West US. Pairs come with a few useful properties:

  • Some services replicate data to the paired region automatically when you choose a geo-redundant option. Geo-redundant storage, for example, copies data to the pair.
  • Azure rolls out platform updates to one region of a pair at a time, so a bad update is less likely to hit both.
  • In a widespread outage, Microsoft prioritizes recovering one region of each pair.

Newer regions often work differently. Many recently opened regions have availability zones but no pair, and Microsoft now lists a set of nonpaired regions. For these, cross-region redundancy is something you design yourself: you choose a second region and set up replication to it.

The cost of distance: synchronous versus asynchronous

Why not just copy everything to a second region synchronously, the way zones do? Because of the speed of light. Zones are a couple of milliseconds apart. Regions hundreds or thousands of kilometres apart can be tens of milliseconds apart, and waiting for every write to be confirmed in another region would make every write slow.

So copies to another region are almost always asynchronous: the write is confirmed locally first, and copied to the other region a moment later. That has a consequence worth stating plainly:

Synchronous replicationAsynchronous replication
The app is told "saved"...after every copy has the dataafter the local copy has the data
Typical useacross zones in one regionacross regions
Speed of each writeslower (waits for the slowest copy)fast
If the primary failsno data lostthe most recent writes, not yet copied, can be lost

Asynchronous replication always has a window, usually seconds to minutes, in which the newest data exists in only one place. If the primary region fails during that window, those writes are gone. This trade-off appears again in the database topic, where read replicas lag behind the primary for exactly this reason.

A worked example: storage redundancy options

Azure Storage, the next topic in this path, is a good concrete example because its redundancy options map exactly onto the layers above:

OptionCopies keptSurvivesDurability per year
LRS (locally redundant)3 copies in one datacentredisk, server and rack failuresat least 11 nines (99.999999999%)
ZRS (zone-redundant)3 copies across 3 zonesa whole zone going downat least 12 nines
GRS (geo-redundant)LRS in the primary region + LRS in a secondary region, copied asynchronouslya whole region going downat least 16 nines
GZRS (geo-zone-redundant)ZRS in the primary region + LRS in a secondary regiona zone outage with no data loss, and a region outageat least 16 nines

Two things to notice. First, the options are literally "how many blast radii apart are the copies". Second, the geo-redundant options inherit the asynchronous trade-off: if the primary region fails, the secondary may be missing the last few moments of writes.

The Storage topic covers choosing between these, and their price differences, in detail.

Durability versus availability

The table above talks about durability, which is a different promise from availability, and confusing the two is common.

  • Durability: the data will not be lost. "11 nines of durability" means that, statistically, losing an object stored this way is extraordinarily unlikely.
  • Availability: the service can be reached right now. A storage account can be unavailable for an hour during an outage and still be perfectly durable: the data is safe, you just cannot get to it until the outage ends.

A system can be highly durable and poorly available (data safe in a vault you cannot open today), or highly available but not durable (a cache that always answers but forgets everything when restarted). Most systems need a deliberate amount of each.

SLAs: what "99.99%" actually allows

A service-level agreement (SLA) is Microsoft's formal promise of availability for a service, usually as a monthly percentage of uptime. If the service falls below it, Microsoft refunds a portion of that service's cost as service credits. The percentages sound almost identical, but the downtime they allow differs enormously:

SLAAllowed downtime per monthAllowed downtime per year
99%about 7.3 hoursabout 3.65 days
99.9% ("three nines")about 43.8 minutesabout 8.8 hours
99.95%about 21.9 minutesabout 4.4 hours
99.99% ("four nines")about 4.4 minutesabout 53 minutes
99.999% ("five nines")about 26 secondsabout 5.3 minutes

Three practical points about SLAs:

The SLA usually depends on how you deploy. A single VM, a zone-redundant VM set and a VM set spread across zones get different SLAs. The highest numbers almost always require the zone-redundant or multi-instance option.

Your app's availability is lower than any single part's. If a request needs the web app and the database and the storage account, it fails when any of them fails, so their availabilities multiply. A web app at 99.95% depending on a database at 99.99% gives at most 0.9995 × 0.9999 ≈ 99.94% for the combination. Every extra dependency in the request path pulls the number down. This is called a composite SLA.

An SLA is a refund, not a guarantee. It tells you how much Microsoft will credit you if the service fails, not that it will not fail. A refund of part of a monthly database bill is rarely worth as much as the business you lost during the outage. Reliability is still yours to design.

RTO and RPO: what recovery has to achieve

When something does fail, two numbers define what "recovered" means. Every serious system should have them written down, because they drive almost every reliability decision:

  • RTO, recovery time objective: how long the system may be down before it must be working again. "We must be back within 1 hour."
  • RPO, recovery point objective: how much data you can afford to lose, measured in time. "We may lose at most the last 5 minutes of writes."
RPO looks backwards, RTO looks forwards
Last safe copy
data up to here survives
RPO: data lost
Failure
the moment it breaks
RTO: time down
Recovered
working again

These map straight onto the replication choices above. Synchronous replication across zones gives an RPO of zero for a zone failure. Asynchronous replication to another region gives an RPO of seconds to minutes for a region failure. A nightly backup gives an RPO of up to 24 hours. Lower RTO and RPO always cost more, so the right numbers are a business decision ("how much is an hour of downtime worth to us?") as much as a technical one.

Reliability is shared, too

Part 1's shared responsibility model applies to reliability as well. Microsoft is responsible for the zones and regions existing, for their power and networks, and for each service meeting its SLA. You are responsible for using them: choosing zone-redundant options, running more than one instance, deciding whether you need a second region, and testing that recovery actually works.

A service deployed as a single instance in a single zone gets very little from Azure's global footprint. The infrastructure for surviving failures is there, but it is opt-in, and opting in is a design decision every app has to make.

Seeing regions from the command line

bash
# Every region available to your subscription, with programmatic names
az account list-locations --output table
 
# Only the physical regions (excludes logical groupings like "Europe")
az account list-locations --query "[?metadata.regionType=='Physical'].name" --output tsv

The one idea to hold onto

Azure is buildings, and buildings fail. Datacentres group into availability zones (independent power, cooling and network, about 2 ms apart), zones group into regions, and regions into geographies. Copies only protect you if they sit outside each other's blast radius: synchronous copies across zones lose nothing, asynchronous copies across regions survive bigger disasters but can lose the newest writes. SLAs, RTO and RPO are the numbers that say how much failure you are prepared to accept, and Azure gives you the tools to meet them only if you choose to use them.

Further reading

What comes next

Parts 2 and 3 described where resources live, logically and physically. Part 4 looks at how they come to exist at all: the single front door, Azure Resource Manager, that every portal click, CLI command, SDK call and template goes through. It follows one request from your machine to a running resource, and separates the two very different kinds of request Azure handles: managing a resource, and using it.