powershell - 刚接触 Windows azure powershell,无法连接到我的 azure 应用程序

标签 powershell azure

当我使用 powershell commandlet 连接 azure 应用程序时出现错误 -

Get-HostedService:无法使用权​​限“management.core.windows.net”建立 SSL/TLS 安全通道。

这是我关注的链接 - http://msdn.microsoft.com/en-us/gg271300

http://wappowershell.codeplex.com/documentation

最佳答案

根据我的经验,可能存在两个问题:

  1. 您使用的证书无法在您的计算机和 Windows Azure 管理门户之间创建安全的 SSL 隧道,因此您会收到错误消息
  2. 我发现了与 SSPI 和 SCHANEL 相关的操作系统特定问题,其中无法创建 SSL 隧道。

我还认为您的第一个链接包含旧信息,并且在大多数情况下没有帮助。让我们先尝试解决问题,这很容易。我写下下面的内容是为了了解您的计算机中安装了 Powershell Cmdlet:

  • 首先从您的 Windows Azure 门户下载发布配置文件,如 here 中所述。 .
  • 现在打开 Windows Powershell for Windows Azure CmdLets(在管理模式下)

之后直接输入这些Powershell命令:

PS > Import-Subscription <include your _filename_.publishsettings here>
PS > Select-Subscription <Enter The _name_of_your_subscription which will be listed after you run above command (Note - **SubscriptionName** is needed here>
PS > Get-HostedService <This should list all of services in your subscription>

现在您可以通过 Powershell Cmdlet 管理订阅。

如果您仍有问题,请告诉我,我将提供有关 2) 的信息。

关于powershell - 刚接触 Windows azure powershell,无法连接到我的 azure 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10657048/

相关文章:

powershell - 从远程命令调用获取输出

powershell - Security.SecureString参数不接受字符串

azure - 使用 API 管理或 LB 公开中继混合连接

rest - 是否有针对 Azure 移动服务的调度程序运行一次的 REST API 调用?

powershell - Azure 帐户级 SAS token : Possible to Have a Policy?

powershell - Powershell v2 Get-Eventlog:尝试执行未经授权的操作

powershell - powershell变量内联扩展作为cmdlet参数?

powershell - 如何从 Teamcity 构建步骤在 Windows 服务器的后台运行 Dotnet

c# - 如何以编程方式更新 azure blob url

c# - Azure WebJob 运行后更新 UI