10

I am trying to configure SP farm, in Azure, following steps mention in this article - https://technet.microsoft.com/en-us/library/mt723354(v=office.16).aspx But after creating Sql VM('sqlVM' ), I am not able to add this to the AD domain.

Below error message is displayed while trying to connect to Domain.

PS C:\Users\anuvya> Add-Computer -DomainName "corp.contoso.com"

cmdlet Add-Computer at command pipeline position 1 Supply values for the following parameters: Add-Computer : Computer 'sqlVM' failed to join domain 'corp.contoso.com' from its current workgroup 'WORKGROUP' with following error message: The specified domain either does not exist or could not be contacted. At line:1 char:1 + Add-Computer -DomainName "corp.contoso.com" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (sqlVM:String) [Add-Computer], InvalidOperationException + FullyQualifiedErrorId : FailToJoinDomainFromWorkgroup,Microsoft.PowerShell.Commands.AddComputerComman

Any inputs will be appreciated.

Thanks,

====================

12

Agree with @garbrad. According to the error message, the SQL VM can't locate the DC.

Please check the DNS settings on the SQL VM, if it is not the private IP address of your DC VM, then you need to check the DNS settings of VNET. VNET uses Azure provided name resolution as the default settings. To change it, please refer to the screenshot below:

enter image description here

If the DNS settings are correct, then you need to check if the DNS records are created on the DC VM properly.

Also, here is a good article about How Domain Controllers are Located in Windows, which is helpful for you to understand the whole process.

11

Generally when domain join says "the domain doesn't exist or cannot be contacted" it's because the VM isn't configured to use the AD DC as its DNS server. Check if the DNS server on the VNET matches the IP of the DC and that the VM is using that IP (ipconfig /all). If the DNS server was set on the vnet after the VM was recreated then the vm either needs a reboot or an ipconfig /refresh

10

You would need to have restart flag at the end.

Also this command uses the local user account to add to the domain.

Add-Computer -DomainName "corp.contoso.com" -restart

IF the local user account cannot add the PC to the domain you can use:

Add-Computer -ComputerName "Server01" -LocalCredential "Server01\Admin01" -DomainName "Domain02" -Credential Domain02\Admin02 -Restart -Force

It will prompt your for a password

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.