WVD & Internal AD Domains

%3CLINGO-SUB%20id%3D%22lingo-sub-2033589%22%20slang%3D%22en-US%22%3EWVD%20%26amp%3B%20Internal%20AD%20Domains%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2033589%22%20slang%3D%22en-US%22%3E%3CP%3EA%20WVD%20use%20case%20that%20my%20customer%20wants%20to%20implement%20is%20access%20to%20their%20development%20domains.%26nbsp%3B%20For%20various%20reasons%2C%20these%20domains%20are%20not%20exposed%20to%20Azure%20AD%20for%20remote%20access.%26nbsp%3B%20The%20concept%20of%20operations%20here%20is%20to%20authenticate%20to%20the%20WVD%20service%20with%20your%20production%20credentials%20that%20will%20give%20you%20access%20to%20one%20or%20more%20desktops%20in%20your%20assigned%20development%20environments.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20able%20to%20successfully%20build%20a%20host%20pool%20and%20deploy%20session%20hosts%20and%20have%20them%20join%20the%20DEV%20domain%20but%20I'm%20running%20into%20an%20issue%20with%20accessing%20the%20desktop%20via%20WVD.%26nbsp%3B%20The%20problem%20seems%20to%20be%20that%20the%20WVD%20workstation%20in%20the%20development%20domain%20that%20is%20isolated%20from%20the%20production%20domains%20cannot%20resolve%20the%20user%20who%20has%20logged%20on%20to%20the%20WVD%20service%20with%20their%20production%20account.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20understand%20that%20we%20are%20trying%20to%20do%20something%20a%20little%20different%2C%20but%20is%20there%20a%20way%20that%20we%20can%20tell%20the%20remote%20desktop%20services%20to%20skip%20whatever%20it%20is%20trying%20to%20pass%20with%20the%20production%20user%20and%20just%20present%20an%20authentication%20dialog%20so%20that%20the%20user%20can%20log%20on%20with%20their%20development%20domain%20credentials%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%5BWindow%20Title%5D%3CBR%20%2F%3ERemote%20Desktop%3C%2FP%3E%3CP%3E%5BContent%5D%3CBR%20%2F%3EAn%20error%20occurred%20while%20accessing%20this%20resource.%20Retry%20the%20connection%20or%20contact%20your%20system%20administrator.%3C%2FP%3E%3CP%3E%5B%5E%5D%20Hide%20details%20%5BOK%5D%3C%2FP%3E%3CP%3E%5BExpanded%20Information%5D%3CBR%20%2F%3EError%20code%3A%200x3000047%3CBR%20%2F%3EExtended%20error%20code%3A%200x0%3CBR%20%2F%3ETimestamp%20(UTC)%3A%202021-01-05T15%3A41%3A17.638Z%3CBR%20%2F%3EActivity%20ID%3A%204d6555d3-0616-4df4-9746-9b5da7b70000%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESome%20errors%20and%20warnings%20from%20the%20Remote%20Desktop%20Services%20log%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELog%20Name%3A%20RemoteDesktopServices%3CBR%20%2F%3ESource%3A%20Microsoft.RDInfra.RDAgent.Service.RDInfraAgent%3CBR%20%2F%3EDate%3A%201%2F5%2F2021%204%3A11%3A20%20PM%3CBR%20%2F%3EEvent%20ID%3A%200%3CBR%20%2F%3ETask%20Category%3A%20None%3CBR%20%2F%3ELevel%3A%20Warning%3CBR%20%2F%3EKeywords%3A%20Classic%3CBR%20%2F%3EUser%3A%20N%2FA%3CBR%20%2F%3EComputer%3A%20DEVWVD1.DEV.Domain%3CBR%20%2F%3EDescription%3A%3CBR%20%2F%3EOrchestrateSessionAsync%20failed%20for%20user%20'%E2%89%A4upn%40production.domain%E2%89%A5'%20status%3DO_ERROR_NO_SUCH_MEMBER%20ex%3DMicrosoft.RDInfra.RDAgent.Service.AddUserToLocalGroupAdErrorNoSuchMemberException%3A%20Could%20not%20resolve%20UPN%20from%20SID%20---%26gt%3B%20System.ComponentModel.Win32Exception%3A%20No%20mapping%20between%20account%20names%20and%20security%20IDs%20was%20done%3CBR%20%2F%3Eat%20Microsoft.RDInfra.Shared.Common.TaskUtilities.%3CCALLNATIVEFUNCWITHTIMEOUT%3Ed__2%601.MoveNext()%20in%20S%3A%5Csrc%5CShared%5CCommon%5Csrc%5CTaskUtilities.cs%3Aline%20124%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20Microsoft.RDInfra.RDAgent.Service.UserSecurity.%3CGETUPNFROMSIDIMPLASYNC%3Ed__13.MoveNext()%20in%20S%3A%5Csrc%5CRDAgent%5Csrc%5CService%5CUserSecurity.cs%3Aline%20217%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20Microsoft.RDInfra.RDAgent.Service.Services.NativeOrchestrationService.%3CADDUSERTOLOCALGROUPANDRESOLVESIDASYNC%3Ed__10.MoveNext()%20in%20S%3A%5Csrc%5CRDAgent%5Csrc%5CService%5CServices%5CNativeOrchestrationService.cs%3Aline%20163%3CBR%20%2F%3E---%20End%20of%20inner%20exception%20stack%20trace%20---%3CBR%20%2F%3Eat%20Microsoft.RDInfra.RDAgent.Service.Services.AgentOrchestrationService.%3CORCHESTRATESESSIONASYNC%3Ed__32.MoveNext()%20in%20S%3A%5Csrc%5CRDAgent%5Csrc%5CService%5CServices%5CAgentOrchestrationService.cs%3Aline%20436%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20Microsoft.RDInfra.RDAgent.Service.RDInfraAgent.%3CORCHESTRATESESSIONASYNC%3Ed__39.MoveNext()%20in%20S%3A%5Csrc%5CRDAgent%5Csrc%5CService%5CRDInfraAgent.cs%3Aline%20506%3C%2FORCHESTRATESESSIONASYNC%3E%3C%2FORCHESTRATESESSIONASYNC%3E%3C%2FADDUSERTOLOCALGROUPANDRESOLVESIDASYNC%3E%3C%2FGETUPNFROMSIDIMPLASYNC%3E%3C%2FCALLNATIVEFUNCWITHTIMEOUT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELog%20Name%3A%20RemoteDesktopServices%3CBR%20%2F%3ESource%3A%20Microsoft.RDInfra.Messaging.MessagingDispatcherMiddleware%3CBR%20%2F%3EDate%3A%201%2F5%2F2021%204%3A11%3A20%20PM%3CBR%20%2F%3EEvent%20ID%3A%200%3CBR%20%2F%3ETask%20Category%3A%20None%3CBR%20%2F%3ELevel%3A%20Error%3CBR%20%2F%3EKeywords%3A%20Classic%3CBR%20%2F%3EUser%3A%20N%2FA%3CBR%20%2F%3EComputer%3A%20DEVWVD1.DEV.Domain%3CBR%20%2F%3EDescription%3A%3CBR%20%2F%3EMessagingDispatcherMiddleware%20Exception%3DMicrosoft.RDInfra.Shared.Common.RestError.RestException%3A%20Could%20not%20resolve%20UPN%20from%20SID%20---%26gt%3B%20Microsoft.RDInfra.Shared.Common.RestError.InnerRestException%3A%20Could%20not%20resolve%20UPN%20from%20SID%20---%26gt%3B%20Microsoft.RDInfra.Shared.Common.RestError.InnerRestException%3A%20No%20mapping%20between%20account%20names%20and%20security%20IDs%20was%20done%3CBR%20%2F%3E---%20End%20of%20inner%20exception%20stack%20trace%20---%3CBR%20%2F%3E---%20End%20of%20inner%20exception%20stack%20trace%20---%3CBR%20%2F%3Eat%20Microsoft.RDInfra.RDAgent.Service.RDInfraAgent.%3CORCHESTRATESESSIONASYNC%3Ed__39.MoveNext()%20in%20S%3A%5Csrc%5CRDAgent%5Csrc%5CService%5CRDInfraAgent.cs%3Aline%20548%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20Microsoft.RDInfra.RDAgent.Service.RDInfraAgent.%3CDISPATCHER%3Ed__27%602.MoveNext()%20in%20S%3A%5Csrc%5CRDAgent%5Csrc%5CService%5CRDInfraAgent.cs%3Aline%200%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20Microsoft.RDInfra.RDAgent.Service.RDInfraAgent.%26lt%3B%3CINITIALIZECALLBACKS%3Eb__26_1%26gt%3Bd.MoveNext()%20in%20S%3A%5Csrc%5CRDAgent%5Csrc%5CService%5CRDInfraAgent.cs%3Aline%20137%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20Microsoft.RDInfra.Messaging.MessagingDispatcherMiddleware.%3CINVOKE%3Ed__5.MoveNext()%20in%20S%3A%5Csrc%5CShared%5CMicrosoft.RDInfra.Messaging%5Csrc%5CMicrosoft.RDInfra.Messaging%5CMessagingDispatcherMiddleware.cs%3Aline%2043%3C%2FINVOKE%3E%3C%2FINITIALIZECALLBACKS%3E%3C%2FDISPATCHER%3E%3C%2FORCHESTRATESESSIONASYNC%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

A WVD use case that my customer wants to implement is access to their development domains.  For various reasons, these domains are not exposed to Azure AD for remote access.  The concept of operations here is to authenticate to the WVD service with your production credentials that will give you access to one or more desktops in your assigned development environments.

 

I was able to successfully build a host pool and deploy session hosts and have them join the DEV domain but I'm running into an issue with accessing the desktop via WVD.  The problem seems to be that the WVD workstation in the development domain that is isolated from the production domains cannot resolve the user who has logged on to the WVD service with their production account. 

 

I understand that we are trying to do something a little different, but is there a way that we can tell the remote desktop services to skip whatever it is trying to pass with the production user and just present an authentication dialog so that the user can log on with their development domain credentials?  

 

[Window Title]
Remote Desktop

[Content]
An error occurred while accessing this resource. Retry the connection or contact your system administrator.

[^] Hide details [OK]

[Expanded Information]
Error code: 0x3000047
Extended error code: 0x0
Timestamp (UTC): 2021-01-05T15:41:17.638Z
Activity ID: 4d6555d3-0616-4df4-9746-9b5da7b70000

 

 

Some errors and warnings from the Remote Desktop Services log:

 

Log Name: RemoteDesktopServices
Source: Microsoft.RDInfra.RDAgent.Service.RDInfraAgent
Date: 1/5/2021 4:11:20 PM
Event ID: 0
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: DEVWVD1.DEV.Domain
Description:
OrchestrateSessionAsync failed for user '≤upn@production.domain≥' status=O_ERROR_NO_SUCH_MEMBER ex=Microsoft.RDInfra.RDAgent.Service.AddUserToLocalGroupAdErrorNoSuchMemberException: Could not resolve UPN from SID ---> System.ComponentModel.Win32Exception: No mapping between account names and security IDs was done
at Microsoft.RDInfra.Shared.Common.TaskUtilities.<CallNativeFuncWithTimeout>d__2`1.MoveNext() in S:\src\Shared\Common\src\TaskUtilities.cs:line 124
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.RDInfra.RDAgent.Service.UserSecurity.<GetUpnFromSidImplAsync>d__13.MoveNext() in S:\src\RDAgent\src\Service\UserSecurity.cs:line 217
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.RDInfra.RDAgent.Service.Services.NativeOrchestrationService.<AddUserToLocalGroupAndResolveSidAsync>d__10.MoveNext() in S:\src\RDAgent\src\Service\Services\NativeOrchestrationService.cs:line 163
--- End of inner exception stack trace ---
at Microsoft.RDInfra.RDAgent.Service.Services.AgentOrchestrationService.<OrchestrateSessionAsync>d__32.MoveNext() in S:\src\RDAgent\src\Service\Services\AgentOrchestrationService.cs:line 436
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.RDInfra.RDAgent.Service.RDInfraAgent.<OrchestrateSessionAsync>d__39.MoveNext() in S:\src\RDAgent\src\Service\RDInfraAgent.cs:line 506

 

 

Log Name: RemoteDesktopServices
Source: Microsoft.RDInfra.Messaging.MessagingDispatcherMiddleware
Date: 1/5/2021 4:11:20 PM
Event ID: 0
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: DEVWVD1.DEV.Domain
Description:
MessagingDispatcherMiddleware Exception=Microsoft.RDInfra.Shared.Common.RestError.RestException: Could not resolve UPN from SID ---> Microsoft.RDInfra.Shared.Common.RestError.InnerRestException: Could not resolve UPN from SID ---> Microsoft.RDInfra.Shared.Common.RestError.InnerRestException: No mapping between account names and security IDs was done
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Microsoft.RDInfra.RDAgent.Service.RDInfraAgent.<OrchestrateSessionAsync>d__39.MoveNext() in S:\src\RDAgent\src\Service\RDInfraAgent.cs:line 548
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.RDInfra.RDAgent.Service.RDInfraAgent.<Dispatcher>d__27`2.MoveNext() in S:\src\RDAgent\src\Service\RDInfraAgent.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.RDInfra.RDAgent.Service.RDInfraAgent.<<InitializeCallbacks>b__26_1>d.MoveNext() in S:\src\RDAgent\src\Service\RDInfraAgent.cs:line 137
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.RDInfra.Messaging.MessagingDispatcherMiddleware.<Invoke>d__5.MoveNext() in S:\src\Shared\Microsoft.RDInfra.Messaging\src\Microsoft.RDInfra.Messaging\MessagingDispatcherMiddleware.cs:line 43

0 Replies