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
79 stars 15 forks source link

Domain Join Windows VMs to the same domain controller where the computer account was created #55

Open cbossie opened 1 month ago

cbossie commented 1 month ago

Is your feature request related to a problem? Please describe. 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.

Describe the solution you'd like In the command that is used to join the domain on the Windows VM, "Add-Computer", specify the "-Server" switch, and supply the original domain controller.

Describe alternatives you've considered The alternative to this is to poll the domain until the computer account is available. This is how the system works, but will time out after 30 minutes.

Additional context This comes from an actual use case I have seen, in which the spin up of VMs in the environment can be delayed by several minutes because of this phenomenon.

ravipranjal commented 4 weeks ago

Hi @cbossie ! Thank you for creating the enhancement request. The service team will look into this and get back.