Storage Backup and Recovery - Windows Azure Backup Vault

Featured image

Why backup locally? Why not Azure?

With the advent of Windows Azure the outlook of Small Business concerns has changed from “Impossible to I’m Possible”! Yes that’s true, this is because Windows Azure assures to take care of the configuration responsibilities, this reduces our burden to just read the menu and taste the Food of our choice. One of the best sellers from the Windows Azure’s menu is Windows Azure Backup Vault. This service reduces our onsite storage dependencies. Windows Azure Backup Vault is a part of Windows Azure Recovery Services. You can backup your data in on-premises Windows Servers to Azure Backup Vault. This vault acts as cloud storage to back up the data from Windows Server in an encrypted form. The backup data from the Azure Backup Vault can be restored to the original registered server or in case of server crash, it can be restored to the new server.

The below images shows how we can recover data in case of file corruption or server crash.

Scenario 1: Files in the original server corrupted

Server corrupt
scenario1

Scenario 2: Original backup server crashed

Server corrupt
scenario1

Prerequisites

Windows Server 2008 R2 SP1 or higher

Lab Environment

Server1 - Windows Server 2012 (Server whose data to be backed up to Windows Azure Backup Vault) Server2 - Windows Server 2012 (Server for recovering the data from Windows Azure Backup Vault)

Steps

This article includes the following tasks,

  1. Create Windows Azure Backup Vault
  2. Create certificate using makecert command
  3. Export certificate to .PFX format
  4. Export certificate to .CER format
  5. Upload certificate to Windows Azure Backup Vault
  6. Download and Install Windows Azure Backup Agent
  7. Register Server1 to Windows Azure Backup Vault
  8. Scheduling Backup from Server1 to Windows Azure Backup Vault
  9. Server1 Crashed
  10. Recovering data from Windows Azure Backup Vault to Server2

  11. Create Windows Azure Backup Vault

Windows Azure
Portal

  1. Create certificate using makecert command

Windows Azure Backup Vault authenticates the servers using SSL certificate. We need to create a client authentication certificate using makecert. This certificate will be uploaded to the created backup vault. And also we need to install this certificate in the servers that will work with Windows Azure Backup Vault. Servers with this certificate can alone be registered with the created Windows Azure Backup Vault.

We need to store this certificate in secure place for future use. In case of the server crash, when we create a server and restore the backup items to the new server from the Windows Azure Backup Vault, we need to install this certificate to register with the Windows Azure Backup Vault.

The created certificate should have

As a first step in Server1, let’s create a certificate using the makecert command as given below,

makecert.exe -r -pe -n CN=CertificateName -ss my -sr localmachine -eku 1.3.6.1.5.5.7.3.2 -len 2048 -e 01/01/2016 YourCertificateName.cer

Checkout this link on options available in makecert command.

makecert command

  1. Export certificate to .PFX format

Now export this certificate to .PFX format and store it in a secure location different from this server for future use.

NOTE:

A .PFX file is an encrypted security file that stores secure certificates for authenticating people or devices. In simple words, .PFX file is a storage format which needs to be stored in a secured location and in future it can be changed to .CER format for website authentication.

A .CER file is a security file that is used to verify the authenticity of a website. In simple words, .CER is a deployable format for the authentication of a website.

Steps to export the certificate to .PFX format,

mmc console

mmc certificates

Export certificate private
key

Export certificate file
format

Secure certificate private
key

Export certificate as
pfx

  1. Export certificate to .CER format

In this section we will export the certificate to .CER format for uploading it to Windows Azure Backup.

Steps to export the certificate to .CER format,

Export CER private
key

Export CER file
format

Export CER

  1. Upload .CER certificate to Windows Azure Backup Vault

To create the authentication between the server and the windows azure, you need to upload the exported certificate in .CER format to Windows Azure Backup Vault.

Steps to upload .CER certificate to Windows Azure Backup Vault,

Manage certificate in
portal

Upload CER in
portal

  1. Download and Install Windows Azure Backup Agent

Download Azure Backup Vault
Agent

Backup agent desktop
shortcut

  1. Register Server1 to Windows Azure Backup Vault

Register Server1 in Backup
Vault

Register Server1 proxy
configuration

Register Server1 vault certificate
selection

Register Server1 vault
identification

Server1
passphrase

Note: The generated passphrase is used to encrypt and decrypt the backup files. The generated passphrase is needed when you restore the files from the Windows Azure Backup Vault, so store it in secure location for future use.

  1. Scheduling Backup from Server1 to Windows Azure Backup Vault

Schedule azure backup in
Server1

Select items to backup in
Server1

Backup items in
Server1

Backup time in
Server1

Backup retention settings in
Server1

Finish backup configuration in
Server1

Run backup schedule in
Server1

  1. Server1 crashed

Now let’s consider a situation that due to some reasons Server1 is crashed, but the data in Server1 are securely backed up to Windows Azure Backup Vault.

  1. Recovering data from Windows Azure Backup Vault to Server2

Before recovering the backed up data to Server2, we need complete the following steps

To import the .PFX certificate exported from Server1,

Install PFX in
Server2

Regarding the following steps,

You can repeat the same steps done for Server1 as specified in the sections 6. Download and Install Windows Azure Backup Agent and 7. Register Server1 to Windows Azure Backup Vault respectively.

Recover backup data in
Server2

Select another
server

Select Server1 as backup
server

Select recovery
mode

Select volume and
date

Select items to
recover

Select recovery
location

Recovery
confirmation

Recovery
progress