Error when installing Azure Backup Agent on a W2K8 R2 Azure IaaS VM

8:06 pm in Azure, Azure Backup, Cloud, IaaS, W2K8 R2 by Wim Matthyssen

Last week I was installing an Azure Backup Agent on a Microsoft Azure virtual machine (VM) running Windows Server 2008 R2 (W2K8 R2 Datacenter SP1) created from the latest image available in the gallery. But when I started the Microsoft Azure Recovery Agent Setup I received the following error:

clip_image001

After investigating the Event Viewer, I found following error in the Application log, indicating there is a problem with Microsoft.VC90.CRT:

Activation context generation failed for "D:\a797047d0244f077010a1b1df6ff975a\CBPSetup.exe". Dependent Assembly Microsoft.VC90.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.

clip_image003

The error is generated by the Microsoft Visual C++ client installed on the image used on Azure. To resolve this issue I installed the previous version of the Visual C++ Runtime on the VM. To do so I followed these steps:

1) Download the Microsoft Visual C++ 2008 Redistributable Package (x64) via the following link http://www.microsoft.com/en-us/download/details.aspx?id=15336 and copy it to a folder on your VM.

clip_image005

2) Run the package as an administrator

clip_image007

3) Click Next

clip_image008

4) Mark I have read and accept the license terms and click Install

clip_image009

clip_image010

5) Press Finish to complete the installation

clip_image011

6) Run MARSAgentInstaller as administrator to start the Microsoft Azure Recovery Services Agent Setup all over again

clip_image013

clip_image014

clip_image016

7) Like you can see, it all works fine now.

Hope it helps!

Wim Matthyssen (@wmatthyssen)