Azure Site Recovery Service #ASR #Hyper-v to #Azure #Recovery #mvpbuzz

Azure Site Recovery can help you protect important services by coordinating the automated replication and recovery of System Center private clouds at a secondary location. The ongoing asynchronous replication of each VM is provided by Windows Server 2012 Hyper-V Replica and is monitored and coordinated by Azure Site Recovery. In the event of a site outage at the primary datacenter, VMs can be brought up in an orchestrated fashion to help restore service quickly. This process can also be used for testing recovery, or temporarily transferring services.

Now you can replicate virtual machines from your primary site directly to Azure, instead of your own secondary site. In the event of an outage at the primary site, the service orchestrates the recovery of virtual machines in Azure.

As there is already Azure Recovery manager using Azure to protect you VM between two VMM Servers. and now there is in a preview a new option Failover to Azure.

This is a great new option and will open the door to new options for your private cloud.

You can use Azure Site Recovery in the following scenarios:

  • On-premises to cloud: Replicate Hyper-V virtual machines on a source VMM server or cluster to another VMM server or cluster located in the same datacenter or in a different site. You can also replicate between clouds on a single physical or virtual VMM server.
  • On-premises to cloud: Replicate Hyper-V virtual machines on a source VMM server or cluster to Azure storage.

In this step by step I show you what steps to take for a working situation.

We need a VMM Server and An Azure Account with the Site Recovery Preview.

Azure Site Recovery - on-premises to Azure

When opening the ASR ( azure Site Recovery ) We can select the recovery option. Lets pick hyper-v to Azure Recovery.

image

If you do not have a Certificate in place already below is the line to create a Self signed certificate.

This Certificate us needed to talk to and from the VMM Server to Azure.

makecert.exe -r -pe -n CN=Certmvpvmm12 -ss my –sr localmachine -eku 1.3.6.1.5.5.7.3.2 -len 2048 -e 01/01/2016 c:Certmvpvmm12.cer

Azure Site Recovery - on-premises to Azure

Now that we have created the Certificate We import this in the Azure portal , On manage Certificate we can import the Cer file

image

Import the Cer file

Azure Site Recovery - on-premises to Azure

I already did the Hyper-v vs Hyper-v See my blog post.

http://robertsmit.wordpress.com/2013/06/12/windowsazure-hyper-v-recovery-manager-azure-hyperv-recovery-msteched-tee13-draas/

but now we pick Hyper-v to Azure. In the Dashboard step 2 there is a link for downloading the Recovery Provider for VMM

Download Microsoft Azure Site Recovery Provider and install it on VMM servers

image

We are installing this on the VMM Server!

image

After downloading we kick the setup and as we do not read all the text, I need to stop the VMM services!

image

So there is downtime keep this in mind VMM can also takedown your Windows Azure Pack

imageimage

The setup does not need many words it is a basic next next finish setup.

imageimage

However we need to use the certificate that we created and imported in Azure in the first step. I have already multiple Certs in my VMM I just need to pick the right one. So naming convention is important!

image

After Selecting the Key we need a vault key ! this key is in Azure generated and can be copied from azure to the VMM server.

In the Azure portal in Step 1 there is a line get your vault key

image

We copy the Key and past the key in the setup an Next.

image

I pick enable encryption just to make sure I do have a secure line.

image

Pick the VMM server name in FQDN

imageimage

And your VMM server is ready make sure the services is started again.

The next step would be install the Microsoft Azure Recovery Services Agent on your Hyper-v Server

You can download this in step 3

Download the Microsoft Azure Recovery Services Agent, and install it on Hyper-V host servers.

image

The installation is just a quick install no screens to capture or things to do.

The next step is Configure a cloud that needs the protection Selecting the Vault and the Protection name as you can see the current status is not configured

image

Select Configure Protection

image

here we can select a target and we pick Microsoft Azure

image

A new screen with lots of settings opens

image

The copy Frequency is the Hyper-v Replica between Hyper-v and Azure In windows Server 2012R2 there is the option 30sec,5&15 minutes Azure is not changing this.  pick any option you want but In my case I use 15 min that is more enough for me.

one this is really nice that is the Replication time most thing are starting just wen you press enter ;-( but here you pick a scheduler.

image

Pick any time you want but I pick do this now, there is a 60GB VM that needs to get uploaded to Azure.

Then Click on Save! image ( replication will start immediately !!! )

the next step is wait for Azure to finish the settings  image This can take a few Minutes.

yes you can configure other steps but I like to make sure this step is successful.image

image

Now the Cloud is Configured We enable protection for My VM’s.

Select the Name and we pick enable protection in the Virtual Machines

image

When selecting this option and you will see no VM’s you did something wrong ! think…

Yes you are protecting a Cloud so your VM must be in a cloud on this VMM server I have only one cloud and in this cloud are 3 vm’s

image

and you can see this 3 vm’s here in azure

image

I’ll pick the MVPAZU2 VM and again I’ll wait until Azure is finishing it process.

After this the window will show you the VM and unprotected.

image

You can select more VM’s but for this demo I’ll use just one VM.

When selecting the VM we can adjust the CPU and Memory in Azure

imageimage

I’ll pick medium and hit the save button at the bottom!

In the Resources of the Vault we need to link the Networks. If you don’t have a network in azure you will need to create one.

Pick the VMM server as Source and the Target is Azure. The screen will list all your networks that are connected

image

Pick the network from the Protected network and link it to the Azure network. In my case the azure network is connected with a S2S VPN to my private network So I’ll use this network. the IP stack is showing.

image

As I picked Immediately as replication lets see Oh ok it is running

image

In the Hyper-v Manager you can see the progress. It would be nice to have it also in Azure.

image

image

My internet connection is a 1 GB but the internal routers and the networking on my Hyper-v Server needs some attention.

And if we are checking in VMM the Recovery Settings it is set to 15 minutes just as we set in Azure.

image

And we need to wait until the replication is done from Hyper-v To Azure this can take some time It all depends on your Internet connection

imageimage

After the Replication is ready You can see that there is one VM protected and we can create a recovery plan.

image

Now that we have created a recovery plan this is just a step to link the VM to a recovery plan from or to Azure and what VM.

image  image

Now that the Recovery Plan is is ready we can test this with a test failover.

image

As we check the test failover a popup ask me on witch network the VM should connect.

image  As this is a TEST you can not connect to the real network that is picked in the VM

image

In the VM you can see the test VM is build but you can’t connect to the VM. There is a DNS name  image

Azure Site Recovery - on-premises to Azure

In the Job status you can see a step by step overview and for completing you have to check the complete option on the bottom.

a Popup is shown where you can put in comments and set the checkbox complete. After this step the test will continue

Azure Site Recovery - on-premises to AzureAzure Site Recovery - on-premises to Azure

Azure Site Recovery - on-premises to Azure

With these Easy steps you can use Microsoft Azure As your failover DataCenter and even With One Hyper-v Server you can be always up.

If you need more info then go to the MSDN site see below for the URL

Azure Site Recovery - on-premises to Azure

The walkthrough consists of the following steps:

  1. Deployment prerequisites: On-premises to Azure. Check deployment requirements, and complete the planning steps before you begin deployment.
  2. Step 1: Create and configure an Azure Site Recovery vault: On-premises to Azure— Create a vault and specify a vault key. Upload a management certificate (.cer) to the vault.
  3. Step 2: Install the Azure Site Recovery Provider: On-premises to Azure— Install the Hyper-V Recovery Manager agent on the VMM servers you want to register in the vault.
  4. Step 3: Install the Azure Recovery Services Agent: On-premises to Azure— Install the Azure Recovery Services agent on Hyper-V host servers located in the VMM source clouds you’re protecting.
  5. Step 4: Configure protection settings for VMM clouds: On-premises to Azure— Specify protection settings for the cloud, including source and target settings, recovery points and snapshots, and initial replication settings.
  6. Step 5: Configure network mapping: On-premises to Azure—Create mappings between VM networks on the source VMM server and destination Azure networks.
  7. Step 6: Enable protection for virtual machines: On-premises to Azure— Enable protection for virtual machines.
  8. Step 7: Create and customize recovery plans: On-premises to Azure—Create and customize recovery plans that specify how virtual machines should be grouped and failed over.

Greetings,

Robert Smit

http://robertsmit.wordpress.com/

Posted August 27, 2014 by Robert Smit in Microsoft Azure

Tagged with

  • Tag