Josh Johanning
Josh Johanning

Reputation: 1245

Azure DevOps Pipelines Azure PowerShell task: The variable '$PSEdition' cannot be retrieved because it has not been set

Receiving an error in the Azure DevOps Pipelines Azure PowerShell task:

##[error]The variable '$PSEdition' cannot be retrieved because it has not been set.

The latest AzureRM modules were just installed (6.11.0 at the time of this post).

Upvotes: 0

Views: 1097

Answers (1)

Josh Johanning
Josh Johanning

Reputation: 1245

The AzureRM 6.11.0 module is looking for the $PSVersionTable.PSEdition property which is available in PowerShell 5.1 and greater. Download and install from here: https://www.microsoft.com/en-us/download/details.aspx?id=54616

Upvotes: 1

Related Questions