Home

failed to join to the domain

%3CLINGO-SUB%20id%3D%22lingo-sub-394471%22%20slang%3D%22en-US%22%3Efailed%20to%20join%20to%20the%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-394471%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%20All%3C%2FP%3E%3CP%3Ewhen%20running%20a%20deployment%20i%20received%20the%20flowing%20error%20even%20after%20enabling%20AD%20service%20endpoint.%3C%2FP%3E%3CP%3Eshould%20the%20vnet%20have%20a%20vpn%20connection%20to%20on%20premise%20DC%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22fxc-copyablelabel-temp-element%22%3E%7B%22code%22%3A%22DeploymentFailed%22%2C%22message%22%3A%22At%20least%20one%20resource%20deployment%20operation%20failed.%20Please%20list%20deployment%20operations%20for%20details.%20Please%20see%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Farm-debug%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Farm-debug%3C%2FA%3E%20for%20usage%20details.%22%2C%22details%22%3A%5B%7B%22code%22%3A%22Conflict%22%2C%22message%22%3A%22%7B%5Cr%5Cn%20%5C%22status%5C%22%3A%20%5C%22Failed%5C%22%2C%5Cr%5Cn%20%5C%22error%5C%22%3A%20%7B%5Cr%5Cn%20%5C%22code%5C%22%3A%20%5C%22ResourceDeploymentFailure%5C%22%2C%5Cr%5Cn%20%5C%22message%5C%22%3A%20%5C%22The%20resource%20operation%20completed%20with%20terminal%20provisioning%20state%20'Failed'.%5C%22%2C%5Cr%5Cn%20%5C%22details%5C%22%3A%20%5B%5Cr%5Cn%20%7B%5Cr%5Cn%20%5C%22code%5C%22%3A%20%5C%22VMExtensionProvisioningError%5C%22%2C%5Cr%5Cn%20%5C%22message%5C%22%3A%20%5C%22VM%20has%20reported%20a%20failure%20when%20processing%20extension%20'joindomain'.%20Error%20message%3A%20%5C%5C%5C%22Exception(s)%20occured%20while%20joining%20Domain%20'ourdomain.com'%5C%5C%5C%22.%5C%22%5Cr%5Cn%20%7D%5Cr%5Cn%20%5D%5Cr%5Cn%20%7D%5Cr%5Cn%7D%22%7D%5D%7D%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-476081%22%20slang%3D%22en-US%22%3ERe%3A%20failed%20to%20join%20to%20the%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-476081%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3BI%20need%20information%20on%20this%20also%20!!!%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F313233%22%20target%3D%22_blank%22%3E%40saarc%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-481397%22%20slang%3D%22en-US%22%3ERe%3A%20failed%20to%20join%20to%20the%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-481397%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F313233%22%20target%3D%22_blank%22%3E%40saarc%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F322816%22%20target%3D%22_blank%22%3E%40tommy_barnes%3C%2FA%3E%26nbsp%3B%3A%20Yes%2C%20the%20virtual%20machine%20needs%20to%20domain-join%20to%20an%20Active%20Directory%20that%20is%20synchronized%20with%20Azure%20AD.%20This%20is%20so%20the%20service%20can%20resolve%20the%20%22on-prem%22%20user%20when%20connecting%20them%20to%20a%20session%20on%20the%20VM.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOne%20alternative%20to%20a%20VPN%20is%20using%20Azure%20AD%20Domain%20Services%2C%20since%20the%20users%20created%20in%20Azure%20AD%20Domain%20Services%20also%20exist%20in%20Azure%20AD.%20This%20would%20satisfy%20that%20requirement.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-511666%22%20slang%3D%22en-US%22%3ERe%3A%20failed%20to%20join%20to%20the%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-511666%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305776%22%20target%3D%22_blank%22%3E%40christianmontoya%3C%2FA%3E%26nbsp%3BI%20am%20struggling%20with%20this%20too.%26nbsp%3B%20Trying%20to%20deploy%20WVD%20and%20getting%20same%20error%20message.%26nbsp%3B%20I%20have%20Azure%20AD%20only%20and%20Domain%20Services%20in%20Azure%20already.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-521219%22%20slang%3D%22en-US%22%3ERe%3A%20failed%20to%20join%20to%20the%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-521219%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239060%22%20target%3D%22_blank%22%3E%40Alberto%20Rodriguez%3C%2FA%3E%26nbsp%3B%3A%20If%20you%20are%20using%20Azure%20AD%20Domain%20Services%2C%20can%20you%20try%20providing%20credentials%20of%20a%20user%20in%20the%20%22AAD%20DC%20Administrators%22%20group%20for%20the%20credentials%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%2C%20adding%20my%20response%20to%20a%20different%20thread%2C%20for%20more%20visibility%3A%3C%2FP%3E%0A%3CP%3E%3CEM%3EDo%20you%20have%20access%20to%20those%20VMs%3F%20If%20you%20can%20RDP%20into%20them%2C%20please%20look%20at%20C%3A%5CPackages%20and%20navigate%20down%20to%20the%20JsonADDomainExtension%20folder%2C%20you%20should%20be%20able%20to%20find%20a%20%22status%22%20file%20(or%20equivalent).%20If%20you%20open%20it%20up%2C%20it%20will%20typically%20give%20you%20the%20reason%20that%20it%20errored%20out.%20Unfortunately%2C%20I%20do%20not%20have%20too%20many%20details%20at%20the%20moment%20because%20the%20documentation%20on%20the%20extension%20is%20fairly%20light.%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-548669%22%20slang%3D%22en-US%22%3ERe%3A%20failed%20to%20join%20to%20the%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-548669%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F313233%22%20target%3D%22_blank%22%3E%40saarc%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESame%20here%2C%20site-to-site%20connectivity%20is%20working%20fine.%26nbsp%3B%20Plenty%20of%20other%20VMs%20living%20in%20this%20subnet%20without%20issues%20contacting%20local%20AD.%26nbsp%3B%20Something%20is%20broken%20in%20the%20extension%20or%20deployment%20process.%26nbsp%3B%20I've%20tried%20dedicate%20service%20account%20and%20super%20users%20(Domain%20Admin%2C%20Enterprise%20Admin%2C%20etc.)%20no%20luck.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-571219%22%20slang%3D%22en-US%22%3ERe%3A%20failed%20to%20join%20to%20the%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-571219%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F338210%22%20target%3D%22_blank%22%3E%40ChristopherB2175%3C%2FA%3E%26nbsp%3B%3A%20If%20you%20go%20to%20these%20VMs%20after%20the%20domain%20join%20extension%20fails%20and%20you%20provide%20the%20same%20domain%20join%20credentials%20and%20the%20same%20%22domainToJoin%22%2C%20does%20it%20then%20join%20the%20domain%20correctly%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-576270%22%20slang%3D%22en-US%22%3ERe%3A%20failed%20to%20join%20to%20the%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-576270%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305776%22%20target%3D%22_blank%22%3E%40christianmontoya%3C%2FA%3E%26nbsp%3BI've%20come%20across%20the%20same%20error%20while%20evaluating%20WVD%20preview.%20When%20the%20error%20occurs%26nbsp%3B%20after%20the%20domain%20join%20extension%20fails%2C%20the%20VM%20instance%20are%20not%20accessible.%20Tried%20connecting%20to%20the%20VM's%20to%20resolve%20the%20domain%20issue%2C%20but%20it%20looks%20like%20the%20VM%20that%20is%20created%20does%20not%20have%20a%20Public%20IP%20address%20assigned.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20see%20the%20comment%20about%20%22%3CSPAN%3EOne%20alternative%20to%20a%20VPN%20is%20using%20Azure%20AD%20Domain%20Services%2C%20since%20the%20users%20created%20in%20Azure%20AD%20Domain%20Services%20also%20exist%20in%20Azure%20AD.%20This%20would%20satisfy%20that%20requirement%22.%20Is%20there%20some%20tutorial%20on%20how%20to%20set%20this%20up%20as%20part%20of%20following%20the%20the%20WVD%20tutorial%3F%20Looking%20for%20tutorial%20that%20will%20allow%20evaluation%20of%20WVD%20from%20scratch%2C%20no%20current%20use%20of%20Azure%20services.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-576521%22%20slang%3D%22en-US%22%3ERe%3A%20failed%20to%20join%20to%20the%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-576521%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F343315%22%20target%3D%22_blank%22%3E%40hankchi95%3C%2FA%3E%26nbsp%3B%3A%20to%20address%20your%20first%20question%2C%20that%20is%20correct%20in%20that%20the%20template%20does%20not%20create%20a%20Public%20IP%20address%20for%20the%20VMs%2C%20since%20all%20connections%20are%20completed%20using%20reverse%20connect.%20To%20connect%20to%20the%20VM%20through%20a%20public%20IP%20address%2C%20you'll%20first%20need%20to%20do%20this%20by%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECreating%20a%20public%20IP%20address%3C%2FLI%3E%0A%3CLI%3EAssigning%20it%20to%20the%20VM%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20address%20your%202nd%20question%20on%20%22if%20there's%20a%20tutorial%20to%20set%20up%20Azure%20AD%20Domain%20Services%22%2C%20here%20is%20the%20link%20to%20get%20started%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory-domain-services%2Factive-directory-ds-getting-started%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fazure%2Factive-directory-domain-services%2Factive-directory-ds-getting-started%3C%2FA%3E%26nbsp%3B.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-841253%22%20slang%3D%22en-US%22%3ERe%3A%20failed%20to%20join%20to%20the%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-841253%22%20slang%3D%22en-US%22%3E%3CP%3EWas%20there%20ever%20a%20final%20resolution%20to%20this.%20I'm%20in%20the%20same%20boat.%26nbsp%3B%3C%2FP%3E%3CP%3EOn-prem%20AD%20and%20I%20got%20AADDS%20working%20with%20password%20hash%20enabled.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20error%20says%20exceptions%20occurred%20during%20the%20joindomain.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EDo%20I%20still%20need%20a%20site%2Fpoint-to-site%20VPN%20to%20Azure%3F%26nbsp%3B%3CBR%20%2F%3EDC%20VM%20on%20Azure%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305776%22%20target%3D%22_blank%22%3E%40christianmontoya%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F343315%22%20target%3D%22_blank%22%3E%40hankchi95%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-852397%22%20slang%3D%22en-US%22%3ERe%3A%20failed%20to%20join%20to%20the%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-852397%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F331527%22%20target%3D%22_blank%22%3E%40Bionicjoe%3C%2FA%3E%26nbsp%3B%3A%20It%20depends%20on%20which%20domain%20you%20are%20attempting%20to%20join.%20If%20you%20are%20attempting%20to%20join%20the%20%22on-prem%22%20AD%2C%20then%20yes%2C%20there%20would%20need%20to%20be%20some%20line%20of%20site%20back%20to%20that%20DC.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJust%20for%20full%20clarity%2C%20Azure%20AD%20DS%20stands%20up%20a%20brand%20new%20domain%20controller%20that%20is%20independent%20of%20any%20possible%20existing%20ones%2C%20just%20that%20it%20has%20the%20logic%20to%20create%20users%20based%20from%20your%20Azure%20Active%20Directory.%3C%2FP%3E%3C%2FLINGO-BODY%3E
saarc
New Contributor

hi All

when running a deployment i received the flowing error even after enabling AD service endpoint.

should the vnet have a vpn connection to on premise DC? 

 

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"VMExtensionProvisioningError\",\r\n \"message\": \"VM has reported a failure when processing extension 'joindomain'. Error message: \\\"Exception(s) occured while joining Domain 'ourdomain.com'\\\".\"\r\n }\r\n ]\r\n }\r\n}"}]}
10 Replies

 I need information on this also !!!@saarc 

@saarc @tommy_barnes : Yes, the virtual machine needs to domain-join to an Active Directory that is synchronized with Azure AD. This is so the service can resolve the "on-prem" user when connecting them to a session on the VM.

 

One alternative to a VPN is using Azure AD Domain Services, since the users created in Azure AD Domain Services also exist in Azure AD. This would satisfy that requirement.

@christianmontoya I am struggling with this too.  Trying to deploy WVD and getting same error message.  I have Azure AD only and Domain Services in Azure already.

@Alberto Rodriguez : If you are using Azure AD Domain Services, can you try providing credentials of a user in the "AAD DC Administrators" group for the credentials?

 

Also, adding my response to a different thread, for more visibility:

Do you have access to those VMs? If you can RDP into them, please look at C:\Packages and navigate down to the JsonADDomainExtension folder, you should be able to find a "status" file (or equivalent). If you open it up, it will typically give you the reason that it errored out. Unfortunately, I do not have too many details at the moment because the documentation on the extension is fairly light.

@saarc 

 

Same here, site-to-site connectivity is working fine.  Plenty of other VMs living in this subnet without issues contacting local AD.  Something is broken in the extension or deployment process.  I've tried dedicate service account and super users (Domain Admin, Enterprise Admin, etc.) no luck.

 

 

@ChristopherB2175 : If you go to these VMs after the domain join extension fails and you provide the same domain join credentials and the same "domainToJoin", does it then join the domain correctly?

@christianmontoya I've come across the same error while evaluating WVD preview. When the error occurs  after the domain join extension fails, the VM instance are not accessible. Tried connecting to the VM's to resolve the domain issue, but it looks like the VM that is created does not have a Public IP address assigned. 

 

I see the comment about "One alternative to a VPN is using Azure AD Domain Services, since the users created in Azure AD Domain Services also exist in Azure AD. This would satisfy that requirement". Is there some tutorial on how to set this up as part of following the the WVD tutorial? Looking for tutorial that will allow evaluation of WVD from scratch, no current use of Azure services.

@hankchi95 : to address your first question, that is correct in that the template does not create a Public IP address for the VMs, since all connections are completed using reverse connect. To connect to the VM through a public IP address, you'll first need to do this by:

  1. Creating a public IP address
  2. Assigning it to the VM

 

To address your 2nd question on "if there's a tutorial to set up Azure AD Domain Services", here is the link to get started: https://docs.microsoft.com/azure/active-directory-domain-services/active-directory-ds-getting-starte... . 

Was there ever a final resolution to this. I'm in the same boat. 

On-prem AD and I got AADDS working with password hash enabled. 

 

My error says exceptions occurred during the joindomain. 

Do I still need a site/point-to-site VPN to Azure? 
DC VM on Azure? 

@christianmontoya 

@hankchi95 

@Bionicjoe : It depends on which domain you are attempting to join. If you are attempting to join the "on-prem" AD, then yes, there would need to be some line of site back to that DC.

 

Just for full clarity, Azure AD DS stands up a brand new domain controller that is independent of any possible existing ones, just that it has the logic to create users based from your Azure Active Directory.

Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
36 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies