Closed dmarquez1991 closed 3 weeks ago
Same problem here. AuthN popup sometimes appears briefly and then vanishes. Az Module v12.0.0 on W11 build 22631.3593 with PowerShell 7.4.2
i get the same thing in win10 with az.accounts 3.0.0. sometimes it will crash the window. i do not get this in win2016 or win2019.
I'm the same, just hangs right here (actually stayed there and didn't even fail (had to CTRL+C)) overnight:
When I do it with -DeviceCode, that actually works. Also when I Connect-AzAccount -Identity from Azure Automation runbook (PowerShell 7.2 runtime environment and System-Assigned Managed Identity), it works there too. Windows PowerShell 5.1 in Azure Automation seems to be disaster with the Az and AzureRM conflict. The entirety of the many different Azure modules is pretty intimidating and very difficult.
Same issue here with a recently reimaged computer and PowerShell 7.4.3.
In the past, this would pop up the account selection dialog in the browser, but now I get nothing at all. I don't know how to specify the account to log in with since this always just prompted to select one.
Sounds dumb, but make sure to minimize all windows and then don't maximize just this one window. You might see a special login window pop-up behind. This was my issue 👴🤓
@dmarquez1991 Per my understanding, the first interactive login fails for some reason. Could you see the popup window to select an account? If not, please upgrade to the latest Az.Accounts (3.0.2) to see whether the issue is fixed.
@hooverken @Technomancer-SysAdmin @JeremyTBradshaw @traberc Please try the latest Az.Accounts version. Your issue seems to the issue of elevated mode that we include the fix for.
Same issue with version 3.0.2
Same issue with version 3.0.2
@ikishko Could you create a github item and provide with the debug logs? thanks
The issue may refer to the https://github.com/Azure/azure-powershell/issues/24989 and close it as a duplicate issue.
Description
Trying to authenticate to tenant using ConnectAzAccount but no avail please see script pasted in output section
Script or Debug output
Environment data
No response
Module versions
No response
Error output