Article: Building Certificates for Windows Server 2012 R2/Windows Azure Recovery Services for the Backup Vault (Private Cloud Certificates)

Follow our entire series on twitter at #WhyWin2012R2

This is a “step-by-step” lab guide to implementing Windows Azure Recovery Services/Backup Vault with Windows Server 2012 R2 using a self-signed (private) certificate you make with makecert.exe.

Windows Azure Recovery Services can help you protect important server data offsite with automated backups to Windows Azure Backup Vaults, where they are available, for easy data restoration. Available in eight regions worldwide, Windows Azure Recovery Services provides secure and reliable storage, built with durability in mind, and geo-replication provides redundancy of your data across regions to ensure access to your data in the event of a local disaster. You know that here in Florida we get our fair share of storms so off-premise backups are always considered and most do this as a best practice.

This article will walk you through the creation of the vault you will use to store backups, creating a self-signed (private) certificate with makecert.exe, uploading the certificate to Windows Azure, installation of the Windows Azure Backup Agent, and an overview of the backup management tasks available through the management portal and the agent.

To successfully complete this lab you must have an X.509 v3 certificate to register your server(s) with Windows Azure Backup Vaults as well as a Windows Azure account. If you do not have a Windows Azure account, sign up here: https://aka.ms/try-azure

Prerequisites:
 
Windows Azure Account

Sign up for a Windows Azure 30-Day Trial account here: https://aka.ms/try-azure

**Note: You will need a credit card to sign up for the trial account.

What you get with your Windows Azure 30-Day Trial:

clip_image002

$200 USD of Windows Azure services. Build what you want, scale as you need, and full access with no strings attached.

  • · Create and run Virtual Machines
  • · Develop a modern app using Cloud Services
  • · Build and deploy Web Sites
  • · Spin up Mobile back-ends for Android, iOS or Windows Phone 8
  • · Store, backup and recover data
  • · Encode and share video

And much, much more...

Windows Azure Backup – Make sure and add the service from the portal.

clip_image004

After you sign up for your Windows Azure account, you must also sign up for Windows Azure Backup, which is currently in Preview. What does Preview mean? Features or services in Windows Azure that are in Preview status are beta versions and are not meant for production use and are not covered by any type of Service Level Agreement (SLA) pertaining to Windows Azure. For more information, click here.

Sign into your new Windows Azure account. Scroll through the list of services offered with your Trial account on the left navigation sidebar. You will notice that you do not see an icon for Recovery Services. Windows Azure Backup is categorized under this service tab. You will need to add it to your Trial account.

Open a new tab on your browser and navigate to the following URL:

https://www.windowsazure.com/en-us/services/preview/

Scroll down to Backup and click on the “try it now” button.

clip_image006

After you add the Backup Preview to your account, switch back to your Portal browser tab and refresh it. You should now see the Recovery Services icon in the left navigation sidebar, like the screenshot above. If you do not see it, you may need to log out and log back in to your account.

Windows 8 SDK

makecert.exe is not part of the installation of Windows Server 2012 and R2. You will need to download the Windows 8 Software Development Kit (SDK) to obtain the makecert.exe utility. The makecert.exe command is part of the core installation of the SDK, so you will not need to download and install the entire SDK.

Use the following URL to download the Windows 8 SDK:

https://msdn.microsoft.com/en-us/library/windows/desktop/hh852363.aspx

1.Click on the Download button.

clip_image008

 

2.

Click Run on the pop-up download bar.

clip_image012

3. Select Install Windows Software Development Kit to this computer. Use the default path. Click Next.

clip_image014

clip_image010

4. Select your preference for CEIP. Click Next.

clip_image016

5. Click Accept to continue.

clip_image018

6. Select only Windows Software Development Kit, unless you wish to install the entire SDK. Click Next.

clip_image020

7. Installation in progress…

clip_image022

8. Installation complete. Click Close.

9. Verify that makecert.exe has been installed. makecert.exe will be located in this directory: C:\Program Files (x86)\Windows Kits\8.0\bin\x64

clip_image024

Create a Self-Signed (Private) Certificate

Now that the makecert.exe utility is installed on your server, we can create a self-signed certificate to upload to Windows Azure.

clip_image026

1. Right-click on Command Prompt and select Run as administrator

clip_image028

2. Change to the directory for makecert.exe.

cd C:\Program Files (x86)\Windows Kits\8.0\bin\x64

3. Run the makecert.exe command with the following syntax to create your elf-signed certificate. Replace “CertificateName” with your values. To make it simple, let’s use “AzureBackup” for the purpose of this lab guide.

Command Syntax Example:

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 CertificateName.cer

Command Syntax to Execute:

clip_image030

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

You may Copy and Paste the above command into the Command Prompt window.

4. You now have successfully created a self-signed certificate, meeting the requirements defined by Windows Azure, and it is currently saved in the current directory where makecert.exe is located. Let’s move it to a more easily accessible location.

Use Windows Explorer to copy and paste the AzureBackup.cer file to your choice of locations. For the purpose of this guide, it will be copied to the Desktop.

clip_image032 clip_image034

You are now ready to create your Windows Azure Backup vault and upload the newly created certificate.

Create a Windows Azure Backup Vault

clip_image036

To get started, select Recovery Services from the left navigation sidebar in the Windows Azure portal.

1. Click Create A New Vault.

clip_image038

2. Enter a name for your Backup Vault and select the closest Region to your location. Click Create Vault to continue.

For the purpose of this lab guide, TestBackup and West US was used.

clip_image040

3. Successful Vault creation and it is Active.

4. Click on the Vault name to view the Quick Start screen.

clip_image042

Click on either of the Manage Certificate choices:

Under Upload your public certificate to the backup vault

or

In the bottom taskbar

clip_image044

5. Browse to your certificate location, select the certificate file, and click the Circled Checkmark to continue.

You will get this type of notification for a successful upload.

clip_image046

Register Your Server with the Windows Azure Backup Vault

Now that you have created a Windows Azure Backup Vault and uploaded your certificate, it is time to register your server with the Backup Vault. But first, you need to download the Windows Azure Backup Agent.

clip_image047

In the Windows Azure portal, you should still be on the Quick Start screen for your Backup Vault after you uploaded your certificate. If not, navigate back.

1. Click on Download Agent.

clip_image049

2. Click on Download for your appropriate version of Windows Server.

3. Click Run to install the Windows Azure Backup Agent.

clip_image051

After you have installed the Agent, click the Circled Checkmark from the screenshot in Step 2 to close the pop-out window. The Agent installation program will create a Desktop icon and Start Screen tile.

clip_image053

4. Launch the Windows Azure Backup Agent.

clip_image055

5. In the Actions pane on the right, click Register Server. The Register Server Wizard will launch.

clip_image057

6. Proxy Configuration. Set your appropriate settings if necessary. Click Next.

clip_image059

7. Vault Identification. Click Browse and select the certificate that was just uploaded.

clip_image061

Select your certificate and click OK.

clip_image063

8. After you select the certificate, select your Backup Vault from the drop-down menu.

clip_image065

Click Next.

clip_image067

9. Encryption Settings. Enter your own paraphrase or click Generate Paraphrase. Select the location to store the paraphrase txt file. For the purpose of this lab guide, a generated paraphrase was used and stored in the Documents folder. For security best practices, this is not recommended.

clip_image069

Click Register.

clip_image071

10. After the server has been successfully register, click Close.

Your server has now been successfully registered with your Windows Azure Backup Vault. Let’s configure the Windows Azure Backup Agent to test the back up.

Configure Windows Azure Backup Agent

After your server has been successfully registered, you have to configure the Windows Azure Backup Agent to be able to test the backup function and complete the lab.

clip_image073

1. In the Actions Pane, select Schedule Backup. The Schedule Backup Wizard is launched.

clip_image075

2. Getting started. Click Next.

clip_image077

3. Select Items to Backup. Select Add Items to continue. For the purpose of this lab guide, the Documents folder was the only item selected.

clip_image079

Click Next.

clip_image081

4. Specify Backup Time. Choose your Days and Times to backup.

clip_image083

Click Next.

clip_image085

5. Specify Retention Setting. Choose your setting or select the default. Click Next.

clip_image087

6. Confirmation. Click Finish to create the scheduled backup job.

clip_image089

7. Completed. Click Close.

Now that you have created a scheduled backup job, the Back Up Now option becomes available. So, let’s run a backup.

clip_image091

8. In the Actions pane on the right, select Back Up Now. The Back Up Now Wizard is launched.

clip_image093Click Back Up.

clip_image095

Back Up Now in progress…

clip_image097

Back Up Now completed. Click Close.

clip_image098

9. You will have a completed job in the Jobs pane.

Congratulations! You have successfully backed up to Windows Azure.

Upgrade Windows Azure Backup Agent

You may have noticed in the Alerts tab in the agent that there is a newer version of the backup agent. Let’s update the agent.

clip_image100

Double-click the message to view the details.

clip_image101

Click on the link to be taken to the download location. Click on Download the package now.

clip_image103

Click Run to install the update.

clip_image105

clip_image107

Accept the terms and click OK.

clip_image109

Click Next.

clip_image111

Click Upgrade.

clip_image113

Click Finish.

You have successfully upgraded the Windows Azure Backup Agent. If you still have the Agent open, make sure to close it and re-launch it.

Congratulations! You have completed this lab guide.

Notes:

Note: Windows Azure Backup is free, up to 5GB per month and $.25 per following GB per month.

To see the pricing details, click here. Also, click here for further information about Windows Azure Backup.

As Windows Azure Backup comes out of Preview and becomes General Availability, we will update this lab guide to accommodate any changes made to the service and/or the portal.

#blainbar

#tampaazure

  • Compliments from Alex Melching on this article and his roadshow tour around Florida doing the Azure Experience!

Blain Barton, Cloud Computing, Windows Azure, Step-By-Step, Article, Deployment, Windows Azure Backup, #blainbar, #tampaazure