【问题标题】:Azure DevOps Pipelines Azure PowerShell task: The variable '$PSEdition' cannot be retrieved because it has not been setAzure DevOps Pipelines Azure PowerShell 任务:无法检索变量“$PSEdition”,因为它尚未设置
【发布时间】:2018-10-26 22:33:29
【问题描述】:

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

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

刚刚安装了最新的 AzureRM 模块(本文发布时为 6.11.0)。

【问题讨论】:

    标签: azure powershell azure-devops azure-powershell


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-28
      • 2023-02-09
      • 1970-01-01
      • 1970-01-01
      • 2020-08-27
      • 2019-07-09
      • 1970-01-01
      • 2021-11-23
      相关资源
      最近更新 更多