6

I was trying to deploy my web application to Microsoft Azure and as I enter my credentials for my Microsoft account, this error popped up and I'm unable to seek the solution to solve. However, I tried logging in through Microsoft Visual Studio itself and get the same error message as well

[Error In TextForm]

We could not add the account [myemail] user_interaction_required : One of two conditions was encountered: 1. The PromptBehavior.Never flag was passed, but the constraint could not be honored, because user interaction was required. 2. An error occurred during a silent web authentication that prevented the http authentication flow from completing in a short enough time frame

Error Description

May I know what details I need to check in order to solve the following error?

Thanks in advance.

hiboss
  • 317
  • 6
  • 15

4 Answers4

4

Try this:

  1. Remove the existing account from Visual Studio
  2. Close Visual Studio
  3. Open a developer command prompt
  4. Type devenv.exe /resetuserdata
  5. Restart Visual Studio
  6. Try and enter you credentials

Worked for me.

Stuart Hallows
  • 8,795
  • 5
  • 45
  • 57
  • got the same problem, buy it didn't help me – Guy Bertental Nov 07 '16 at 07:35
  • Helped me - but when restarting Visual Studio (step 5) I got some errors, I had to reinstall some packages (https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebEssentials20153 and https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebExtensionPack) – Isham Mohamed Nov 14 '17 at 04:45
  • the command has to be used in the following folder: \Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE> – Nils May 02 '19 at 09:33
  • This did not work for me, unfortunately. Also should be advised on just what all this does before trying it, maybe take a backup first - https://stackoverflow.com/questions/47823385/what-does-visual-studio-devenv-exe-resetuserdata-do-exactly – Bondolin May 17 '23 at 14:14
  • Nevermind, it must have taken some time to take effect. Still might be good to try a backup first, but thanks. – Bondolin May 17 '23 at 14:18
0

In my case it was because I recently left a company.
They had referenced my personal account for some reason in their Azure Active Directory and locked down the account.
I could determine I was still part of their directory from the azure portal, on the right after clicking on the user name their directory was here among others.
Just contacted then to remove the reference to my account which looks like this if your email is johndoe@hotmail.com : johndoe_hotmail.com#EST#@tenantname.onmicrosoft.com

baywet
  • 4,377
  • 4
  • 20
  • 49
0

I removed the Users from Azure Active Directory group which were not having any subscriptions, and it works!!

Arun Saini
  • 6,714
  • 1
  • 19
  • 22
-1

Try this:
1. Remove existing account
2. Restart
3. Add account

K _
  • 1
  • 3