aws / res

Research and Engineering Studio (RES) is an AWS supported open source product that enables IT administrators to provide an easy-to-use web portal for scientists and engineers to run technical computing workloads on AWS.
https://github.com/aws/res
Apache License 2.0
82 stars 17 forks source link

Windows VM domain join process uses the DC where the Computer Account was Created #56

Open cbossie opened 3 months ago

cbossie commented 3 months ago

What does this PR do?

When you have multiple domain controllers in an AD domain, potentially objects can take a while to synchronize. In the case of RES, when the creation of a Windows Virtual machine is created, a computer account is created on the domain (and the DC is recorded in DynamoDB), but when the VM is domain joined, it is not guaranteed to join using the same domain controller. This can cause delays while waiting for the computer account to become available on the domain controller.

In the PowerShell cmdlet that is used to join the domain on the Windows VM, "Add-Computer", this specifies the "-Server" switch, and supplies the original domain controller as the argument.

Please add links to any issues, RFCs or other items that are relevant to this PR. Domain Join Windows VMs to the same domain controller where the computer account was created

How was this PR tested?

Please describe any testing performed.

Checklist

License

Please review the guidelines for contributing and Pull Request Instructions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.te this contribution, under the terms of your choice.