SOLVED
Home

Started a few days ago at most: Agent on Session host no longer communicates properly with WVD

%3CLINGO-SUB%20id%3D%22lingo-sub-802356%22%20slang%3D%22en-US%22%3EStarted%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802356%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20host%20pool%20and%20tenant%20are%20probably%20from%20the%20May%20timeframe.%20The%20agent%20has%20version%26nbsp%3B1.0.1006.2006.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20notice%20that%20the%20agent%20posts%20a%20heartbeat%20on%20a%20restart%20of%20session%20host%20and%20then%20no%20more.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20connecting%2C%20the%20RDBroker%20appears%20to%20decide%20that%20no%20session%20host%20is%20available.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20notice%20that%20session%20hosts%20that%20are%20shut%20down%20are%20marked%20as%20Available%20in%20Status%20according%20to%26nbsp%3BGet-RdsSessionHost.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20you%20made%20some%20recent%20(incompatible%2Fbad)%20upgrade%20to%20WVD%20that%20I%20should%20be%20aware%20of.%20Do%20I%20need%20to%20do%20anything%20or%20this%20an%20issue%20on%20the%20MSFT%20side%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20are%20diagnostics%20from%20one%20connect%20attempt%3A%3C%2FP%3E%3CP%3EPS%20C%3A%5CUsers%5Cjohan%26gt%3B%20(Get-RdsDiagnosticActivities%20-TenantName%20%22prod-fdt-avance%22%20-ActivityId%208b9460d6-a900-4940-85ac-7b46031e0000%20-Detailed).Errors%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EErrorSource%20%3A%20RDBroker%3CBR%20%2F%3EErrorOperation%20%3A%20OrchestrateSessionHost%3CBR%20%2F%3EErrorCode%20%3A%20-2146233088%3CBR%20%2F%3EErrorCodeSymbolic%20%3A%20ConnectionFailedRDAgentBrokerConnectionNotFound%3CBR%20%2F%3EErrorMessage%20%3A%20RD%20Agent%20from%20host%206ce85f83-63c8-4c87-adb2-1d7d33dc12f7%20is%20not%20connected%20to%20the%20Broker%20instance%20is%3CBR%20%2F%3Eassociated%20with%20during%20orchestration%20request.%3CBR%20%2F%3EErrorInternal%20%3A%20False%3CBR%20%2F%3EReportedBy%20%3A%20RDGateway%3CBR%20%2F%3ETime%20%3A%208%2F13%2F2019%2012%3A02%3A32%20PM%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20session%20host%20status%20(Last%20two%20are%20shut%20down%20since%20end%20of%20May)%3A%3C%2FP%3E%3CP%3EPS%20C%3A%5CUsers%5Cjohan%26gt%3B%20Get-RdsSessionHost%20-TenantName%20%22prod-fdt-avance%22%20-HostPoolName%20%22avance%22%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ESessionHostName%20%3A%20prod-rds-vm00.fdtcloud.se%3CBR%20%2F%3ETenantName%20%3A%20prod-fdt-avance%3CBR%20%2F%3ETenantGroupName%20%3A%20Default%20Tenant%20Group%3CBR%20%2F%3EHostPoolName%20%3A%20avance%3CBR%20%2F%3EAllowNewSession%20%3A%20True%3CBR%20%2F%3ESessions%20%3A%201%3CBR%20%2F%3ELastHeartBeat%20%3A%208%2F13%2F2019%2010%3A01%3A52%20AM%3CBR%20%2F%3EAgentVersion%20%3A%201.0.1006.2006%3CBR%20%2F%3EAssignedUser%20%3A%3CBR%20%2F%3EOsVersion%20%3A%2010.0.14393%3CBR%20%2F%3ESxSStackVersion%20%3A%20rdp-sxs190614002%3CBR%20%2F%3EStatus%20%3A%20Available%3CBR%20%2F%3EUpdateState%20%3A%20Succeeded%3CBR%20%2F%3ELastUpdateTime%20%3A%208%2F6%2F2019%208%3A06%3A44%20PM%3CBR%20%2F%3EUpdateErrorMessage%20%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ESessionHostName%20%3A%20prod-rds-vm01.fdtcloud.se%3CBR%20%2F%3ETenantName%20%3A%20prod-fdt-avance%3CBR%20%2F%3ETenantGroupName%20%3A%20Default%20Tenant%20Group%3CBR%20%2F%3EHostPoolName%20%3A%20avance%3CBR%20%2F%3EAllowNewSession%20%3A%20True%3CBR%20%2F%3ESessions%20%3A%200%3CBR%20%2F%3ELastHeartBeat%20%3A%205%2F28%2F2019%202%3A11%3A07%20PM%3CBR%20%2F%3EAgentVersion%20%3A%201.0.407.7%3CBR%20%2F%3EAssignedUser%20%3A%3CBR%20%2F%3EOsVersion%20%3A%2010.0.14393%3CBR%20%2F%3ESxSStackVersion%20%3A%20rdp-sxs190329002%3CBR%20%2F%3EStatus%20%3A%20Available%3CBR%20%2F%3EUpdateState%20%3A%20Succeeded%3CBR%20%2F%3ELastUpdateTime%20%3A%205%2F28%2F2019%209%3A10%3A18%20AM%3CBR%20%2F%3EUpdateErrorMessage%20%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESessionHostName%20%3A%20prod-rds-vm02.fdtcloud.se%3CBR%20%2F%3ETenantName%20%3A%20prod-fdt-avance%3CBR%20%2F%3ETenantGroupName%20%3A%20Default%20Tenant%20Group%3CBR%20%2F%3EHostPoolName%20%3A%20avance%3CBR%20%2F%3EAllowNewSession%20%3A%20True%3CBR%20%2F%3ESessions%20%3A%200%3CBR%20%2F%3ELastHeartBeat%20%3A%205%2F28%2F2019%202%3A19%3A21%20PM%3CBR%20%2F%3EAgentVersion%20%3A%201.0.407.7%3CBR%20%2F%3EAssignedUser%20%3A%3CBR%20%2F%3EOsVersion%20%3A%2010.0.14393%3CBR%20%2F%3ESxSStackVersion%20%3A%20rdp-sxs190329002%3CBR%20%2F%3EStatus%20%3A%20Available%3CBR%20%2F%3EUpdateState%20%3A%20Succeeded%3CBR%20%2F%3ELastUpdateTime%20%3A%205%2F28%2F2019%209%3A28%3A22%20AM%3CBR%20%2F%3EUpdateErrorMessage%20%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802381%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802381%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309051%22%20target%3D%22_blank%22%3E%40Johan_Eriksson%3C%2FA%3E%26nbsp%3BWhen%20we%20started%20the%20two%20shut%20down%20session%20hosts%2C%20both%20went%20on%20to%20upgrade%20and%20got%20an%20upgrade%20failure.%20This%20put%20them%20both%20in%20Status%26nbsp%3BUpgradeFailed.%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20odd%20thing%20is%20that%20this%20caused%20connections%20to%20succeed.%20(Maybe%20sessions%20were%20incorrectly%20being%20routed%20to%20session%20hosts%20that%20are%20shut%20down.)%3C%2FP%3E%3CP%3EThis%20leads%20me%20to%20suspect%20that%20the%20marking%20of%20shut%20down%20session%20hosts%20as%20%22Available%22%20is%20part%20of%20the%20bug%20that%20was%20somehow%20introduced%20in%20a%20recent%20deploy%20by%20MIcrosoft.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805802%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805802%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309051%22%20target%3D%22_blank%22%3E%40Johan_Eriksson%3C%2FA%3E%26nbsp%3BI'm%20having%20what%20I%20think%20is%20a%20related%20issue.%20Our%20setup%20is%20also%20from%20May%202019%2C%20and%20in%20the%20last%2048%20hours%20we're%20having%20constant%20issues.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEver%20since%20our%20virtual%20desktop%20VMs%20auto-updated%20to%20Remote%20Desktop%20Services%20Infrastructure%20Agent%201.0.1006.2006%2C%20they%20keep%20falling%20into%20a%20bad%20state%20of%20%22NoHeartbeat%22%20after%20only%20a%20few%20minutes.%20When%20the%20VMs%20first%20boot%2C%20the%20status%20is%20%22Available%22%20and%20%22LastHeartBeat%22%20reflects%20the%20time%20of%20boot.%20We're%20able%20to%20connect%20to%20the%20pool%20without%20issue%20and%20can%20maintain%20sessions%2C%20but%20cannot%20start%20new%20sessions%20because%20the%20status%20changes%20to%20%22NoHeartbeat%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20an%20admin%20restarts%20the%20%22RDAgentBootloader%22%20service%2C%20the%20status%20changes%20to%20%22Available%22%20and%20%22LastHeartBeat%22%20reflects%20the%20time%20of%20the%20service%20restart.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20reference%2C%20I%20am%20checking%20on%20the%20status%20of%20the%20pool%20with%20the%20%22Get-RdsSessionHost%22%20cmdlet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805831%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805831%22%20slang%3D%22en-US%22%3EAs%20a%20quick%20workaround%20for%20my%20issue%2C%20I'm%20had%20to%20setup%20a%20task%20with%20Task%20Scheduler%20that%20runs%20NET%20STOP%20and%20NET%20START%20of%20RdAgentBootloader%20every%201%20min%2C%20starting%20at%20system%20boot%20and%20continuing%20indefinitely.%20This%20gives%20us%20about%2055%20seconds%20out%20of%20every%20minute%20where%20the%20session%20hosts%20are%20%22Available%22%2C%20and%205%20seconds%20where%20they're%20%22NoHeartbeat%22.%20It's%20an%20awful%20hack%2C%20but%20it's%20better%20than%20nothing%20until%20MSFT%20can%20push%20a%20version%20of%20the%20RD%20Agent%20that%20can%20actually%20post%20heartbeats.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805866%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805866%22%20slang%3D%22en-US%22%3EThanks%20for%20bringing%20this%20to%20our%20attention.%20Let%20me%20review%20this%20and%20get%20back%20to%20you%20on%20this.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805869%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805869%22%20slang%3D%22en-US%22%3EThanks%20for%20bringing%20this%20to%20our%20attention.%20Can%20you%20reply%20back%20with%20output%20of%20Get-RDSSessionHost%20please%3F%20Thanks.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805875%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805875%22%20slang%3D%22en-US%22%3EThis%20was%20from%20a%20screenshot%20I%20took%20right%20before%20implementing%20the%20workaround%20that%20restarts%20the%20RD%20Agent%20Bootloader%20every%201%20min.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805874%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805874%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305420%22%20target%3D%22_blank%22%3E%40Roop_WVD%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F127066i7FCD4FADC24CC131%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805896%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805896%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305420%22%20target%3D%22_blank%22%3E%40Roop_WVD%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20also%20having%20this%20issue%2C%20screenshot%20of%20the%20rdsSessionHost%2C%20working%20yesterday%20failing%20today.%20I%20ahve%20tried%20rebooting%20the%20desktops.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20697px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F127070iF01291B21C71A9EC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Cannot_login.PNG%22%20title%3D%22Cannot_login.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805910%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805910%22%20slang%3D%22en-US%22%3EThanks.%20Can%20you%20explain%20what%E2%80%99s%20the%20exact%20scenario%20you%20are%20seeing%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805921%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805921%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305420%22%20target%3D%22_blank%22%3E%40Roop_WVD%3C%2FA%3E%26nbsp%3BReiterating%20what%20was%20written%20above%20--%20all%20session%20hosts%20start%20out%20as%20%22Available%22%20up%20to%201%20min%20after%20boot%2C%20and%20then%20fall%20into%20%22NoHeartbeat%22%20status.%20Once%20this%20happens%2C%20it's%20not%20possible%20to%20connect%20to%20the%20host%20pool%20using%20Remote%20Desktop%20--%20it%20displays%20this%20message%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20697px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F127075i625F940B96FC06BC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2214f8e1a0-7a28-45a5-b6f5-4f29097f5794.png%22%20title%3D%2214f8e1a0-7a28-45a5-b6f5-4f29097f5794.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20new%20session%20host%20VMs%20are%20created%20from%20an%20image%20that%20worked%20back%20in%20May%2C%20as%20soon%20as%20they%20update%20to%20Remote%20Desktop%20Services%20Infrastructure%20Agent%201.0.1006.2006%2C%20they%20drop%20to%20%22NoHeartbeat%22%20status%20after%201%20min.%20Restarting%20the%20new%20session%20hosts%20exhibits%20the%20same%20behavior%20as%20the%20existing%20session%20hosts%20--%20they%20only%20stay%20Available%20for%20up%20to%201%20min%20after%20boot.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805925%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805925%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305420%22%20target%3D%22_blank%22%3E%40Roop_WVD%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20worries%2C%3C%2FP%3E%3CP%3EYesterday%20I%20set%20up%20a%20fresh%20pool%20of%20dedicated%20machines%2C%20I%20entitled%20three%20users%20and%20they%20logged%20in%20successfully.%20All%20three%20users%20haven't%20done%20anything%20more%20than%20login%20and%20open%20a%20webbroswer%3C%2FP%3E%3CP%3EThis%20morning%2C%20we%20are%20unable%20to%20connect%20with%20any%20of%20the%20users%2C%20we%20can%20connect%20to%20the%20pool%20gateway%20but%20none%20of%20the%20session%20hosts.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20554px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F127077i8F95E4DDDA5AB0F5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22No_Resources.PNG%22%20title%3D%22No_Resources.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-806630%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-806630%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305420%22%20target%3D%22_blank%22%3E%40Roop_WVD%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20do%20have%20the%20same%20problem%20as%20described%20by%20GuyPaddock.%20Session%20host%20starts%20with%20status%20'Available'%20and%20that%20changes%20shortly%20after%20to%20'NoHeartbeat'.%20Consequently%20our%20users%20did%20get%20the%20'...no%20available%20resources'%20message.%20As%20said%20restarting%20the%20RdAgentBootloader%20service%20helps%2C%20for%20a%20minute...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E'Hope%20this%20will%20be%20solved%20soon.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-806792%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-806792%22%20slang%3D%22en-US%22%3EDo%20you%20mind%20sending%20me%20your%20task%20scheduler%20settings%20please.%20I%20am%20in%20a%20bind%20and%20would%20like%20to%20get%20through%20the%20testing%20of%20the%20task%20scheduler%20you%20already%20did%20by%20reaching%20out.%20Thanks%20a%20million!%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359655%22%20target%3D%22_blank%22%3E%40GuyPaddock%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-806805%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-806805%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F392953%22%20target%3D%22_blank%22%3E%40iconicmlee%3C%2FA%3E%26nbsp%3BSure!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20believe%20you%20will%20need%20to%20configure%20the%20task%20to%20run%20with%20highest%20privs%20under%20an%20admin%20account%2C%20since%20it%20needs%20to%20be%20able%20to%20stop%20and%20start%20system%20services%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%0A%3CTASK%20version%3D%221.2%22%20xmlns%3D%22%26lt%3Ba%20href%3D%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fwindows%2F2004%2F02%2Fmit%2Ftask%22%26gt%3B%0A%20%20%3CREGISTRATIONINFO%3E%0A%20%20%20%20%3CDATE%3E2019-08-14T17%3A06%3A39.646478%3C%2FDATE%3E%0A%20%20%20%20%3CAUTHOR%3ECLOUD%5Cguy%3C%2FAUTHOR%3E%0A%20%20%20%20%3CURI%3E%5CITSA-46%20Workaround%3C%2FURI%3E%0A%20%20%3C%2FREGISTRATIONINFO%3E%0A%20%20%3CTRIGGERS%3E%0A%20%20%20%20%3CBOOTTRIGGER%3E%0A%20%20%20%20%20%20%3CREPETITION%3E%0A%20%20%20%20%20%20%20%20%3CINTERVAL%3EPT1M%3C%2FINTERVAL%3E%0A%20%20%20%20%20%20%20%20%3CSTOPATDURATIONEND%3Efalse%3C%2FSTOPATDURATIONEND%3E%0A%20%20%20%20%20%20%3C%2FREPETITION%3E%0A%20%20%20%20%20%20%3CENABLED%3Etrue%3C%2FENABLED%3E%0A%20%20%20%20%3C%2FBOOTTRIGGER%3E%0A%20%20%3C%2FTRIGGERS%3E%0A%20%20%3CPRINCIPALS%3E%0A%20%20%20%20%3CPRINCIPAL%20id%3D%22Author%22%3E%0A%20%20%20%20%20%20%3CUSERID%3ES-1-5-21-2615066866-973913876-715106564-1108%3C%2FUSERID%3E%0A%20%20%20%20%20%20%3CLOGONTYPE%3EPassword%3C%2FLOGONTYPE%3E%0A%20%20%20%20%20%20%3CRUNLEVEL%3EHighestAvailable%3C%2FRUNLEVEL%3E%0A%20%20%20%20%3C%2FPRINCIPAL%3E%0A%20%20%3C%2FPRINCIPALS%3E%0A%20%20%3CSETTINGS%3E%0A%20%20%20%20%3CMULTIPLEINSTANCESPOLICY%3EIgnoreNew%3C%2FMULTIPLEINSTANCESPOLICY%3E%0A%20%20%20%20%3CDISALLOWSTARTIFONBATTERIES%3Etrue%3C%2FDISALLOWSTARTIFONBATTERIES%3E%0A%20%20%20%20%3CSTOPIFGOINGONBATTERIES%3Etrue%3C%2FSTOPIFGOINGONBATTERIES%3E%0A%20%20%20%20%3CALLOWHARDTERMINATE%3Etrue%3C%2FALLOWHARDTERMINATE%3E%0A%20%20%20%20%3CSTARTWHENAVAILABLE%3Efalse%3C%2FSTARTWHENAVAILABLE%3E%0A%20%20%20%20%3CRUNONLYIFNETWORKAVAILABLE%3Efalse%3C%2FRUNONLYIFNETWORKAVAILABLE%3E%0A%20%20%20%20%3CIDLESETTINGS%3E%0A%20%20%20%20%20%20%3CSTOPONIDLEEND%3Etrue%3C%2FSTOPONIDLEEND%3E%0A%20%20%20%20%20%20%3CRESTARTONIDLE%3Efalse%3C%2FRESTARTONIDLE%3E%0A%20%20%20%20%3C%2FIDLESETTINGS%3E%0A%20%20%20%20%3CALLOWSTARTONDEMAND%3Etrue%3C%2FALLOWSTARTONDEMAND%3E%0A%20%20%20%20%3CENABLED%3Etrue%3C%2FENABLED%3E%0A%20%20%20%20%3CHIDDEN%3Efalse%3C%2FHIDDEN%3E%0A%20%20%20%20%3CRUNONLYIFIDLE%3Efalse%3C%2FRUNONLYIFIDLE%3E%0A%20%20%20%20%3CWAKETORUN%3Efalse%3C%2FWAKETORUN%3E%0A%20%20%20%20%3CEXECUTIONTIMELIMIT%3EPT72H%3C%2FEXECUTIONTIMELIMIT%3E%0A%20%20%20%20%3CPRIORITY%3E7%3C%2FPRIORITY%3E%0A%20%20%3C%2FSETTINGS%3E%0A%20%20%3CACTIONS%20context%3D%22Author%22%3E%0A%20%20%20%20%3CEXEC%3E%0A%20%20%20%20%20%20%3CCOMMAND%3ENET%3C%2FCOMMAND%3E%0A%20%20%20%20%20%20%3CARGUMENTS%3ESTOP%20RdAgentBootloader%3C%2FARGUMENTS%3E%0A%20%20%20%20%3C%2FEXEC%3E%0A%20%20%20%20%3CEXEC%3E%0A%20%20%20%20%20%20%3CCOMMAND%3ENET%3C%2FCOMMAND%3E%0A%20%20%20%20%20%20%3CARGUMENTS%3ESTART%20RdAgentBootloader%3C%2FARGUMENTS%3E%0A%20%20%20%20%3C%2FEXEC%3E%0A%20%20%3C%2FACTIONS%3E%0A%3C%2FTASK%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-806824%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-806824%22%20slang%3D%22en-US%22%3EAlso%3A%20once%20the%20task%20is%20created%2C%20you%20have%20to%20restart%20the%20VM%20to%20kick%20it%20off.%20Just%20running%20the%20task%20manually%20doesn't%20cause%20it%20to%20recur.%20It%20also%20seems%20like%20editing%20the%20task%20causes%20it%20to%20stop%20running%20until%20the%20next%20reboot.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-806827%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-806827%22%20slang%3D%22en-US%22%3E%3CP%3EOne%20other%20power%20user%20tip%3A%20I%20found%20a%20Powershell%20cmdlet%20that%20makes%20it%20really%20easy%20to%20monitor%20the%20status%20of%20the%20session%20hosts%20so%20you%20can%20see%20the%20scheduled%20task%20in%20action.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20get%20the%20cmdlet%20here%3A%3CBR%20%2F%3E%3CA%20href%3D%22http%3A%2F%2Fwragg.io%2Fwatch-for-changes-with-powershell%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwragg.io%2Fwatch-for-changes-with-powershell%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20run%20it%20to%20monitor%20session%20hosts%20this%20way%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-php%22%3E%3CCODE%3E%7B%20Get-RdsSessionHost%20-TenantName%20%22TENANT%22%20-HostPoolName%20%22HOST%20POOL%22%20%7D%20%7C%20Watch-Command%20-Verbose%20-Continuous%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20%3CEM%3Eany%3C%2FEM%3Evalues%20like%20status%2C%20heartbeat%20time%2C%20session%20count%2C%20etc%20change%2C%20it%20prints%20the%20output.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-807054%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-807054%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359655%22%20target%3D%22_blank%22%3E%40GuyPaddock%3C%2FA%3EThanks%20for%20reporting%20the%20issue.%20This%20is%20service%20side%20issue%20and%20we%20have%20fixed%20it%20few%20minutes%20back.%20Can%20you%20please%20verify%20if%20it%20working%20now.%20We%20would%20like%20to%20further%20investigate%20if%20that's%20not%20the%20case.%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-807055%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-807055%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F391300%22%20target%3D%22_blank%22%3E%40soloji%3C%2FA%3E%26nbsp%3B%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20cursor%3A%20text%3B%20font-family%3A%20inherit%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EThanks%20for%20reporting%20the%20issue.%20This%20is%20service%20side%20issue%20and%20we%20have%20fixed%20it%20few%20minutes%20back.%20Can%20you%20please%20verify%20if%20it%20working%20now.%20We%20would%20like%20to%20further%20investigate%20if%20that's%20not%20the%20case.%20Thanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-807056%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-807056%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F392885%22%20target%3D%22_blank%22%3E%40ClearForward%3C%2FA%3E%26nbsp%3B%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20cursor%3A%20text%3B%20font-family%3A%20inherit%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EThanks%20for%20reporting%20the%20issue.%20This%20is%20service%20side%20issue%20and%20we%20have%20fixed%20it%20few%20minutes%20back.%20Can%20you%20please%20verify%20if%20it%20working%20now.%20We%20would%20like%20to%20further%20investigate%20if%20that's%20not%20the%20case.%20Thanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-807076%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-807076%22%20slang%3D%22en-US%22%3EI%20can%20confirm%20that%20after%20disabling%20my%20scheduled%20task%20and%20then%20monitoring%20the%20output%20of%20Get-RdsSessionHost%20over%20the%20last%20five%20minutes%2C%20I%20no%20longer%20see%20NoHeartbeat%20status!%20In%20addition%2C%20the%20LastHeartBeat%20is%20updating%20consistently%20every%2030%20secs%20now.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-807081%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-807081%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359655%22%20target%3D%22_blank%22%3E%40GuyPaddock%3C%2FA%3EThanks%20for%20the%20confirmation%20!!%20Again%20appreciate%20your%20time.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-807157%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-807157%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305420%22%20target%3D%22_blank%22%3E%40Roop_WVD%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20confirm%20as%20well%20that%20the%20issue%20seems%20solved.%20Many%20thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810126%22%20slang%3D%22en-US%22%3ERe%3A%20Started%20a%20few%20days%20ago%20at%20most%3A%20Agent%20on%20Session%20host%20no%20longer%20communicates%20properly%20with%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810126%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305420%22%20target%3D%22_blank%22%3E%40Roop_WVD%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20can%20confirm%20that%20my%20pools%20are%20all%20online.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Johan_Eriksson
Contributor

My host pool and tenant are probably from the May timeframe. The agent has version 1.0.1006.2006.

 

I notice that the agent posts a heartbeat on a restart of session host and then no more.

 

When connecting, the RDBroker appears to decide that no session host is available. 

 

I also notice that session hosts that are shut down are marked as Available in Status according to Get-RdsSessionHost. 

 

Have you made some recent (incompatible/bad) upgrade to WVD that I should be aware of. Do I need to do anything or this an issue on the MSFT side?

 

Here are diagnostics from one connect attempt:

PS C:\Users\johan> (Get-RdsDiagnosticActivities -TenantName "prod-fdt-avance" -ActivityId 8b9460d6-a900-4940-85ac-7b46031e0000 -Detailed).Errors


ErrorSource : RDBroker
ErrorOperation : OrchestrateSessionHost
ErrorCode : -2146233088
ErrorCodeSymbolic : ConnectionFailedRDAgentBrokerConnectionNotFound
ErrorMessage : RD Agent from host 6ce85f83-63c8-4c87-adb2-1d7d33dc12f7 is not connected to the Broker instance is
associated with during orchestration request.
ErrorInternal : False
ReportedBy : RDGateway
Time : 8/13/2019 12:02:32 PM

 

Here is the session host status (Last two are shut down since end of May):

PS C:\Users\johan> Get-RdsSessionHost -TenantName "prod-fdt-avance" -HostPoolName "avance"


SessionHostName : prod-rds-vm00.fdtcloud.se
TenantName : prod-fdt-avance
TenantGroupName : Default Tenant Group
HostPoolName : avance
AllowNewSession : True
Sessions : 1
LastHeartBeat : 8/13/2019 10:01:52 AM
AgentVersion : 1.0.1006.2006
AssignedUser :
OsVersion : 10.0.14393
SxSStackVersion : rdp-sxs190614002
Status : Available
UpdateState : Succeeded
LastUpdateTime : 8/6/2019 8:06:44 PM
UpdateErrorMessage :

 


SessionHostName : prod-rds-vm01.fdtcloud.se
TenantName : prod-fdt-avance
TenantGroupName : Default Tenant Group
HostPoolName : avance
AllowNewSession : True
Sessions : 0
LastHeartBeat : 5/28/2019 2:11:07 PM
AgentVersion : 1.0.407.7
AssignedUser :
OsVersion : 10.0.14393
SxSStackVersion : rdp-sxs190329002
Status : Available
UpdateState : Succeeded
LastUpdateTime : 5/28/2019 9:10:18 AM
UpdateErrorMessage :

 

 

SessionHostName : prod-rds-vm02.fdtcloud.se
TenantName : prod-fdt-avance
TenantGroupName : Default Tenant Group
HostPoolName : avance
AllowNewSession : True
Sessions : 0
LastHeartBeat : 5/28/2019 2:19:21 PM
AgentVersion : 1.0.407.7
AssignedUser :
OsVersion : 10.0.14393
SxSStackVersion : rdp-sxs190329002
Status : Available
UpdateState : Succeeded
LastUpdateTime : 5/28/2019 9:28:22 AM
UpdateErrorMessage :

 

23 Replies

@Johan_Eriksson When we started the two shut down session hosts, both went on to upgrade and got an upgrade failure. This put them both in Status UpgradeFailed. 

The odd thing is that this caused connections to succeed. (Maybe sessions were incorrectly being routed to session hosts that are shut down.)

This leads me to suspect that the marking of shut down session hosts as "Available" is part of the bug that was somehow introduced in a recent deploy by MIcrosoft.

Highlighted

@Johan_Eriksson I'm having what I think is a related issue. Our setup is also from May 2019, and in the last 48 hours we're having constant issues.

 

Ever since our virtual desktop VMs auto-updated to Remote Desktop Services Infrastructure Agent 1.0.1006.2006, they keep falling into a bad state of "NoHeartbeat" after only a few minutes. When the VMs first boot, the status is "Available" and "LastHeartBeat" reflects the time of boot. We're able to connect to the pool without issue and can maintain sessions, but cannot start new sessions because the status changes to "NoHeartbeat".

 

If an admin restarts the "RDAgentBootloader" service, the status changes to "Available" and "LastHeartBeat" reflects the time of the service restart.

 

For reference, I am checking on the status of the pool with the "Get-RdsSessionHost" cmdlet.

As a quick workaround for my issue, I'm had to setup a task with Task Scheduler that runs NET STOP and NET START of RdAgentBootloader every 1 min, starting at system boot and continuing indefinitely. This gives us about 55 seconds out of every minute where the session hosts are "Available", and 5 seconds where they're "NoHeartbeat". It's an awful hack, but it's better than nothing until MSFT can push a version of the RD Agent that can actually post heartbeats.
Thanks for bringing this to our attention. Let me review this and get back to you on this.
Thanks for bringing this to our attention. Can you reply back with output of Get-RDSSessionHost please? Thanks.
This was from a screenshot I took right before implementing the workaround that restarts the RD Agent Bootloader every 1 min.

@Roop_WVD 

I am also having this issue, screenshot of the rdsSessionHost, working yesterday failing today. I ahve tried rebooting the desktops.Cannot_login.PNG

 

Thanks. Can you explain what’s the exact scenario you are seeing?

@Roop_WVD Reiterating what was written above -- all session hosts start out as "Available" up to 1 min after boot, and then fall into "NoHeartbeat" status. Once this happens, it's not possible to connect to the host pool using Remote Desktop -- it displays this message:

 

14f8e1a0-7a28-45a5-b6f5-4f29097f5794.png

 

If new session host VMs are created from an image that worked back in May, as soon as they update to Remote Desktop Services Infrastructure Agent 1.0.1006.2006, they drop to "NoHeartbeat" status after 1 min. Restarting the new session hosts exhibits the same behavior as the existing session hosts -- they only stay Available for up to 1 min after boot.

@Roop_WVD 

No worries,

Yesterday I set up a fresh pool of dedicated machines, I entitled three users and they logged in successfully. All three users haven't done anything more than login and open a webbroswer

This morning, we are unable to connect with any of the users, we can connect to the pool gateway but none of the session hosts.

No_Resources.PNG

 

@Roop_WVD 

 

We do have the same problem as described by GuyPaddock. Session host starts with status 'Available' and that changes shortly after to 'NoHeartbeat'. Consequently our users did get the '...no available resources' message. As said restarting the RdAgentBootloader service helps, for a minute...

 

'Hope this will be solved soon.

Do you mind sending me your task scheduler settings please. I am in a bind and would like to get through the testing of the task scheduler you already did by reaching out. Thanks a million! @GuyPaddock

@iconicmlee Sure!

 

I believe you will need to configure the task to run with highest privs under an admin account, since it needs to be able to stop and start system services:

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="<a href="http://schemas.microsoft.com/windows/2004/02/mit/task" target="_blank">http://schemas.microsoft.com/windows/2004/02/mit/task</a>">
  <RegistrationInfo>
    <Date>2019-08-14T17:06:39.646478</Date>
    <Author>CLOUD\guy</Author>
    <URI>\ITSA-46 Workaround</URI>
  </RegistrationInfo>
  <Triggers>
    <BootTrigger>
      <Repetition>
        <Interval>PT1M</Interval>
        <StopAtDurationEnd>false</StopAtDurationEnd>
      </Repetition>
      <Enabled>true</Enabled>
    </BootTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>S-1-5-21-2615066866-973913876-715106564-1108</UserId>
      <LogonType>Password</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>NET</Command>
      <Arguments>STOP RdAgentBootloader</Arguments>
    </Exec>
    <Exec>
      <Command>NET</Command>
      <Arguments>START RdAgentBootloader</Arguments>
    </Exec>
  </Actions>
</Task>

 

Also: once the task is created, you have to restart the VM to kick it off. Just running the task manually doesn't cause it to recur. It also seems like editing the task causes it to stop running until the next reboot.

One other power user tip: I found a Powershell cmdlet that makes it really easy to monitor the status of the session hosts so you can see the scheduled task in action.

 

You can get the cmdlet here:
http://wragg.io/watch-for-changes-with-powershell/

 

You can run it to monitor session hosts this way:

{ Get-RdsSessionHost -TenantName "TENANT" -HostPoolName "HOST POOL" } | Watch-Command -Verbose -Continuous

 

If any values like status, heartbeat time, session count, etc change, it prints the output.

@GuyPaddock Thanks for reporting the issue. This is service side issue and we have fixed it few minutes back. Can you please verify if it working now. We would like to further investigate if that's not the case. Thanks.

@soloji Thanks for reporting the issue. This is service side issue and we have fixed it few minutes back. Can you please verify if it working now. We would like to further investigate if that's not the case. Thanks.

Solution

@ClearForward Thanks for reporting the issue. This is service side issue and we have fixed it few minutes back. Can you please verify if it working now. We would like to further investigate if that's not the case. Thanks.

I can confirm that after disabling my scheduled task and then monitoring the output of Get-RdsSessionHost over the last five minutes, I no longer see NoHeartbeat status! In addition, the LastHeartBeat is updating consistently every 30 secs now.

@GuyPaddock Thanks for the confirmation !! Again appreciate your time.

@Roop_WVD 

 

I can confirm as well that the issue seems solved. Many thanks!

@Roop_WVD 

 

Hi can confirm that my pools are all online.

 

 

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies