降级 AzureRM PowerShell 模块
Downgrade AzureRM PowerShell Module
有没有办法将 AzureRM PowerShell 降级到旧版本?我刚刚安装了 6.0.1 并意识到它不支持一些参数。有没有不使用 Uninstall-Module
的快速降级方法?
其实按照PowerShell Document好像没有直接降级操作。
您可以安装不同版本的 AzureRM 模块。但是只能加载一个版本。
您可以Install-Module -Name AzureRM -RequiredVersion xxx
或Update-Module -Name AzureRM -RequiredVersion xxx
。
然后打开一个新的powershell window到Import-Module -Name AzureRM -RequiredVersion xxx
。
您可以卸载版本,然后安装您需要的(工作)版本:
Uninstall-Module -Name AzureRM
Install-Module -Name AzureRM -RequiredVersion 5.7.0
重新启动机器,TFS 将所需的版本指示为功能。
有没有办法将 AzureRM PowerShell 降级到旧版本?我刚刚安装了 6.0.1 并意识到它不支持一些参数。有没有不使用 Uninstall-Module
的快速降级方法?
其实按照PowerShell Document好像没有直接降级操作。
您可以安装不同版本的 AzureRM 模块。但是只能加载一个版本。
您可以Install-Module -Name AzureRM -RequiredVersion xxx
或Update-Module -Name AzureRM -RequiredVersion xxx
。
然后打开一个新的powershell window到Import-Module -Name AzureRM -RequiredVersion xxx
。
您可以卸载版本,然后安装您需要的(工作)版本:
Uninstall-Module -Name AzureRM
Install-Module -Name AzureRM -RequiredVersion 5.7.0
重新启动机器,TFS 将所需的版本指示为功能。