且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法使用PowerShell连接到azure

更新时间:2023-02-09 08:41:56

您好Jeetu,

Hello Jeetu,

您能告诉我们正在使用的Powershell版本吗?

Could you please let us know the Powershell version being used?

请尝试重新 - 导入AzureRM模块并重新尝试登录:

Please try re-importing the AzureRM module and re-try logging in:

Import-Module -Name "AzureRM" -Force

登录-AnlandRmAccount

Login-AzureRmAccount

  导入模块   cmdlet将一个或多个模块添加到当前会话,前提是它们已安装在本地计算机上。从Windows PowerShell 3.0开始,当您在模块中使用任何命令或提供程序时,已安装的模块会自动导入到会话

The Import-Module cmdlet adds one or more modules to the current session provided they are already installed on the local computer. Starting in Windows PowerShell 3.0, installed modules are automatically imported to the session when you use any commands or providers in the module.

在旁注中,您是否还有Powershell Az模块与AzureRM一起安装?因为这可能会导致一些问题。

On a side note, do you also have the Powershell Az module installed alongside AzureRM? As this might lead to a few issues.