【问题标题】:The term 'Add-AzureAccount' is not recognized无法识别术语“Add-AzureAccount”
【发布时间】:2021-03-14 20:33:48
【问题描述】:

我已经安装了 Windows azure powershell。

之后,当我以 Windows azure powershell 作为 administrator 启动时,我遇到了一个错误 ---

Saying  The term 'Add-AzureAccount' is not recognized

我该如何解决这个错误任何人都知道任何解决方案!

【问题讨论】:

  • 您安装了哪个版本的 azure PowerShell?您是否尝试过关闭 PowerShell 并在安装后重新打开它

标签: powershell azure


【解决方案1】:

在运行该 cmdlet 之前,您可以尝试一下

Import-Module Azure

如果找不到模块,可以试试

Install-Module Azure

请务必以管理员身份运行 powershell。

【讨论】:

  • 安装 Azure 模块时,我收到一个警告说存储库不受信任:PS Azure:\> Install-Module Azure Untrusted repository You are installing the modules 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 the modules from 'PSGallery'?
  • 只需将 -Force 添加到末尾
猜你喜欢
  • 2015-12-10
  • 2020-02-14
  • 2020-03-03
  • 1970-01-01
  • 1970-01-01
  • 2022-08-07
  • 2016-11-05
  • 2021-07-02
  • 2017-11-14
相关资源
最近更新 更多