Understanding Availability Sets and Availability Zones

Published Dec 17 2020 12:01 AM 20.7K Views
Microsoft

When learning something new there are a lot of phrases, terms and theory to learn and when learning Azure the same is true. One of the things you should be aware of within Azure is the difference and use cases of Availability Zones and Availability Sets.

 

When we are architecting workloads we see availability is making sure the resources or workloads are there when you need them.

 

Virtual Machines in Azure

Within Azure when you spin up a virtual machine it gives you an availability of either 95%, 99.5% or 99.9% depending on how you configure your disks with that virtual machine.  When you think about it in monthly terms a 95% Service Level Agreement (SLA) allows for around one and half days downtime. For a lot of workload cases and organisations these availability numbers will be more than adequate.  If you need more then that’s where Availability Zone and Sets can help.

 

Availability Sets

Availability Sets takes the virtual machine and configures multiple copies of it.  Each copy is isolated within a separate physical server, compute rack, storage units and network switches within a single datacentre within an Azure Region.

 

When you create your virtual machine you can specify the Availability Set, you can’t change it or move it in or out of an Availability Set after creation.  If you wanted to make changes you would need to start again and recreate the virtual machine.   And Availability Sets only apply to virtual machines, they can’t be used for any other type of resource within Azure.

 

Using an Availability Set takes your acceptable downtime to around 22minutes a month.  Which is a vast improvement over the single virtual machine deployment.

 

Availability Zone

The next level of availability for your virtual machines within Azure is Availability Zones.  With Availability Zones utilised your acceptable downtime a month moves to less than 5 minutes as you’ve got a 99.99% SLA.

 

Availability ZoneAvailability Zone

 

With Availability Zones you are starting to use zone aware services. Your workload will be spread out across the different zones that make up an Azure region.  An Azure region is made up of multiple datacentres and each zone is made up of one or more datacentres.  Each datacentre is equipped with independent power, cooling and networking.

 

When do use them?

There can be a few deciding factors around Availability Zones versus Availability Sets, you should be thinking about these questions when designing your workloads in Azure:

 

  • Are Availability Zones available in the region I want to use? You can find out which regions support them and which services are support here.
  • What SLA or availability does this workload really need? Make sure you really understand the business needs versus the wants.  Each configuration will offer you the following:
    • 99.9% = Single VM (with Premium SSD or Ultra Disk)
    • 99.95% = Availability Set
    • 99.99% = Availability Zones

Never Stop Learning

It can feel daunting trying to learn new terminology or technologies however never stop learning, if you learn something new each day, you’ll find it all adds up. And if you are looking to learn more core Azure architectural components, check out this free Microsoft Learn module.

 

3 Comments
Occasional Visitor

Why are you talking about Availability Sets instead of VM Scale Sets?

 

Microsoft

@IntvPrime  : Availability Sets and VMSS are two completely different concepts. While the former aims at improving the SLA of VMs, by distributing them across Fault domains(to provide resilience in case of unplanned outage) and Update domain(to provide resilience in case of planned maintenance), the latter aims to provide scale-out or scale-in based on the utilization of the VMs in the pool. VMSS doesn't aims to improve the SLA of the VMs in the scale set. 

This article aims at explaining how Availability sets and Availability zones aim to improve SLA using two very difference approaches.

Senior Member

I just want to understand for these scenarios

 

1. I deploy a VM and NO Availability Zone  selected so where is my VM located? is there a special no Zone place where my VMs are located when no AZ is selected ( I know I need HA but not all people deploy with HA in mind)?

 

2. An Azure Firewall (AF) is highly available my nature but what if I don't select any AZ since I did not select any AZ for my VMs and I don't want my AF in any specific zones?

 

is my Azure Firewall still HA right? Having at least 2 instances? are my two AZ instances located in a no Zone location?

 

3. And having all of them in no AZ or no AZ location I don't incur in any AZ charge for data traversing different AZ?right? Since I did not select any AZ so there is no AZ locations so there is not data traversing any AZ

 

sorry I need to ask I cannot  make up my mind around this 

Thanks a lot   

%3CLINGO-SUB%20id%3D%22lingo-sub-1992518%22%20slang%3D%22en-US%22%3EUnderstanding%20Availability%20Sets%20and%20Availability%20Zones%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1992518%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20learning%20something%20new%20there%20are%20a%20lot%20of%20phrases%2C%20terms%20and%20theory%20to%20learn%20and%20when%20learning%20Azure%20the%20same%20is%20true.%20One%20of%20the%20things%20you%20should%20be%20aware%20of%20within%20Azure%20is%20the%20difference%20and%20use%20cases%20of%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Favailability-zones%2Faz-overview%3FWT.mc_id%3Dmodinfra-11089-salean%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAvailability%20Zones%20and%20Availability%20Sets%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20we%20are%20architecting%20workloads%20we%20see%20availability%20is%20making%20sure%20the%20resources%20or%20workloads%20are%20there%20when%20you%20need%20them.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EVirtual%20Machines%20in%20Azure%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWithin%20Azure%20when%20you%20spin%20up%20a%20virtual%20machine%20it%20gives%20you%20an%20availability%20of%20either%2095%25%2C%2099.5%25%20or%2099.9%25%20depending%20on%20how%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fsupport%2Flegal%2Fsla%2Fvirtual-machines%2Fv1_9%2F%3FWT.mc_id%3Dmodinfra-11089-salean%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eyou%20configure%20your%20disks%20with%20that%20virtual%20machine%3C%2FA%3E.%26nbsp%3B%20When%20you%20think%20about%20it%20in%20monthly%20terms%20a%2095%25%20Service%20Level%20Agreement%20(SLA)%20allows%20for%20around%20one%20and%20half%20days%20downtime.%20For%20a%20lot%20of%20workload%20cases%20and%20organisations%20these%20availability%20numbers%20will%20be%20more%20than%20adequate.%26nbsp%3B%20If%20you%20need%20more%20then%20that%E2%80%99s%20where%20Availability%20Zone%20and%20Sets%20can%20help.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAvailability%20Sets%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fvirtual-machines%2Fwindows%2Ftutorial-availability-sets%3FWT.mc_id%3Dmodinfra-11089-salean%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAvailability%20Sets%3C%2FA%3E%20takes%20the%20virtual%20machine%20and%20configures%20multiple%20copies%20of%20it.%26nbsp%3B%20Each%20copy%20is%20isolated%20within%20a%20separate%20physical%20server%2C%20compute%20rack%2C%20storage%20units%20and%20network%20switches%20within%20a%20single%20datacentre%20within%20an%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fglobal-infrastructure%2Fgeographies%2F%3FWT.mc_id%3Dmodinfra-11089-salean%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Region%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20you%20create%20your%20virtual%20machine%20you%20can%20specify%20the%20Availability%20Set%2C%20you%20can%E2%80%99t%20change%20it%20or%20move%20it%20in%20or%20out%20of%20an%20Availability%20Set%20after%20creation.%26nbsp%3B%20If%20you%20wanted%20to%20make%20changes%20you%20would%20need%20to%20start%20again%20and%20recreate%20the%20virtual%20machine.%26nbsp%3B%26nbsp%3B%20And%20Availability%20Sets%20only%20apply%20to%20virtual%20machines%2C%20they%20can%E2%80%99t%20be%20used%20for%20any%20other%20type%20of%20resource%20within%20Azure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsing%20an%20Availability%20Set%20takes%20your%20acceptable%20downtime%20to%20around%2022minutes%20a%20month.%26nbsp%3B%20Which%20is%20a%20vast%20improvement%20over%20the%20single%20virtual%20machine%20deployment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAvailability%20Zone%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20next%20level%20of%20availability%20for%20your%20virtual%20machines%20within%20Azure%20is%20Availability%20Zones.%26nbsp%3B%20With%20Availability%20Zones%20utilised%20your%20acceptable%20downtime%20a%20month%20moves%20to%20less%20than%205%20minutes%20as%20you%E2%80%99ve%20got%20a%2099.99%25%20SLA.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22availability-zones.png%22%20style%3D%22width%3A%20404px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F241014iED9FE6B2B0850B3B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22availability-zones.png%22%20alt%3D%22Availability%20Zone%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAvailability%20Zone%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20Availability%20Zones%20you%20are%20starting%20to%20use%20zone%20aware%20services.%20Your%20workload%20will%20be%20spread%20out%20across%20the%20different%20zones%20that%20make%20up%20an%20Azure%20region.%20%26nbsp%3BAn%20Azure%20region%20is%20made%20up%20of%20multiple%20datacentres%20and%20each%20zone%20is%20made%20up%20of%20one%20or%20more%20datacentres.%26nbsp%3B%20Each%20datacentre%20is%20equipped%20with%20independent%20power%2C%20cooling%20and%20networking.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EWhen%20do%20use%20them%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThere%20can%20be%20a%20few%20deciding%20factors%20around%20Availability%20Zones%20versus%20Availability%20Sets%2C%20you%20should%20be%20thinking%20about%20these%20questions%20when%20designing%20your%20workloads%20in%20Azure%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAre%20Availability%20Zones%20available%20in%20the%20region%20I%20want%20to%20use%3F%20You%20can%20find%20out%20which%20regions%20support%20them%20and%20which%20services%20are%20support%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Favailability-zones%2Faz-region%3FWT.mc_id%3Dmodinfra-11089-salean%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FLI%3E%0A%3CLI%3EWhat%20SLA%20or%20availability%20does%20this%20workload%20really%20need%3F%20Make%20sure%20you%20really%20understand%20the%20business%20needs%20versus%20the%20wants.%20%26nbsp%3BEach%20configuration%20will%20offer%20you%20the%20following%3A%3CUL%3E%0A%3CLI%3E99.9%25%20%3D%20Single%20VM%20(with%20Premium%20SSD%20or%20Ultra%20Disk)%3C%2FLI%3E%0A%3CLI%3E99.95%25%20%3D%20Availability%20Set%3C%2FLI%3E%0A%3CLI%3E99.99%25%20%3D%20Availability%20Zones%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3ENever%20Stop%20Learning%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIt%20can%20feel%20daunting%20trying%20to%20learn%20new%20terminology%20or%20technologies%20however%20never%20stop%20learning%2C%20if%20you%20learn%20something%20new%20each%20day%2C%20you%E2%80%99ll%20find%20it%20all%20adds%20up.%20And%20if%20you%20are%20looking%20to%20learn%20more%20core%20Azure%20architectural%20components%2C%20check%20out%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fmodules%2Fazure-architecture-fundamentals%2F%3FWT.mc_id%3Dmodinfra-11089-salean%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20free%20Microsoft%20Learn%20module%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1992518%22%20slang%3D%22en-US%22%3E%3CP%3ELet's%20take%20a%20look%20at%20Azure%20Availability%20Sets%20and%20Availability%20Zones!%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22availabilityzonesavailabilitysets.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F241013iC5D14370B9D32810%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22availabilityzonesavailabilitysets.jpg%22%20alt%3D%22availabilityzonesavailabilitysets.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1992518%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESarah%20Lean%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2033580%22%20slang%3D%22en-US%22%3ERe%3A%20Understanding%20Availability%20Sets%20and%20Availability%20Zones%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2033580%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F913601%22%20target%3D%22_blank%22%3E%40IntvPrime%3C%2FA%3E%26nbsp%3B%20%3A%20Availability%20Sets%20and%20VMSS%20are%20two%20completely%20different%20concepts.%20While%20the%20former%20aims%20at%20improving%20the%20SLA%20of%20VMs%2C%20by%20distributing%20them%20across%20Fault%20domains(to%20provide%20resilience%20in%20case%20of%20unplanned%20outage)%20and%20Update%20domain(to%20provide%20resilience%20in%20case%20of%20planned%20maintenance)%2C%20the%20latter%20aims%20to%20provide%20scale-out%20or%20scale-in%20based%20on%20the%20utilization%20of%20the%20VMs%20in%20the%20pool.%20VMSS%20doesn't%20aims%20to%20improve%20the%20SLA%20of%20the%20VMs%20in%20the%20scale%20set.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20article%20aims%20at%20explaining%20how%20Availability%20sets%20and%20Availability%20zones%20aim%20to%20improve%20SLA%20using%20two%20very%20difference%20approaches.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Version history
Last update:
‎Dec 16 2020 02:57 AM
Updated by: