hello guys welcome back to another episode on azure fundamentals this is episode 7 and this time we will be learning about azure physical infrastructure so things like regions geographies data centers and availability zones let's do it let me start with episode objectives so what is tested during the exam in case of episode 7 we will be learning about data center regions region pairs geographies availability zones and benefits and the usage of those core architectural components this is what is tested during the exam so you should be able to describe those components but also describe the
benefits and how they should be used within your applications so let me start with data center if you purchase services in azure whenever this is sql database web hosting virtual machine or one of many services within azure all those services run on a physical infrastructure underneath on some sort of servers a physical facility that hosts those servers is a data center it is used to host a group of network servers a typical data center has its own power pooling and networking infrastructure so data centers are building blocks of global azure infrastructure a group of data
centers that are connected with each other with high throughput internet connectivity are called regions and microsoft has many regions across the globe of different sizes they can be as small as single data center or they can contain multiple ones but what is most important is that they are globally distributed for instance in united states you have one in east u.s and one in west u.s in ireland there's a north europe region and in singapore we have southeast asia region there's also one in japan called japanese but there's of course plenty more regions available if you
start putting a dot for every region available within azure we would get over 50 dots on that map being able to choose from whatever location we want on the planet to be as close to our clients as possible this is of course an important decision for every azure developer and architect because the closer you are to your clients lower the latency between the servers and your clients when it comes to region there are a few additional things that you should understand first of all region is simply a geographical area on the planet that consists one
but usually more data centers but they need to be connected with low latency network we are talking here about under 2 milliseconds latency between the data centers additionally this is the location for your services location is a word that will come up very often when you will work with azure whenever you purchase any other service a location will always be mandatory field that you will need to fill and it simply means to which physical servers on the planet which region on the planet should i deploy that service to but there are also few very important
things to remember first of all some of these services are not available in all the regions you should always check which region has the services that you need to build your application but also there are some services that are called global services those services don't have any specific region and specific location assigned things like traffic manager for dns routing or azure active directory but there are a few other examples here additionally azure is globally available with over 50 regions available new regions are being announced and built pretty much every day so in future there might
be more than that and lastly there are some special regions like government regions for government regulations and partner regions like china regions where microsoft is providing the services but it doesn't really manage and run the data centers themselves with that said let me go to azure portal to show you how to create a resource and choose a specific location for that i will use the menu on the left hand side where i can choose either create a resource option or go to for instance storage account a service that allows me to store files i will
select storage account and select add to create new storage account service there are many fields that i need to fill in but the one that i should want to show you right now is location field location field is what we were talking about this is the region of azure on the globe where i will be deploying my service to this is and of course important decision to which region you should deploy to and this should not be taken lightly should always take time and consider what are the options that you have here to help with
that decision there are two portals that i want to show you the first one is called azure speed test this web page makes a very simple test it calculates an average latency between your current location and all the available azure regions so let me run it for a couple of minutes to see the closest data centers the closest azure regions to my current location which is poland after about two minutes the winner is pretty clear germany north region is the closest region available to me but should i choose data center in germany north or maybe
i should choose the second best west europe so if you remember one of the points on my slide not all of these services are available in all of the regions this is why microsoft prepared a second website this website will list all the available services per region this site is called products available by region this is a microsoft azure page where you select regions in this case i will select in europe i will select west europe but also i will select in germany germany north so those are the two regions that i had here right
the germany north and west europe when you select those regions click on select all products and it will give you a list of all services within azure and their availability within specific region as you can see on the left hand side we have west europe on the right hand side germany north if you scroll through this list you will see that there are plenty more services available within west europe so for me it's pretty easy choice i should go with west europe because i want to be sure that my application will be future proof and
it will most likely be able to handle any kind of scenario especially because west europe is one of the oldest data centers one of the oldest regions in europe so let me go back to presentation additional term that you will learn today is availability zone availability zones if you remember our data center and region infrastructure we have multiple data centers they have their own power cooling and network infrastructure and they are connected with super fast internet but in a typical scenario you don't have a control to which data center are your services deployed to that's
why availability zones were created this is a regional feature where each data center gets a number a number that represents a grouping of physically separate facilities and simply said availability zones are designed to protect from data center failures because each availability zone has its own power cooling and network infrastructure whenever there's a failure in a single data center other two will continue working but if you think about it this is how data centers operate normally so how does availability zones help here by introducing this feature microsoft also created services and features within services that can
take advantage of this information those services are split into two categories the first ones are zonal services with zonal services you can choose to which availability zones are you doing the deployment to in case of virtual machines now you have a choice you can create two virtual machines for highly available environment and specify that the first virtual machine goes to availability zones number one and second one goes to availability zone number 2 or 3. this way you ensure that if case there's a data center level failure your virtual machine at least one of them will
continue working in the classical scenario without availability zones it is possible that your virtual machine even in a big region could be deployed to the same data center or even to the same physical server that's why zonal services are so good and availability zones allow you to create those highly available applications the second type of the service are zone redundant services those services like sql database storage accounts allow you to take advantage of multiple availability zones out of the box with a simple check of an option your services will automatically replicate data across multiple availability
zones and will work in a redundant way so if there's a data center level failure you wouldn't even notice it in your application few things that you should note here first of all not all regions support availability zones about seven regions right now support it with more coming in the future second of all if the region supports it there's at least three or more zones within that region that means there's at least three data centers required and lastly availability zone is built from one or more data centers so it's not necessarily a single data center
so if we look back at our map some of azure regions will have logical groupings over their data centers making them zone enabled regions in this case if we go back to azure portal let me go back to my example where i was creating a storage account in here remember that i was choosing the location and i chose location east us too which is one of the zone enabled locations in the replication option i have zone redundant storage so this is an example of the zone redundant service because i can choose so that this storage
account will automatically replicate data across multiple availability zones in case i would choose a region that does not support it excel central us i would no longer have this replication option on the list so now let me show you how this would work with zonal service by going to the menu on the left hand side selecting virtual machines hitting on the add virtual machine option to create a new virtual machine in here from the region i can again leave east us 2 which will allow me to select availability option and select availability zone now from
the drop down i can choose a specific availability zone that i want to deploy to that's the primary difference between the zonal and zone redundant service but what happens if there's a region level failure if entire region goes down then it doesn't matter if you did use availability zones for that reason microsoft also create region pairs so each region has a region pair paired regions are at least 300 miles away from each other to ensure that there's enough distance to cover the natural level disasters like floods storms earthquakes and similar things this way microsoft ensures
that if one region goes down the second region that is paired with that region will be up and gives you a set of features to allow you to replicate your data replicate your application across multiple regions so what you should remember about region pairs is that each region is paired with exactly one region second of all each region pair is static so you cannot choose which region are you pairing to just check the documentation to which region you see your region currently passed to each region pair also resides within the same geography with an exception
of a single brazil south which is replicating to us each region pair has a physical isolation of at least 300 miles distance from each other and as i said this is just to ensure that the large-scale natural disaster will not take two regions down at the same time one of the cool features of region pairs is that some services will provide a platform level replication again with a simple check of an option you will automatically replicate your data and your services across multiple regions therefore protecting yourself from region level failures additional benefit of regent pair
is that microsoft is planning updates across pairs therefore if you will replicate to another pair microsoft is making sure that the plan updates plan rollout of the services don't happen to the same paired regions at the same time therefore it will roll out all the updates and all the necessary things to the first region if everything is working correctly the updates will be rolled out to the spared region making sure that even the platform updates will not impact your application therefore it is preferred option for you to replicate to a paired region of course replication
to other regions is also possible but the pair is always preferred so if you are planning for disaster recovery scenarios you can ensure data residency is maintained for your applications some examples of region pairs are east us is paired to west u.s uk west to uk south north europe located in ireland is paired to west europe in netherlands east asia and hong kong to southeast asia in singapore as you see those are not always within the same country but they must be close enough to maintain high speed connectivity but far enough to ensure that natural
level disasters will not take them down which brings me to the last point all regions and region pairs are grouped into geographies each geography describes a discrete market and contains typically at least two or more regions and their purpose is to ensure that all the data level requirements are met like residency sovereignty resiliency and compliance additionally geographies are fault tolerant so they also protect you from region-wide failures and geographies are broken into areas like america's europe asia pacific middle east and africa and lastly remember that each region belongs to only one geography at the time
for this episode we are done remember to navigate to my website to episode number seven to learn more about regions geography's availability zones check up the study guide check the cheat sheets and then test yourself on the practice test additionally this is the first episode where i added new section expand your knowledge with some extra resources which you can use to expand your knowledge even further and that's it for this episode i hope you guys enjoyed it if you like what i do support the channel by subscribing liking and commenting if you want to move
to the next episode simply use playlist or hit the icon on the side and i'm hoping to see you in the next one see