Virtual Standby job fails with an error message similar to one of the followings:
- Replay.Common.Contracts.Virtualization.HyperVException: The operation with VHD virtual disk failed ---> WCFClientBase.ClientServerErrorException: Call to service method http://[hyper-V system]:8010/apprecovery/api/hypervagent/vhd/b841cd1f-b358-4aac-8ad1-158fd879daf3/totalSectorCapacity GET failed ---> Microsoft.Http.HttpStageProcessingException ---> System.Net.WebException ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized. ---> System.ComponentModel.Win32Exception: The token supplied to the function is invalid
- Replay.Core.Contracts.Export.ExportException: One or more dependent export tasks have failed. ---> System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Replay.Common.Implementation.Virtualization.VirtualMachineBuilderBase.<>c__DisplayClass64_0.<PrepareVirtualDiskExportInfos>b__1(BuilderSourceVolume volume)
- Replay.Core.Implementation.Export.ExportJob (Job Id = 7bf494f8-d00c-477b-a2a5-d92b33d9c670:ExportJob)
Job 'Export of volumes [(Volume Labeled 'System Reserved'),C:\] to ['{Hyper-V System}' at 'C:\VirtualDisks\Volume1\VHD\{Standby System}'] for '{Protected Agent}' (Hyper-V export)' failed
System.AggregateException depth 0: One or more errors occurred. (0x80131500) ---> (Inner Exception #0 depth 0) Replay.Common.Contracts.Virtualization.HyperVException depth 1: The operation with VHD virtual disk failed (0x80131500) ---> Replay.Common.Contracts.Virtualization.HyperVException depth 2: The operation with VHD virtual disk failed (0x80131500) ---> WCFClientBase.ClientServerErrorException depth 3: Call to service method http://{Hyper-V System}:8010/apprecovery/api/hypervagent/hypervagent/cacdc207-6fda-4511-b949-27cf8db14f66/disks GET failed (0x80131500) ---> Microsoft.Http.HttpStageProcessingException depth 4 (0x80131501) ---> System.Net.WebException depth 5 (0x80131509) ---> System.Net.WebException depth 6: The remote server returned an error: (401) Unauthorized. (0x80131509) ---> System.ComponentModel.Win32Exception depth 7: The token supplied to the function is invalid (0x80004005)
Starting in Windows 11, 22H2 and Windows Server 2025, VBS and Credential Guard are enabled by default on devices that meet the requirements.
Credentials Guard needs to be turned off in order to restore guest machine using Virtual Export. Check the following Windows Registry:
Key path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard
Key name: EnableVirtualizationBasedSecurity
Type: REG_DWORD
Value: 0 (to disable Virtualization Based Security)
Virtual Standby job might fail even if the feature is not configured. Created the Windows Registry Key and set it to 0. This feature can also be enabled by Group Policy; therefore, if the job keeps failing, check the GPO settings.
Support for Credentials Guard will be provided in a future release of Rapid Recovery.