"ASR cannot be registered due to an internal error" when you try to install Microsoft Azure Site Recovery Provider

Symptoms
When you try to install and register the Microsoft Azure Site Recovery Provider on a System Center 2012 R2 Virtual Machine Manager (VMM 2012 R2) server, the attempt fails with the following error:

The ASR cannot be registered due to an internal error. Run Setup again to register the server.

The Azure Site Recovery Provider Setup log (located at %PROGRAMDATA%\ASRLogs) also contains an error that resembles the following:

10:46:23:RegistrationClient called with acsUrl https://eus2pod01rrp1users01.accesscontrol.windows.net/ relyingParty http://windowscloudbackup/m3 10:46:23:Exception while initializing RegisterActionProcessor: Threw Exception.Type: Microsoft.DisasterRecovery.Registration.DRRegistrationException, Exception.Message: Azure Site Recovery installation is incomplete. Please uninstall and reinstall again to proceed.
Cause
This exception indicates that a required value on the Virtual Machine Manager 2012 R2 server is missing. These values are stored in the following registry location: 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager Server\Setup

    ProductVersion    REG_SZ    3.1.6027.0
    InstallPath    REG_SZ    C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\
    TempPath    REG_SZ    C:\ProgramData\Microsoft\Virtual Machine Manager\
    CompatibleMPVersion    REG_SZ    3.1.6011.0
    AgentVersion    REG_SZ    3.1.6027.0
    GuestAgentVersion    REG_SZ    3.1.6011.0
    VmmID    REG_SZ   
    VmmServiceAccount    REG_SZ    CONTOSO\user
    SetupLanguage    REG_SZ    en-US
    VmmServicePrincipalNames    REG_SZ    SCVMM/user,SCVMM/user.contoso.com
    SCPGUIDBindingString    REG_SZ    LDAP://<GUID=>

The problem occurs because the VmmID value is blank.
Resolution
To resolve this issue, first collect the VmmID value from the Virtual Machine Manager 2012 R2 database (VirtualManagerDb). You can extract this from the database through SQL Server Management Studio by running the following SQL query:

USE [VirtualManagerDb]
SELECT [VMMId] FROM [tbl_DR_VMMRegistrationDetails]

Then, add the retrieved value for VmmID to the registry on the Virtual Machine Manager 2012 R2 computer in the following location:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager Server\Setup
"VmmID"=""

Microsoft Azure Site Recovery Provider should now install successfully. 
Properties

Article ID: 3139299 - Last Review: 02/03/2016 23:23:00 - Revision: 1.0

Microsoft Azure Recovery Services

  • kbexpertiseadvanced kbsurveynew kbtshoot KB3139299
Feedback