So the issue I am having seems to be a problem with the connection brokers. I have highly available connection brokers so there is a database involved. When I click connect on the virtual desktop in RD Web Access it gets to Loading the virtual machine…, sits there for about 5 minutes and then says that the connection was cancelled. The events I refer to below happened when (but not because) I had removed the second connection broker from the group so I did not have to comb two sets of event logs.
The main “smoking gun” event is in the Microsoft-Windows-TerminalServices-TSV-VmHostAgent/Operational log Event ID 8479 which says, “Remote Desktop Virtualization Host could not run the Hyper-V WMI job. Error description: [Virtual Desktop Name] failed to modify resources. (Virtual machine ID [redacted]) See also Hyper-V event logs. Hresult: 0x80078005.”
The event it is referring to in the Hyper-V log is Event ID 15090 Which says “[Virtual Desktop Name] failed to modify resources. (Virtual machine ID[redacted]),” which follows a similar event that happens one second earlier: Event ID 16300 which says, “Cannot load a virtual machine configuration: Cannot create a file when that file already exists. (0x800700B7). (Virtual machine ID[redacted]).”
To go one step further, there a couple of events in Microsoft-Windows-TerminalServices-TSV-VmHostAgent/Debug and Microsoft-Windows-TerminalServices-TSV-VmHostAgent/Analytic.
Microsoft-Windows-TerminalServices-TSV-VmHostAgent/Debug: Event ID 17163 which says, “Remote Desktop Virtualization Host could not retrieve a section in the virtual machine metadata XML file for the virtual machine with the GUID of [redacted]. Virtual machine GUID: [redacted] Hresult: 0x80070490.” That happens in two sets of two events, all identical about 1.5 minutes apart.
Microsoft-Windows-TerminalServices-TSV-VmHostAgent/Analytic: Event ID 12801 which says, “Remote Desktop Virtualization Host failed to open zeroconfig channel to the virtual machine [V-LB-ENGRC-1] . Hresult: 0x80070002.” This one happens in two different events simultaneously with the same message and different Hresults: the one above and 0x800704D4.
The storage is two clustered, physical file servers with iSCSI storage hosting a scale-out file server. The hosts are clustered. I followed lots of Microsoft documentation to get the local groups and folder permissions populated.