【发布时间】:2019-10-24 22:38:52
【问题描述】:
尝试从 Powershell 连接 Azure 时出现以下错误:
PS H:\> Connect-AzureRmAccount
Connect-AzureRmAccount : An error occurred while sending the request.
At line:1 char:1
+ Connect-AzureRmAccount
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Connect-AzureRmAccount], HttpRequestException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand
【问题讨论】:
-
您是否尝试使用 Connect-AzureRmAccount -debug 查看详细错误?
-
这有点不相关,但
AzureRM已弃用,如果可能,您应该尝试使用Azpowershell 模块:docs.microsoft.com/en-us/powershell/azure/…。至少如果你要开始一个新项目:-)
标签: azure powershell azure-rm