ASR Certificate Update failed

Andreas | Lechner - IT 0 Reputation points
2025-07-20T05:29:07.74+00:00

Hi.

our certificate of the ASR Config Server (Classic) expired, so i renewed it with the CertRenew Tool and followed all the steps which are described here in the answer: https://learn.microsoft.com/en-us/answers/questions/490853/azure-site-recovery-certificate-renewal-fails#comment-1464708

The last step, i am getting the following error in the screenshot: User's image

in the log files i can see:

07:19:38:Got exception Caught exception while acquiring AAD token:

CorrelationId: 'XXX'

Message: 'One or more errors occurred.'.. Retry count 1.

07:19:43:Get resource token

07:19:43:Initializing AAD Library.

07:19:58:Got exception Caught exception while acquiring AAD token:

CorrelationId :'XXX'

Message: 'One or more errors occurred.'.. Retry count 2.

07:20:23:Get resource token

07:20:23:Initializing AAD Library.

07:20:38:Got exception Caught exception while acquiring AAD token:

CorrelationId: 'XXX'

Message: 'One or more errors occurred.'.. Retry count 3.

07:22:43:Get resource token

do you have any idea how to solve it?

best regards

Andreas

Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bharath Y P 80 Reputation points Microsoft External Staff Moderator
    2025-07-24T08:21:11.0933333+00:00

    Hello Andreas | Lechner - IT

    Error: Container registration failed with error code:13 due to an issue acquiring the Azure Active Directory (AAD) token. This error usually signifies an issue with authentication or certificate permissions during the registration or re-registration of the vault container with Azure Active Directory (AAD) in Azure Site Recovery (ASR)

    Here are the steps to validate and perform Certificate renewal if the certificate is expired on Config/Process server:

    1. Certificate Renewal Limitation: Once certificates expire, they cannot be renewed via the Azure portal. Before proceeding, ensure all components-scale-out process servers, master target servers, and mobility agents are updated to the latest version and are online.
    2. Manual Renewal (for expired certificates only):
    • Log in to the configuration server.
    • Navigate to:
    • C:\ProgramData\ASR\home\svsystems\bin
    • Run the RenewCerts tool as administrator.
    1. Certificate Renewal Process:
    • A PowerShell window will open and begin the renewal.
    • This process may take up to 15 minutes.
    • Do not close the window until the renewal completes.
    1. Permissions Check:
    • The user account running cspsconfigtool.exe must have at least the "Contributor" role assigned on the Recovery Services vault.
    • Run all tools with elevated (Administrator) permissions.
    • If registration fails with permission errors, review the directory and file permissions of all involved paths to ensure write access.
    1. Review Logs for Further Errors
    • Check log files in:
    • C:\ProgramData\ASR\home\svsystems\logs
    • for more specific error details about the renewal or registration process.
    1. Retry Registration After Renewal
    • After successful certificate renewal:
    • Re-register the appliance/configuration server using the latest vault credentials file (*.VaultCredentials) downloaded from the Azure portal.
    • Confirm that proxy settings and network connectivity to Azure endpoints are correct.
    • C:\ProgramData\ASR\home\svsystems\logs

    If renewal or registration still fails:

    0 comments No comments

  2. Andreas | Lechner - IT 0 Reputation points
    2025-07-28T06:01:26.3666667+00:00

    Hi,

    the problem was solved, to be honest i dont know what the problem was, but i exported serveral times the vault key for the config server and tried to import, one of the tries was successfull, afterwards i restarted the services and the machines started to resync again.

    Next time i will do the certificate renewal via the azure portal in time ;)

    br

    Andreas

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.