无法识别"Add-AzureAccount"一词

Chr*_*sen 0 powershell azure

我已经安装了Windows azure powershell.

之后,当我作为管理员启动Windows azure powershell时,我收到错误---

Saying  The term 'Add-AzureAccount' is not recognized
Run Code Online (Sandbox Code Playgroud)

截图

我该如何修复此错误任何人都知道任何解决方案!

小智 8

在运行该cmdlet之前,您可以尝试吗?

Import-Module Azure
Run Code Online (Sandbox Code Playgroud)

如果找不到该模块,您可以尝试

Install-Module Azure
Run Code Online (Sandbox Code Playgroud)

务必以后者的身份管理PowerShell.