question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Login-AzureRmAccount command stuck in Powershell Integrated Console

See original GitHub issue

System Details

  • Operating system name and version:

Windows 10 Pro, Version 1703, OS Build 15063.502

  • VS Code version:

1.14.2

  • PowerShell extension version:

bradygaster.azuretoolsforvscode@1.2.9 donjayamanne.githistory@0.2.3 formulahendry.azure-iot-toolkit@0.1.3 johnpapa.azure-functions-tools@0.3.0 ms-mssql.mssql@1.1.0 ms-vscode.azurecli@0.1.0 ms-vscode.csharp@1.11.0 ms-vscode.PowerShell@1.4.1 ms-vscode.vscode-azureextensionpack@0.0.4 msazurermtools.azurerm-vscode-tools@0.3.6 PeterJausovec.vscode-docker@0.0.16 usqlextpublisher.usql-vscode-ext@0.2.4

  • Output from $PSVersionTable:

Name Value


PSVersion 5.1.15063.502 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} BuildVersion 10.0.15063.502 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

$pseditor.EditorServicesVersion

Major Minor Build Revision


1 4 1 0

Issue Description

I am unable to login using Login-AzureRmAccount command. It is stuck and never comes up with the GUI pop up. It works fine on normal powershell. Login-AzureAsAccount command works fine and it triggers the GUI popup to login to my organisation ID.

I have tried reinstalling VS Code, updating powershell modules etc using both Web PI and command line to no help.

Attached Logs

logs.zip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
dfinkecommented, Aug 6, 2017

I believe the Azure Login Window pops up behind the other windows, that’s what happens on my system, I have the latest vsc + pses. It doesn’t show up on top.

2reactions
FacePalmDevcommented, Jan 18, 2019

I believe the Azure Login Window pops up behind the other windows, that’s what happens on my system, I have the latest vsc + pses. It doesn’t show up on top.

This was true for me too! I saw the window in the alt + tab preview! How annoying! Thanks @daviwil for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Login-AzureRmAccount from VS Code terminal - Stack Overflow
When I try to login to Azure RM from VS Code terminal it just hangs. No prompt with login / password is shown....
Read more >
Azure Cloud Shell troubleshooting | Microsoft Learn
Resolution: Run the Connect-AzureAD cmdlet. Previously, Cloud Shell ran this cmdlet automatically during PowerShell startup. To speed up start ...
Read more >
powershell integrated console hanging on macos - Super User
I edited the script and now its not throwing that error and it just hangs and I cant run any commands: enter image...
Read more >
How to Connect to Azure AD using PowerShell?
Step 1: Install the Azure AD PowerShell Module · Type “PowerShell” from the start menu >> Right-click on Windows PowerShell and choose “Run...
Read more >
PowerShell - Buchatech.com
This PowerShell script will trigger Azure Policy to run the evaluation right away ... an argument that is not null or empty, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found