Get-AzureRMSubscription throws an error after logging in using login-azurermaccount

I am trying to use get-azurermsubscription to get a list of available subscribers, to choose one of five before running set-azurermcontext. I get an error message:

Method not found: "Microsoft.Azure.Subscriptions.Models.SubscriptionListResult"

get-azurermcontext displays a valid tenatant identifier and a valid subscription identifier, but, of course, does not display all subscriptions.

I downloaded the Powershell installer in March 2015 to make sure everything is updated but have the same problems.

Just upgraded to VisualStudio 2015 update 2 and powershell v5. You have another machine with a similar configuration that works great.

What should I do to fix this problem?

+4
source share
1 answer

I can not add a comment, so I do it like this. On July 12, 2016, AzureRM received and updated version 1.6.0. I confirmed cmd Get-AzureRMSubsctiption works with Windows 10. enter image description here

0
source

All Articles