Event log warnings every 30 seconds due to empty SessionHostConfigurationLastUpdateTime reg key

Rowe, Stuart 15 Reputation points
2025-03-27T19:39:28.6+00:00

I have numerous AVD host pools that I administer. The hosts in each were deployed using the Host Pool wizard, so the azure agents were deployed as part of that process. Of late, I'm building out Windows 11 environments to phase out Windows 10. In doing so, I'm spending a little extra time making sure the hosts are clean.

I'm paying closer attention to the ample event log noise previously ignored. All hosts log an pair of warnings events (ID 0):

Source: Microsoft.RDInfra.RDAgent.Service.RDAgentBrokerConfiguration

Message: unable to retrieve SessionHostConfigurationLastUpdateTime from registry: System.FormatException: String was not recognized as a valid DateTime.

at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)

at Microsoft.RDInfra.RDAgent.Service.RDAgentBrokerConfiguration.get_SessionHostConfigurationLastUpdateTime() in C:\__w\1\s\src\RDAgent\src\Service\AgentSettings.cs:line 2746

Source: Microsoft.RDInfra.RDAgent.Service.AgentUpdateStateImpl

Message: Unexpected last recorded state

For the first event, in checking the registry (HKLM\SOFTWARE\Microsoft\RDInfraAgent) for SessionHostConfigurationLastUpdateTime, it's empty. Same on ALL hosts.

This issue is not unique to our AVD host pools. I attend some weekly Microsoft-hosted "Office Hours" themed on VDI. I brought this up to the MS folks in today's meeting. They observed the health of the agents is good. The state of the hosts in their corresponding Host Pools is 'Healthy'. No indicators to explain why this key wasn't populated upon agent installation (again, as performed by the portal wizard - no rookie user error performing the individual pieces via code). Several attendees in the meeting checked some of their respective hosts ... same issue in every case.

Here are the versions of Agents installed:

  • Remote Desktop Agent Boot Loader: 1.0.9023.1100 & 1.0.8925.0
  • Remote Desktop Services Infrastructure Geneva Agent: 46.24.3
  • Remote Desktop Services SxS Network Stack: 1.0.2409.29850
  • Remote Desktop Services Infrastructure Agent: 1.0.10673.700

The other batch of events logged at the same 30 second interval within the RemoteDesktopServices log are all Informational.

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,752 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.