I'm attempting to install the Azure Recovery Services Agent on a 2016 Standard Server Core machine. It installs fine, but when I try to browse to the vault credential file, I get an exception that appears to be related to visual themes not existing since it's server core:
I've also tried setting up Azure Powershell to do backups through there, but when I try to login I get an error related to IEFrame.dll:
Login-AzureRmAccount : The type initializer for 'Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.WindowsFormsWebAuthenticationDialogBase' threw an exception.: Unable to load DLL 'IEFRAME.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
When I run Login-AzureRmAccount on a Desktop Experience server, it pops up a window to login, which apparently uses IE. I've also tried Import-AzurePublishSettingsFile, which works, but it still needs me to run Login-AzureRmAccount after running that.
Does anyone know of a command-line way to set the vault credentials for the Recovery Services agent? Or how to login in Powershell without IE?
Download the latest PowerShell release (minimum version required is: 1.0.0) and then Verify you have Windows PowerShell version 3.0 or 4.0. To find the version of Windows PowerShell, type this command at a Windows PowerShell command prompt.
And then you can install Microsoft Azure Recovery Services Agent through PowerShell command lets on windows server 2016.
User contributions licensed under CC BY-SA 3.0