为什么在PowerShell会话中不存在Login-AzureRmAccount?

时间:2017-01-26 10:46:58

标签: powershell azure azure-powershell

我正在尝试针对Azure做一些非常基本的PowerShell,但登录行为很奇怪(?)

enter image description here

为什么PowerShell会话中没有Login-AzureRmAccount持久存在?

修改 尝试重新安装AzureRM模块会产生以下结果: enter image description here

1 个答案:

答案 0 :(得分:1)

所以我终于找到了解决问题的方法:

crc

我也试过了Install-Module AzureRm -AllowClobber但是没有用。它只是说没有问题。 sfc scannow也没有用。

起初我不想运行Install-Module AzureRm -Force,但在阅读了http://adamringenberg.com/powershell2/tag/allowclobber/之后,它没有发出 的错误,所以我试了一下。