Skip to content

Add-AzureRmAccount doesn't work in VS Code #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pcgeek86 opened this issue Apr 21, 2016 · 7 comments
Closed

Add-AzureRmAccount doesn't work in VS Code #155

pcgeek86 opened this issue Apr 21, 2016 · 7 comments
Labels
Issue-Bug A bug to squash.
Milestone

Comments

@pcgeek86
Copy link
Contributor

pcgeek86 commented Apr 21, 2016

The Add-AzureRmAccount (with no parameters) command doesn't pop up the expected login dialog, and hangs the Output window.

In the PowerShell ISE, the login dialog appears correctly:

image

Cheers,
Trevor Sullivan
https://trevorsullivan.net
https://twitter.com/pcgeek86

@daviwil
Copy link
Contributor

daviwil commented Apr 25, 2016

Strange, I'll take a look.

@daviwil daviwil added the Issue-Bug A bug to squash. label Apr 25, 2016
@daviwil daviwil added this to the 0.6.0 milestone Apr 25, 2016
@Chrisboh
Copy link

So it looks like if you set a break point to the line that follows then things seem to work. In my case if I did the following I could get the dialog to pop and everything else worked. If I don't set the break point then everything seems to hang.

Login-AzureRmAccount
Set-AzureRmContext -SubscriptionId $SubId <- Set break point here

@rkeithhill
Copy link
Contributor

rkeithhill commented May 10, 2016

Sounds like a duplicate for issue #149. This should be fixed in 0.6.0.

@daviwil
Copy link
Contributor

daviwil commented May 10, 2016

Yep, sounds like that issue. Trying to get 0.6.0 out ASAP.

@daviwil daviwil added the Needs: Fix Verification Please verify the fix for us! label May 10, 2016
@daviwil
Copy link
Contributor

daviwil commented May 11, 2016

I've verified that this is now fixed in the upcoming 0.6.0 release. I'll close this bug as soon as the update has been shipped.

@daviwil daviwil removed the Needs: Fix Verification Please verify the fix for us! label May 11, 2016
@daviwil daviwil closed this as completed May 13, 2016
@legobytes
Copy link

I'm still seeing the issue with Login-AzureRmAccount not prompting for login credentials unless I have a break on the following line. I'm using VSCode 1.4 with PowerShell Extension version 0.6.2 on Windows 10.

@kilasuit
Copy link
Contributor

@legobytes - could you raise this as a new issue and reference this one by using the issue number #155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

6 participants