An Azure backup service that provides built-in management at scale.
Hello Viknaraj Manogararajah
Could you please share us the below details?
- Is the original disk from the corrupted server still accessible?
Even though the OS was reinstalled, can the old disk be mounted or attached to another machine to recover files? - Is the OnlineBackup.KEK file available? Can you check if the file exists in the MARS agent scratch folder (
C:\Program Files\Microsoft Azure Recovery Services Agent\Scratch) on the original or recovered disk? - Was the passphrase saved anywhere else? For example, in a password manager, shared drive, documented in any internal IT records, or emailed to anyone during the initial MARS agent setup?
- Was the passphrase stored in Azure Key Vault? Did you configure the MARS agent to save the passphrase to Azure Key Vault at any point?
- Is Enhanced Security enabled on the Recovery Services Vault? This will determine the registration flow if the KEK file workaround is attempted.
The Azure Backup encryption passphrase is not stored in Azure, it exists only on the on-premises server. Microsoft does not have any copy of the passphrase or the encryption key, so it cannot be retrieved from Azure.
However, before considering the data unrecoverable, please check if the original disk from the corrupted server is still accessible (even if the OS was reinstalled).
If so, please look for the OnlineBackup.KEK file in the MARS agent scratch folder, typically located at C:\Program Files\Microsoft Azure Recovery Services Agent\Scratch.
Additionally, check if the DPAPI encryption key folders are intact under %USERPROFILE%\AppData\Roaming\Microsoft\Crypto and Protect or under C:\Windows\System32\Microsoft.
If the OnlineBackup.KEK file is recoverable, there is a possible workaround:
- Set up a new machine with the same FQDN as the original server.
- Install the MARS agent and place the recovered OnlineBackup.KEK file in the scratch folder.
- Register the server to the vault.
- Once a new passphrase is set, you can perform a restore from the existing backup data.
If the OnlineBackup.KEK file is not recoverable and the passphrase is also lost, unfortunately there is no way to decrypt or restore the backup data, as it is encrypted with AES-256 encryption.
To avoid this situation going forward, we strongly recommend saving the MARS agent passphrase securely in Azure Key Vault.
You can refer to this documentation for setup: Save and manage MARS agent passphrase securely in Azure Key Vault.
Thanks,
Suchitra.