When trying to connect an Azure VM to Azure AD DS, I get the message below, even though I have logged in successfully with the username/password elsewhere, and the account used to connect to the domain is a member of "AAD DC Administrators":
"The user name or password is incorrect."
In Event Viewer under "Windows Log > System" I get the corresponding error message:
"The machine ***** attempted to join the domain *******.onmicrosoft.com but failed. The error code was 1326."
(VM and domain removed)
Event ID: 4097
NetStatusCode: 1326
Note: When I do an nslookup for *******.onmicrosoft.com on the Azure VM it is able to resolve the DNS.
Any suggestions on what I need to do to join the domain?