So I had the same issue and successfully resolved it for my Windows Server 2016. Initially I was seeing the same error when trying to configure Azure backup via the Essentials Dashboard when trying to create a new Vault, and taking a look at the Dashboard.log file saw this (All sensitive data was censored):
[8580] 230426.164820.3382: OnlineBackupUI: Successfully generate the certificate. Thumbprint: ************************************
[4064] 230426.164820.6891: Exception:
---------------------------------------
An exception of type 'Type: Microsoft.WindowsServerSolutions.Productivity.AzureServiceAdapter.AzureServiceResponseException, AzureServiceAdapter, Version=10.0.0.0, Culture=neutral, PublicKeyToken=**************' has occurred.
Timestamp: 04/26/2023 16:48:20
Message: AuthType is Invalid in ResourceCertificate. AuthType is Invalid in ResourceCertificate, please try with valid values.
Stack: at Microsoft.WindowsServerSolutions.Productivity.AzureServiceAdapter.ARM.AzureResourceManagementClient.<HandleGeneralErrorResponseAsync>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsServerSolutions.Productivity.AzureServiceAdapter.ARM.AzureResourceManagementClient.<SendRequestAsync>d__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsServerSolutions.Productivity.AzureServiceAdapter.ARM.AzureResourceManagementClient.<GetResourceResponseAsync>d__15`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsServerSolutions.Productivity.ARM.AzureBackupManagement.VaultOperations.<UploadCertificateAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsServerSolutions.DataProtection.OnlineBackup.OnlineBackupAzureServiceAdapter.<UploadCertificateToBackupVaultAsync>d__9.MoveNext()
[8580] 230426.164820.6891: Exception:
---------------------------------------
An exception of type 'Type: System.AggregateException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=**************' has occurred.
Timestamp: 04/26/2023 16:48:20
Message: One or more errors occurred.
Stack: at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.WindowsServerSolutions.DataProtection.OnlineBackup.UI.RegisterProgressPagePresenter.<OnActivate>b__2_0(Object state)
---------------------------------------
An exception of type 'Type: Microsoft.WindowsServerSolutions.DataProtection.OnlineBackup.OnlineBackupObjectModelException, OnlineBackupObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=**************' has occurred.
Timestamp: 04/26/2023 16:48:20
Message: Exception of type 'Microsoft.WindowsServerSolutions.DataProtection.OnlineBackup.OnlineBackupObjectModelException' was thrown. (ErrorCode 0x80040280)
Stack: at Microsoft.WindowsServerSolutions.DataProtection.OnlineBackup.OnlineBackupAzureServiceAdapter.<UploadCertificateToBackupVaultAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsServerSolutions.DataProtection.OnlineBackup.OnlineBackupAzureServiceAdapter.<UploadCertificateToBackupVaultAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsServerSolutions.DataProtection.OnlineBackup.OnlineBackupManager.<UploadCertificateToBackupVaultAsync>d__72.MoveNext()
[10724] 230426.164820.6911: OnlineBackupUI: An error occurred during the execution of the wizard. Error message =
To resolve this, we instead need to begin the process in the Azure portal.
- Log into your portal.azure.com and create a new Recovery Services vault.
- Once the vault is created go to Settings > Properties on the left-hand side and scroll down to "Backup Credentials".
- Check the box that you are "Already using the latest Recovery Services Agent" and click the download button to save the cert somewhere on your server.
Now open up Server Manager and navigate to Tools > Windows Server Backup
In wbadmin, on the left-hand side click Backup, and on the right-hand side click Register Server
When you get to the "Vault Identification" step, click Browse and supply that credential file downloaded from your Azure Portal.
Once this is done, you can navigate back to the Server Essentials Dashboard > Azure Backup and you'll see the "Configure Azure Backup" link that allows you to select folders, time, etc. for the Azure backup.
Hopefully this answer helps the others here that had the same problem.