Skip to content

Add-AzureRmAccount :: Incorrect credentials aren't throwing an exception #1664

@pcgeek86

Description

@pcgeek86

@markcowl

I just installed AzureRM on a fresh Windows 10 VM, which has never had the module installed before. I am trying to call Add-AzureRmAccount, and I'm getting an AzureProfile instance back, with no subscriptions tied to it. Thus, I am receiving the error message:

No subscription found in the context. Please ensure that the credentials you provided
are authorized to access an Azure subscription, then run Login-AzureRMAccount to login.

There is also no Clear-AzureRmProfile command, so I can start over from scratch, without closing the PowerShell session. What happened to this command?

Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell
http://trevorsullivan.net
http://twitter.com/pcgeek86

screen shot 2016-01-14 at 8 09 04 pm

screen shot 2016-01-14 at 8 09 50 pm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions