Connect Azure RDP, "The logon attempt failed"
Asked Answered
T

10

7

I've just created two Windows VM's in Azure, one 2012 Datacenter and a 2008 R2 SP1 and i am not able to connect via remote desktop to either of them. Both machines are running under the same cloud service and the RDP ports are mapped to two distinct public ports. Every time i try to connect i get the error message "The logon attempt failed".

Using NMAP in a Linux VM i also have there, i was able to check that the port 3389 is OPEN in both machines. Also, the public RDP ports respond correctly (e.g. are open).

I tried to enter using two different Windows 7 client machines, also with no lock. MSTSC version is 6.3.9600.16415, in both machines. I've used both the .rdp file, downloaded from the "Connect" option in the windows azure dashboard and a brand new RDP connection created by me - same result.

I've tried also to upgrade the VM size from small (1 core, 1.5 GBRam) to medium (2 cores, 3.6 GBRam), restart, setup a new clean windows VM, with different credentials... nothing changed, same result.

The really odd thing is that i was able to connect, after several failed attempts, to one of the VM's, the 2012 one, but only one time - after that, no luck, always "The login attempt failed".

Triciatrick answered 1/4, 2014 at 0:27 Comment(1)
Additional info: I was able to logon via RDP just now, but it failed to connect again just after. This confirms that the credentials are 100% OK. Its still failinf to logon, and i have made no changes whatsoever, so i don't know how i was able to RDP that one time...Triciatrick
T
2

I have no idea why, but the solution is simple (works every time, at least for me): I was copy-pasting the passwords from a KeePass, as i use this to generate and maintain the huge amount of credentials i use one way or another.

SOLUTION: instead of copy-paste, type the password

The drawback is that i have to use simpler passwords for this access

Triciatrick answered 6/6, 2014 at 21:52 Comment(0)
N
8

What worked for me was changing the RDP login screen to use a different account, and use the "local account" which is the name of the VM and the username, like so:

TheVMName\TheAdminUsername

Where TheVMName is the name of your VM, and TheAdminUserName is the admin user name you used for that machine. I was able to find/confirm the latter on the Reset Password screen under the SUPPORT + TROUBLESHOOTING section on the left.

Nomadic answered 25/6, 2017 at 15:58 Comment(0)
D
4

Since Windows 10, you need the domain is automatically set to MicrosoftAccount followed by your email address as username. MicrosoftAccount\[email protected]

Instead, the username is like UserName.com\My. This worked for me.

Debar answered 30/1, 2016 at 9:21 Comment(0)
T
2

I have no idea why, but the solution is simple (works every time, at least for me): I was copy-pasting the passwords from a KeePass, as i use this to generate and maintain the huge amount of credentials i use one way or another.

SOLUTION: instead of copy-paste, type the password

The drawback is that i have to use simpler passwords for this access

Triciatrick answered 6/6, 2014 at 21:52 Comment(0)
I
2

I've tried to login and failed using windows 8.1 Pro to an azure vm. The message I got repeatedly was "Login Attempt Failed". So my specific problem wasn't that i couldn't connect to the machine but that it couldn't authenticate...even though my my Administrator username and password were correct.

The way I logged into the machine was to provide the host name then the username:

Host\Username

My Azure account did not have a domain controller setup.

It was simply looking for it's local host machine name.

This link helped: https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-log-on-windows-server/

Initiation answered 21/2, 2016 at 6:21 Comment(0)
N
2

May be following can help:

  1. In this screen please select the option "Use a different account":

enter image description here

  1. Further type in "Domain\Username"

enter image description here

TIPS:

- The "Domain" can be found on the "Overview" page for your VM in Azure. It's appearing as: Public IP Address: [SomeIPValue].

- If you do not remember or have "Username" & "Password".The local admin "Username" & "Password" can be set to get access under: Azure -> Your VM page -> Support + Troubleshooting -> Reset Password.

Newsprint answered 22/9, 2019 at 12:3 Comment(0)
C
2

I've had a similar problem and it turned out that my password wasn't complex enough. It was really confusing that Azure Portal even let me create a VM with such a password.

It was resolved by going to the VM page -> Support + Troubleshooting -> Reset Password and specifying a more complex password (both case letters, numbers, special characters and doesn't contain username).

Thanks to Jagjit Singh whose answer pointed me in the right direction. Hope this helps somebody.

Coenesthesia answered 22/4, 2020 at 12:54 Comment(0)
C
2

I found that, while creating VM, if we put password without any special characters, then it still accepts the password but the login to the VM will fail using that password. It gives an error "The logon attempt failed".

It may work after the "Reset password" option but sometimes it shows "Failed to reset password".

So better to put a proper password.

Caramel answered 27/9, 2021 at 14:49 Comment(1)
Same thing here, created VM with a simple password via Azure portal and was unable to connect via RDP. Resetting to proper password worked!Palmerpalmerston
W
2

Issue : "The logon attempt failed". ( Windows azure Machine) enter image description here

I have tried multiple option didn't help, hence updating this as correct answer , it worked for me .

Solution :- While creating the password/updating for windows azure vm create the password as recommended by Azure with prescribed. Main issue with password .

Steps as below for Issue fix.

  1. Once logged in Azure portal, click on VM windows machine , go to (Support and Troubleshoot) From Azure Portal

  2. update the password as recommended by Azure as below (Password must have 3 of the following: 1 lower case character, 1 upper case character, 1 number, and 1 special character.) Password :- updated as 13 char which include 1 Capital, Lower Case and Special ,1 number . Password:- Azureuser@123

enter image description here

  1. After updating the password as Microsoft Suggested it worked for me and able to connect windows machine as below enter image description here

  2. Able to connect as below

enter image description here

Try about method it should work, if issue please suggest.

Workmanship answered 16/1, 2022 at 2:34 Comment(0)
E
1

I know this question is too old, answering for new visitors.

Easy solution would be, you can try to add new user or reset the password from Azure Portal

This will add the user if it does not exist, and you can try logging in with new account.
enter image description here

Esophagitis answered 22/7, 2021 at 14:57 Comment(0)
M
0

We need to have strong password when we create user account for VM ..

It was annoying when I encountered this.I was only succeed when I reset my password step. Issue with portal allows is to create week password while creating VM and validation rules are different while RDP to using week password.Same validation rules applies when we re-setting password.

Maurilla answered 4/1, 2022 at 17:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.