我已经通过Gallery安装了Azure PowerShell 1.0.3(根据在Installing Azure PowerShell From The Gallery部分的说明)。我想要升级到最新版本,但不确定需要运行哪些命令。我尝试了下面的方法,但决定询问而不是潜在地破坏我的安装:
PS C:\Windows\system32> Install-Module AzureRM
You are installing the module(s) from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet.
Are you sure you want to install software from 'https://www.powershellgallery.com/api/v2/'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): y
WARNING: Version '1.0.3' of module 'AzureRM' is already installed at 'C:\Program
Files\WindowsPowerShell\Modules\AzureRM\1.0.3'. To delete version '1.0.3' and install version '1.1.0', run
Install-Module, and add the -Force parameter.
有人可以提供一个更新Azure PowerShell的脚本吗?
Get-Module AzureRM
进行验证。 - Jeremy Fortune