gpt4 book ai didi

azure - 如何安装 Azure Az - 无法将值 "2.0.0-preview"转换为类型 "System.Version"

转载 作者:行者123 更新时间:2023-12-02 02:44:26 24 4
gpt4 key购买 nike

当我尝试使用 PowerShell 安装 Azure Az 时,出现以下异常:

Powershell Exception

已安装 PowerShell 5.1 和 .NET。之前安装的所有 AzureRM、Azure 和 Azure Az 模块现已卸载。

我尝试了不同的版本,有clobber和没有,有force和没有,我还在管理powershell中执行了命令。例如:

  • 安装模块-名称 Az -AllowClobber
  • 安装模块-名称 Az -RequiredVersion 2.0.0

我已在此计算机上安装了 Azure Az,但必须将其卸载。我用这个script by Microsoft卸载了它.

最佳答案

请按照 https://learn.microsoft.com/en-us/powershell/gallery/installing-psget 将 PowerShellGet 升级到最新版本。版本 1.0.0.1 的 PowerShellGet 无法识别预览版本字符串。

关于azure - 如何安装 Azure Az - 无法将值 "2.0.0-preview"转换为类型 "System.Version",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56327725/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com