Azure PowerShell将无法连接

Azure PowerShell将无法连接,powershell,azure,azure-powershell,Powershell,Azure,Azure Powershell,我已按照MS说明下载并安装Azure Powershell: 使用Windows Powershell ISE运行以下命令: 登录AzureRmAccount 这将返回错误: Login-AzureRmAccount : The 'Login-AzureRmAccount' command was found in the module 'AzureRM.Profile', but the module could not be loaded. For more information, r

我已按照MS说明下载并安装Azure Powershell:

使用Windows Powershell ISE运行以下命令:

登录AzureRmAccount

这将返回错误:

Login-AzureRmAccount : The 'Login-AzureRmAccount' command was found in the module 'AzureRM.Profile', but the  module could not be loaded. For more information, run 'Import-Module AzureRM.Profile'. At line:1 char:1
+ Login-AzureRmAccount
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Login-AzureRmAccount:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
导入模块AzureRM.Profile

返回此错误:

Import-Module : File C:\Program Files (x86)\Microsoft 
SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureRM.Profile\CheckVersions.ps1 cannot be loaded 
because running scripts is disabled on this system. For more information, see about_Execution_Policies at 
http://go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ Import-Module AzureRM.Profile
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [Import-Module], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.ImportModuleCommand

为什么连接Azure如此困难,可能有什么问题?

从命令提示符运行:

powershell Set-ExecutionPolicy RemoteSigned

您的系统上当前的执行策略是什么?您的系统上已禁用可能重复运行的脚本。有关更多信息,请参阅关于\u执行\u策略,该策略是否应在Mac OS上运行?我获取
Set ExecutionPolicy:此平台不支持该操作。
在Mac OS上,它的工作原理是
pwsh-ExecutionPolicy RemoteSigned
检查帮助
pwsh-h