Unable to register the on-premise server to Azure Backup

Vinod Deg 0 Reputation points
2025-03-04T04:44:20.0133333+00:00

Invalid vault credentials provided. The file is either corrupted or does not have the latest credentials associated with recovery services (ID: 34513)

But credentials are latest and are correct. I have tried so many times in many different ways like reinstalling the MARS agent, restarting server and trying again etc.

kindly call and help

Vinod Deg

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,496 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Vinod Pittala 4,175 Reputation points Microsoft External Staff Moderator
    2025-03-04T06:24:31.3666667+00:00

    Hello Vinod Deg,

    Firstly, the issue may occur if any file or folder is corrupted or lacks the latest credentials with the recovery service. In this case, you can either create new vault credentials or a new vault to avoid conflicts.

    To ensure vault credentials work correctly, make sure the MARS Agent is up to date, as older versions may cause validation errors as shown in the snapshot below. Try downloading the vault credentials into a specific directory and use that to proceed further, avoiding issues you can download them by going to "properties" under vault.

    User's image mars

    And check the certificates on the server via the control panel and remove any that are not in use to avoid confusion during the reinstallation registration process.

    Under the RSV, verify the Backup Management Servers and remove any registrations from previous failed installations.

    Ensure there are no network restrictions or firewall blocks preventing you from validating and proceeding with the vault credentials.

    If the above workaround still cannot help you, please follow the below steps and try the operation again.

    1. Uninstalled MARS Agent from Control Panel.
    2. Check and remove the complete installation folder from Program file from the server.
      C:\Program Files\Microsoft Azure Recovery Services Agent 
    3. Remove the registry key for the agent: Check under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Azure Backup and delete any lingering keys.
    4. Ensure there is no any service exists for the MARS agent from the services. msc
    5. Reboot the server and download the latest version of the MARS agent from the Azure portal and perform a fresh installation.
    6. Use the newly downloaded vault credentials during the installation process.

     

    Hope this helps!

    let us know if you have any further queries. I’m happy to assist you further.  

    Please provide your valuable comments

    Please do not forget to "Accept the answer” wherever the information provided helps you, this can be beneficial to other community members.

    Thanks


  2. Madugula Jahnavi 495 Reputation points Microsoft External Staff Moderator
    2025-03-05T02:29:16.7533333+00:00

    Vinod Deg,

    Invalid vault credentials provided. The file is either corrupted or does not have the latest credentials associated with recovery services (ID: 34513):

    There are few reasons which leads to the above error while dealing with the recovery service agent.

    • Firstly, the reason could be due to the version of the MARS agent which you installed as the older versions cause validation errors. It occurs because the MARS Installer version included with Microsoft Azure Backup is 2.0.9032.0, and this version appears to be unable to register with the UK data centers (if the region is Uk). In this scenario, you can download the version 2.0.9062.0 and try retrieving the vault credentials.

    Note: Make sure that the agent is not installing prior to running the Azure Backup software. Because it will not recognize the new agent and will leads to uninstall it again.

    • In the process of resolving the error, you might have downloaded multiple credential files. But always use only the latest downloaded file which is valid within 48 hours (2 days).
    • According to the MSDoc, it is possible that the downloaded files might be having a different extension than ".vaultCredentials". Verify it thoroughly and change if required.

      To prevent errors during vault registration, ensure that the MARS agent version 2.0.9249.0 or above is installed. If not, we recommend you to install it from here.

    • Also refer this MSDoc to troubleshoot the file corrupted error if it is related to any file cache issue when downloaded to the local file path on your system.

    You can also go through with this Blog by AJ McKean for relevant issue resolution.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


  3. Amardeep Saini 1,735 Reputation points Microsoft Employee
    2025-03-07T10:46:11.73+00:00

    @Vinod Deg Thank you for contacting us on Microsoft Q&A platform. Happy to help!

    Mostly this error is caused if you are trying to install MARS agent of older version but that seems not to be an issue in your case as you might have already checked it.

    Request you to please make sure that you have provide the correct proxy details on below mentioned screen while installing the MARS agent.

    Install the Microsoft Azure Recovery Services (MARS) agent - Azure ...

    Also, if you are using proxy or firewall, please allow access to the following FQDNs and public IP addresses.

    URL and IP access

    FQDNs

    • *.microsoft.com
    • *.windowsazure.com
    • *.microsoftonline.com
    • *.windows.net
    • *.blob.core.windows.net
    • *.queue.core.windows.net
    • *.blob.storage.azure.net

    If you are a US Government customer, ensure that you have access to the following URLs:

    • www.msftncsi.com
    • *.microsoft.com
    • *.windowsazure.us
    • *.microsoftonline.us
    • *.windows.net
    • *.usgovcloudapi.net
    • *.blob.core.windows.net
    • *.queue.core.windows.net
    • *.blob.storage.azure.net

    Access to all of the URLs and IP addresses listed above uses the HTTPS protocol on port 443.

    https://learn.microsoft.com/en-us/azure/backup/install-mars-agent#verify-internet-access

    If following the above steps, the issue is still not resolved, then request you to share the CBengine logs on directory "C:\Program Files\Microsoft Azure Recovery Service Agent\Temp"

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **


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.