Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to remove an Azure Account from Powershell and Login with a new account

$
0
0

I am using the command Remove-Azureaccount to remove a current existing account attached to a particular subscription and I would like to login with a new account to see some other subscription.

Both the subscriptions are in Resource Manager Mode.

What is the current command to remove an account or delete a subscription  in Resource Manager Mode, "Remove-Azureaccount" is not working and throwing me error

Remove-AzureAccount : User name is not valid.
Parameter name: accountId
At line:1 char:1
+ Remove-AzureAccount -Name "infy_107797@outlook.com"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Remove-AzureAccount], ArgumentException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.RemoveAzureAccountCommand
 


Pallab Chakraborty


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>