aws / aws/res

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

Open
#55 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
115
Forks
35
PR merge metrics
No merged PRs in 30d

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.