This post is a series of blog posts for Azure Site Recovery (ASR).
- ASR for VMs hosted On-Premises, coming soon…
- ASR for Hyper-V hosted On-Premises, coming soon…
- ASR for an ESXi hosted On-Premises, coming soon…
Here is a step by step walk-through on how to go about setting up and configuring ASR (Azure Site Recovery) and backing up your On-Premises Virtual Machines (VMs) with Azure Resource Manager (ARM).
First things, first, Azure’s Recovery Service Vault is a unified vault/resource that allows you to manage your backup and data disaster recovery needs within Azure. For example, if you are hosting your VMs on-premises you can create a link between your on-prem site and Azure to allow your VMs to be backed-up into Azure. This is regardless of your hypervisor, it can be either ESX or Hyper-V, either will work. However for the interest of this blog post, I will be setting up ASR for VMs hosted within Azure.
Configuring Azure
Step 1: Create a Recovery Services Vault
Within Azure Resource Manager (ARM), if we select New, within the Marketplace, select Monitoring + management, then select Backup and Site Recovery (OMS) within the featured apps. Of course if this is no longer present, just search for it within the marketplace.
Next we will now need to create our vault.
Give it a meaningful name, and you can either create a new Resource Group, or use an existing. I opted with existing, as I will (another post) next setup a Site-to-Site ASR.
Give this a few seconds, maybe minutes to do its thing…
Great, now our Vault is up and ready to go!
Step 2: Backup Goal/Target
Select +Backup, and let’s setup create a backup strategy:
As mentioned, in this walk-through, we will be setting up ASR for our VMs within Azure. So, this workload will be running against our Azure environment, and we want to backup our VMs.
Step 3: Create a Backup Policy
Now we want to create a backup policy. You can chose the default, which I believe is a daily snap-shot and the retention is 30 days. This may be too aggressive, or too conservative. Nevertheless, let’s create our own.
Give it a name “ASRBackup14Days“, for this example, I want to backup my VMs in the following manner:
- Backup every day @ 2AM
- Retain the daily backup of the VM for 2 weeks (14 days)
- Retain the weekly backup of the VM for 2 weeks
- Retain the monthly backup of the VM for 2 months (~60 days)
- Also, begin this policy the first day of January 2016…
Of course these options are..optional, you only need to specify either the daily, weekly or monthly retention…
Once complete, we now need to select the VM(s) we would like to back-up.
Select one, or select them all, but keep in mind, this could get costly $$$$, more VMs and more often the back-up frequency.
Step 4: Initial Backup
Great! Now, Enable backup. Now, if we go back to our ASR Vault, should see a job already in progress, as Azure already started the initial backup.
As you can see, the VM is being backed up now!
Step 5: On-Demand Backup
If you ever want to do an ad-hoc backup, just go back to the ASR Vault, within the Protected Items, select the VM(s) you are interested, and schedule an immediate backup.