azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Connect-AzureAD BADrequest 400

Open tkudya opened this issue 3 years ago • 0 comments

Recent issue with Connect Az-Accounts -credential. I have been getting the following error message below image

Any ideas on how to resolve this?

tkudya avatar Aug 09 '22 08:08 tkudya

@tkudya , thanks for reporting. Could you check your admin whether tenant still allows user name + password login? If yes, please turn on the debug log with setting $DebugPreference = "Continue" and share log to us. In addition, please share version of Az.Accounts.

dingmeng-xue avatar Aug 10 '22 15:08 dingmeng-xue

Please see attached logs.txt

Module is 2.9.1

tkudya avatar Aug 11 '22 07:08 tkudya

That's fixed now. it was TLS 1.2 we were just missing one registry key

tkudya avatar Aug 11 '22 08:08 tkudya

Thanks for information. I'm closing this issue now.

dingmeng-xue avatar Aug 18 '22 02:08 dingmeng-xue