"Method invocation failed" error when you run Azure PowerShell cmdlets

Symptoms

When you run Windows Azure PowerShell cmdlets, you receive an error message that resembles the following message:

Method invocation failed because [System.Object[]] doesn't contain a method named 'RemoveAll'.

Cause

This problem occurs for either of the following reasons:
  • You are using an outdated version of Azure PowerShell.
  • You are using a method name that does not exist.

Resolution

To resolve this problem, do either of the following:
Properties

Article ID: 3072418 - Last Review: Aug 14, 2015 - Revision: 1

Microsoft Azure Active Directory, Microsoft Azure Cloud Services

Feedback