Azure Site Recovery Setup Step by Step Demo | VM Replication Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone in this video we're going to understand what azure site recovery is and then we're going to continuously replicate a virtual machine using azure site recovery the main problem azure site recovery solve is business continuity and disaster recovery and you can also think of this as disaster recovery as a service azure site recovery can basically replicate virtual machines these virtual machines can be vms on azure or it could be on-premise vms or even physical servers as you can see we have many options here now let's understand how site recovery works let's say you have a source environment and target environment and in the source environment you have two virtual machines as you can see when you configure site recovery what it will do is it will install site recovery mobility service it is a virtual machine extension and this service copies the data of your virtual machine to a storage account in the same region we call it cache storage account and then this cash data this cash storage account will be used to replicate the virtual machine data to another region and this is done by azure site recovery and then if something goes wrong in the source region we can create new virtual machines in the target region using the transfer data from the cache storage account to target environment disks and the best part is until you fail over to the target region you don't have to pay for the compute resources on azure and also you have the option to fail back to the source environment when that is alive or you can reprotect the target environment by making that the primary environment now that you know what site recovery is and also you know how it works let's go ahead and do a practical demo on azure the first thing that you need for this demo is a virtual machine on azure for creating that i have this script here let me run it my virtual machine on azure is ready now if i go into azure portal and the resource group that i have just created it's called production rg and here we have the virtual machine now if i go into the virtual machine and scroll down into operations and here we have disaster recovery if you see this wait for around few minutes this will go away when the virtual machine is ready we have few options to enable replication with site recovery on azure and one of the ways is that using this tab and this wizard this makes it much easier for you to create the target environment and here as you can see we can change the target region now let me change this to australia's and also as you can see it is shown in the map as well now if i click advanced settings and here we have four sections we have target settings and storage settings replication settings and extension settings now if you focus on target settings these are the settings for the target environment as you can see we can change the subscription and also the resource group and the virtual network that we are deploying the vm to in the target environment and also we can configure the availability settings as well so here i'm not going to do any change i'm just going to let this wizard create a new resource group and a new virtual network even though it creates a virtual network it will not create a virtual machine until we fail over to it this will reduce our cost now if you look here in storage settings we have a cash storage account this storage account will be created in the same region as the source environment and all your virtual machine data will be copied to this cache storage account before it copies the virtual machine data to the disk that gets created in the target environment and also you have the option to change its parameters as well such as premium more standard ssd for this demo i'm going to keep premium ssd and in replication settings as you can see we have recovery services vault and world resource group and things like that we have this resource on azure called recovery services vault this world will be used to store data that we replicate since we need a recovery services vault this wizard will create that as well and you can change the subscription or the resource group that this will be created in and also there will be a new automation account created as well for managing site recovery extension updates for all your replicated items now all the settings that are here looks okay for me now i'm going to go ahead and review and then i'm going to click on start replication now this will create a lot of resources on azure and this will take around 30 minutes to complete until that gets created to make this demo a little bit more interesting what i'm going to do is i'm going to install iis on this app server for that i'll just copy the ip address i'm going to rdp into it now let me install iis in this server all right i have installed iis and i have changed the html and i'm going back to azure portal and here networking and then i'm going to add a inbound security rule here and i'm going to change the service to http and port to 80 as you can see the network security group is in place now if you go into the public ip address and copy it as you can see we are receiving the response from the iis now if i go back to the deployment we are seeing this message enabling replication for one virtual machines now if we go into resource groups you can see that this is the resource group that i have initially created and there are two new resource groups if i go into production asr resource group this contains one virtual network when you fail over to this target region and this is the target region here there will be a new virtual machine located in this resource group and also in this region now if i go to site recovery vault resource group you can see three things here the first one is the cash storage account and as you can see that is in the same region as my source environment is in and then we have an automation account and then we have recovery services vault if we go here to replicated items in that you can see our app server vm and the replication status is healthy and here we don't see a rpo that means that we still cannot fail over to the new region because the internal synchronization is happening now now let's wait for another few minutes and come back to do our test failover all right as you can see the replication is complete and once all the resources are in place you still have to wait around 10 minutes depending on your environment setup for completing the synchronization now for this demo everything is complete now if you refresh here here we can see the status is protected and the rpo is four minutes and also it says here i haven't done any test failovers for this yet and if you go here to latest recovery points we have a list of items now let me go back to the virtual machine and yeah let me do a change all right i have done the change to the virtual machine now if i refresh this as you can see you're getting it let's wait for some time until this gets updated all right now we have two options here we can fail over and we can do a test failover the main difference here is that when you're doing a test failover you're not deleting or you're not stopping your source environment and when you're doing a failover you should stop your source environment because if you keep that running there can be consistency issues now let me click on test fill over here we can select the recovery point and azure virtual network and here we can see the failover direction it's from southeast asia region to australia east and here we have a few options i'm going to go with the latest one lower stop yo here we have an option to select the virtual network in the target region basically my virtual machine will be deployed into this virtual network now let me select that and click ok as you can see now azure site recovery is creating a new virtual machine in my target region let's wait for around 5 minutes and come back all right as you can see we have this option enabled and these two disabled that means that we have successfully completed the test failover now let me go to that resource group in that target region here as you can see we have the virtual machine now if i click here you will see that the virtual machine is in place but the public ip address that is not assigned this you can do by yourself using a powershell script if you want to automate this or you can go into networking and you can click on the network interface and go to ip configurations and here if you click on this and you can associate with a public ip address that you already have here if you don't have a public ip address you can create it since i have a public ip address i'm going to go with that let me save it all right now if i go into that vm again and overview and here we have the public ip address assigned now let me copy that paste it here as you can see we have successfully replicated the virtual machine to the target region now let me go back to the resource group and here the site recovery vault and here we have a few options we have completed the test failover and we can clean up the test failover with this you can clean up the virtual machine that you just saw i'm going to do that now now as you can see we have cleaned up our test environment let me refresh this page now as you can see we have these two options here failover and test to fill up again since we have cleaned up the environment now if i go into the target resource group as you can see we only have the virtual network and the disk and my public ip address my vm is not here now if i go back as you can see if i click on fail over here you have the option to shut down the machine before beginning the failover and once you have successfully failed over to that virtual machine you will have these settings enabled for example you will be able to change recovery points until you commit it once you have the correct recovery point deployed you can commit to it so that you won't be able to change the recovery point again and after that you have the option to reprotect your target environment basically now that your target environment has become the primary environment you have to still reprotect it so basically these are the options that you have once you have completed a failover today we learn about azure site recovery and we saw how to configure a failover for an astro virtual machine if you have any further questions or comments let me know down below and don't forget to like this video and subscribe if you learned something new today and thanks for watching
Info
Channel: Meet Kamal Today - Cloud Mastery
Views: 320
Rating: undefined out of 5
Keywords: azure vm replication, azure site recovery step by step video, Azure Site Recovery Step by Step, site recovery vault azure, site recovery azure, azure site recovery demo, azure site recovery setup, azure site recovery vm replication, azure site recovery tutorial, configure azure site recovery, azure site recovery vault, azure site recovery, azure
Id: NGDM6JHngQY
Channel Id: undefined
Length: 12min 42sec (762 seconds)
Published: Mon Nov 15 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.