Error when trying to Add-AzureAccount


getting error when trying initial setup of azure ps.  have done many times on different machines, , on particular machine have uninstalled , reinstalled azure ps few times no avail.  issuing add-azureaccount , expecting pop menu can type in account information-as simple can be.  keeps spitting out error message:

add-azureaccount : key not valid use in specified state.

at line:1 char:1

+ add-azureaccount

+ ~~~~~~~~~~~~~~~~

    + categoryinfo          : closeerror: (:) [add-azureaccount], aadauthenticationfailedexception

    + fullyqualifiederrorid : microsoft.windowsazure.commands.profile.addazureaccount

i found solution!
have delete profile manually (clear-azureprofile fail well).
remove-item "$env:userprofile\appdata\roaming\windows azure powershell"




Microsoft Azure  >  Azure Scripting and Command Line Tools



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'