Home

Internal error occurred when connecting to RD

%3CLINGO-SUB%20id%3D%22lingo-sub-828934%22%20slang%3D%22en-US%22%3EInternal%20error%20occurred%20when%20connecting%20to%20RD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-828934%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20set%20up%20a%20WVD%20tenant%20but%20have%20not%20been%20able%20to%20logon%20to%20the%20VM.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20connecting%20we%20get%20the%20error%20%22Internal%20error%20occurred%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20see%20the%20output%20of%20the%20get-rdsdiagnosticsactivies%20below%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%20C%3A%5CWINDOWS%5Csystem32%26gt%3B%20Get-RdsDiagnosticActivities%20-TenantName%20%24myTenantName%20-UserName%20%22UPN%40UPN.com%22%20-Detailed%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EActivityId%20%3A%20aa119e5d-cbcf-4a96-a297-bc16f4cb0000%3CBR%20%2F%3EActivityType%20%3A%20Connection%3CBR%20%2F%3EStartTime%20%3A%2029%2F08%2F2019%2014%3A03%3A45%3CBR%20%2F%3EEndTime%20%3A%2029%2F08%2F2019%2014%3A03%3A51%3CBR%20%2F%3EUserName%20%3A%20UPN%40UPN.com%3CBR%20%2F%3ERoleInstances%20%3A%20Workstationname%3Bmrs-eus2r1c001-rdgateway-prod-staging%3A%3ARD0004FFA4C4AF%3Bmrs-eus2r1c001-rdbroker-prod-staging%3A%3ARD0003FF8BA99A%3B%E2%89%A4WVDNDI-0%3CBR%20%2F%3E.ndi.nl%E2%89%A5%3CBR%20%2F%3EOutcome%20%3A%20Failure%3CBR%20%2F%3EStatus%20%3A%20Completed%3CBR%20%2F%3EDetails%20%3A%20%7B%5BClientOS%2C%20WINDOWS%3B%2010.0.18362%5D%2C%20%5BClientVersion%2C%201.2.246.18950%5D%2C%20%5BClientType%2C%20MSRDC%5D%2C%20%5BPredecessorConnectionId%2C%20%5D...%7D%3CBR%20%2F%3ELastHeartbeatTime%20%3A%2029%2F08%2F2019%2014%3A05%3A23%3CBR%20%2F%3ECheckpoints%20%3A%20%7BLoadBalancedNewConnection%2C%20TransportConnecting%2C%20TransportConnected%2C%20RdpStackDisconnect%7D%3CBR%20%2F%3EErrors%20%3A%20%7BMicrosoft.RDInfra.Diagnostics.Common.DiagnosticsErrorInfo%7D%3C%2FP%3E%3CP%3EActivityId%20%3A%20992eed1a-b079-4c2b-91e5-7f0eecedb7a6%3CBR%20%2F%3EActivityType%20%3A%20Feed%3CBR%20%2F%3EStartTime%20%3A%2029%2F08%2F2019%2014%3A03%3A36%3CBR%20%2F%3EEndTime%20%3A%2029%2F08%2F2019%2014%3A03%3A36%3CBR%20%2F%3EUserName%20%3A%20UPN%40UPN.com%3CBR%20%2F%3ERoleInstances%20%3A%20rdwebclient%3Bmrs-eus2r1c001-rdbroker-prod-staging%3A%3ARD0003FF8BA99A%3CBR%20%2F%3EOutcome%20%3A%20Success%3CBR%20%2F%3EStatus%20%3A%20Completed%3CBR%20%2F%3EDetails%20%3A%20%7B%5BClientOS%2C%20Win32%20Chrome%2076.0.3809.132%5D%2C%20%5BClientVersion%2C%201.0.18.5%5D%2C%20%5BClientType%2C%20HTML%5D%2C%20%5BClientIPAddress%2C%20%5D...%7D%3CBR%20%2F%3ELastHeartbeatTime%20%3A%2029%2F08%2F2019%2014%3A03%3A36%3CBR%20%2F%3ECheckpoints%20%3A%20%7B%7D%3CBR%20%2F%3EErrors%20%3A%20%7B%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHopefully%20somebody%20will%20be%20able%20to%20guide%20us%20in%20the%20right%20direction%20on%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-835970%22%20slang%3D%22en-US%22%3ERe%3A%20Internal%20error%20occurred%20when%20connecting%20to%20RD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-835970%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F269205%22%20target%3D%22_blank%22%3E%40Hermanbonnie%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20you%20exec%20this%20cmd%20%3F%3C%2FP%3E%3CP%3E%3CSPAN%3EGet-RdsDiagnosticActivities%20-TenantName%20%24myTenantName%20-UserName%20%22UPN%40UPN.com%22%20-Detailed%26nbsp%3B%7C%20Select-Object%20Errors%20-ExpandProperty%20errors%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThis%20will%20give%20the%20details%20from%20the%20errors%20in%20this%20case.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-836097%22%20slang%3D%22en-US%22%3ERe%3A%20Internal%20error%20occurred%20when%20connecting%20to%20RD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-836097%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F298270%22%20target%3D%22_blank%22%3E%40michawets%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20see%20the%20result%20below%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%20C%3A%5CWINDOWS%5Csystem32%26gt%3B%20Get-RdsDiagnosticActivities%20-TenantName%20%24myTenantName%20-UserName%20%22UPN%40DOMAIN.COM%22%20-Detailed%20%7C%20Select-Object%20Errors%20-ExpandProperty%20errors%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EErrors%20%3A%20%7BMicrosoft.RDInfra.Diagnostics.Common.DiagnosticsErrorInfo%7D%3CBR%20%2F%3EErrorSource%20%3A%20RDAgent%3CBR%20%2F%3EErrorOperation%20%3A%20AddUserToRDUGroup%3CBR%20%2F%3EErrorCode%20%3A%20-2147467259%3CBR%20%2F%3EErrorCodeSymbolic%20%3A%20ConnectionFailedAdErrorNoSuchMember%3CBR%20%2F%3EErrorMessage%20%3A%20Failed%20to%20add%20user%20%3D%20%E2%89%A4UPN%40DOMAIN.COM%E2%89%A5%20to%20group%20%3D%20Remote%20Desktop%20Users.%20Reason%3A%20Win32.ERROR_NO_SUCH_MEMBER%3CBR%20%2F%3EErrorInternal%20%3A%20False%3CBR%20%2F%3EReportedBy%20%3A%20RDGateway%3CBR%20%2F%3ETime%20%3A%2004%2F09%2F2019%2010%3A27%3A45%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-836115%22%20slang%3D%22en-US%22%3ERe%3A%20Internal%20error%20occurred%20when%20connecting%20to%20RD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-836115%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F269205%22%20target%3D%22_blank%22%3E%40Hermanbonnie%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJust%20a%20small%20question%3A%20is%20the%20user%20available%20in%20both%20Windows%20AD%20%26amp%3B%20Azure%20AD%3F%3C%2FP%3E%3CP%3EIs%20it%20in%20both%20cases%20the%20same%20UPN%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20perhaps%20this%20could%20be%20the%20issue%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Ftroubleshoot-client-connection%23error-o_add_user_to_group_failed--failed-to-add-user--username-to-group--remote-desktop-users-reason-win32error_no_such_member%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Ftroubleshoot-client-connection%23error-o_add_user_to_group_failed--failed-to-add-user--username-to-group--remote-desktop-users-reason-win32error_no_such_member%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-838173%22%20slang%3D%22en-US%22%3ERe%3A%20Internal%20error%20occurred%20when%20connecting%20to%20RD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-838173%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F298270%22%20target%3D%22_blank%22%3E%40michawets%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20mandatory%20to%20join%20the%20Virtual%20desktop%20to%20a%20Windows%20active%20directory%20domain%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20under%20the%20impression%20that%20the%20setup%20of%20virtual%20desktop%20joins%20the%20VD%20to%20Azure%20AD%20and%20users%20in%20that%20Azure%20AD%20can%20logon%20to%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20no%20mention%20of%20an%20on-prem%20AD%20requirement%20in%20the%20documentation.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-838354%22%20slang%3D%22en-US%22%3ERe%3A%20Internal%20error%20occurred%20when%20connecting%20to%20RD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-838354%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F269205%22%20target%3D%22_blank%22%3E%40Hermanbonnie%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20I'm%20afraid%20your%20Sessionhost(s)%20needs%20to%20be%20in%20a%20Windows%20AD%2C%20which%20syncs%20with%20Azure%20AD%3C%2FP%3E%3CP%3EThis%20can%20be%3C%2FP%3E%3CUL%3E%3CLI%3Ea%20Azure%20VM%20with%20Windows%20AD%20role%20installed%2C%20and%20Azure%20AD%20Connect%3C%2FLI%3E%3CLI%3EAzure%20AD%20DS%26nbsp%3B%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20is%20mentioned%20in%20the%20Requirements%20from%20WVD%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Foverview%23requirements%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Foverview%23requirements%3C%2FA%3E%3C%2FP%3E%3CP%3EYour%20infrastructure%20needs%20the%20following%20things%20to%20support%20Windows%20Virtual%20Desktop%3A%3C%2FP%3E%3CUL%3E%3CLI%3EAn%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Factive-directory%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Active%20Directory%3C%2FA%3E%3C%2FLI%3E%3CLI%3EA%20Windows%20Server%20Active%20Directory%20in%20sync%20with%20Azure%20Active%20Directory.%20This%20can%20be%20enabled%20through%3A%3CUL%3E%3CLI%3EAzure%20AD%20Connect%3C%2FLI%3E%3CLI%3EAzure%20AD%20Domain%20Services%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3EAn%20Azure%20subscription%2C%20containing%20a%20virtual%20network%20that%20either%20contains%20or%20is%20connected%20to%20the%20Windows%20Server%20Active%20Directory%3C%2FLI%3E%3C%2FUL%3E%3CP%3EThe%20Azure%20virtual%20machines%20you%20create%20for%20Windows%20Virtual%20Desktop%20must%20be%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Factive-directory-domain-services%2Factive-directory-ds-comparison%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EStandard%20domain-joined%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eor%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Factive-directory%2Fdevices%2Fhybrid-azuread-join-plan%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHybrid%20AD-joined%3C%2FA%3E.%20Virtual%20machines%20can't%20be%20Azure%20AD-joined.%3C%2FLI%3E%3CLI%3ERunning%20one%20of%20the%20following%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Foverview%23supported-virtual-machine-os-images%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Esupported%20OS%20images%3C%2FA%3E.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E
Hermanbonnie
New Contributor

We have set up a WVD tenant but have not been able to logon to the VM.

 

When connecting we get the error "Internal error occurred".

 

Please see the output of the get-rdsdiagnosticsactivies below:

 

PS C:\WINDOWS\system32> Get-RdsDiagnosticActivities -TenantName $myTenantName -UserName "UPN@UPN.com" -Detailed


ActivityId : aa119e5d-cbcf-4a96-a297-bc16f4cb0000
ActivityType : Connection
StartTime : 29/08/2019 14:03:45
EndTime : 29/08/2019 14:03:51
UserName : UPN@UPN.com
RoleInstances : Workstationname;mrs-eus2r1c001-rdgateway-prod-staging::RD0004FFA4C4AF;mrs-eus2r1c001-rdbroker-prod-staging::RD0003FF8BA99A;≤WVDNDI-0
.ndi.nl≥
Outcome : Failure
Status : Completed
Details : {[ClientOS, WINDOWS; 10.0.18362], [ClientVersion, 1.2.246.18950], [ClientType, MSRDC], [PredecessorConnectionId, ]...}
LastHeartbeatTime : 29/08/2019 14:05:23
Checkpoints : {LoadBalancedNewConnection, TransportConnecting, TransportConnected, RdpStackDisconnect}
Errors : {Microsoft.RDInfra.Diagnostics.Common.DiagnosticsErrorInfo}

ActivityId : 992eed1a-b079-4c2b-91e5-7f0eecedb7a6
ActivityType : Feed
StartTime : 29/08/2019 14:03:36
EndTime : 29/08/2019 14:03:36
UserName : UPN@UPN.com
RoleInstances : rdwebclient;mrs-eus2r1c001-rdbroker-prod-staging::RD0003FF8BA99A
Outcome : Success
Status : Completed
Details : {[ClientOS, Win32 Chrome 76.0.3809.132], [ClientVersion, 1.0.18.5], [ClientType, HTML], [ClientIPAddress, ]...}
LastHeartbeatTime : 29/08/2019 14:03:36
Checkpoints : {}
Errors : {}

 

Hopefully somebody will be able to guide us in the right direction on this.

5 Replies

Hi @Hermanbonnie ,

 

Could you exec this cmd ?

Get-RdsDiagnosticActivities -TenantName $myTenantName -UserName "UPN@UPN.com" -Detailed | Select-Object Errors -ExpandProperty errors

 

This will give the details from the errors in this case.

Hi @michawets ,

 

Please see the result below:

 

PS C:\WINDOWS\system32> Get-RdsDiagnosticActivities -TenantName $myTenantName -UserName "UPN@DOMAIN.COM" -Detailed | Select-Object Errors -ExpandProperty errors


Errors : {Microsoft.RDInfra.Diagnostics.Common.DiagnosticsErrorInfo}
ErrorSource : RDAgent
ErrorOperation : AddUserToRDUGroup
ErrorCode : -2147467259
ErrorCodeSymbolic : ConnectionFailedAdErrorNoSuchMember
ErrorMessage : Failed to add user = ≤UPN@DOMAIN.COM≥ to group = Remote Desktop Users. Reason: Win32.ERROR_NO_SUCH_MEMBER
ErrorInternal : False
ReportedBy : RDGateway
Time : 04/09/2019 10:27:45

Hi @Hermanbonnie ,

 

Just a small question: is the user available in both Windows AD & Azure AD?

Is it in both cases the same UPN?

 

And perhaps this could be the issue:

https://docs.microsoft.com/en-us/azure/virtual-desktop/troubleshoot-client-connection#error-o_add_us...

 

Hi @michawets ,

 

Is it mandatory to join the Virtual desktop to a Windows active directory domain?

 

I was under the impression that the setup of virtual desktop joins the VD to Azure AD and users in that Azure AD can logon to it.

 

There is no mention of an on-prem AD requirement in the documentation.

Hi @Hermanbonnie ,

 

Yes, I'm afraid your Sessionhost(s) needs to be in a Windows AD, which syncs with Azure AD

This can be

  • a Azure VM with Windows AD role installed, and Azure AD Connect
  • Azure AD DS 

 

It is mentioned in the Requirements from WVD:

https://docs.microsoft.com/en-us/azure/virtual-desktop/overview#requirements

Your infrastructure needs the following things to support Windows Virtual Desktop:

  • An Azure Active Directory
  • A Windows Server Active Directory in sync with Azure Active Directory. This can be enabled through:
    • Azure AD Connect
    • Azure AD Domain Services
  • An Azure subscription, containing a virtual network that either contains or is connected to the Windows Server Active Directory

The Azure virtual machines you create for Windows Virtual Desktop must be:

Related Conversations
Extentions Synchronization
ChirmyRam in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
35 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
9 Replies