Bug found in Azure Pipelines Agent - DevTest Labs
To reproduce, create a new Windows 10 VM in DevTest Labs with an ampersand (&) in the password.
Add the Azure Pipelines Agent to configure an agent in Azure DevOps.
Enter details in the artifact configuration pane, and specify the VM user/password for logon. Use the saved secret option.
Notice that the pipeline agent fails with the following message:
Testing agent connection.
2019-01-24 14:36:46Z: Settings Saved.
ERROR: Invalid windows credentials entered. Try again or ctrl-c to quit
Please create a support ticket with us to report bugs for better tracking.
Was this issue resolved for you?
If not, can you please create a ticket here: https://ms.portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview
Ryan Hill commented
(Feb 22nd, 2020): Confirming this is still a bug with certain special characters in the password.
Powershell command with an admin account with all the necessary privileges returns "Invalid windows credentials entered". The password in question didn't have an ampersand, but did have a % and ; character.
Resolution: Once the password was changed to be purely alpha-numeric, the error was overcome.