Skip to content

[AzureRM.Netcore] a misleading error message when you are not logged in #4487

@alexandair

Description

@alexandair

I've installed AzureRM.Netcore in Bash Cloud Shell (I've previously installed PowerShell Core 6 beta 5).
If I run any AzureRM command before I log in to Azure I get the following error message:

PS > get-azurermresourcegroup
get-azurermresourcegroup : The Azure PowerShell session has not been properly initialized.  Please import the module and try again.

That error message is misleading and not very helpful, and doesn't provide a step to fix a problem.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions