Azure DevOps Pipelines Azure PowerShell 任务:无法检索变量'$PSEdition',因为它尚未设置



在 Azure DevOps Pipelines Azure PowerShell 任务中接收错误:

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

最新的 AzureRM 模块刚刚安装(在撰写本文时为 6.11.0(。

AzureRM 6.11.0 模块正在查找 PowerShell 5.1 及更高版本中可用的 $PSVersionTable.PSEdition 属性。从这里下载并安装:https://www.microsoft.com/en-us/download/details.aspx?id=54616

最新更新