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?
Best Answer
It seems to take some time for changes in Azure AD to take effect. I tried connecting to the domain with a newly created Azure account. After waiting a while, I tried the same username and password again and it worked. I also noticed that it took a while for a newly created group on the Azure AD to be available on the Azure VM (after the Azure VM had been successfully added to the domain).