【问题标题】:Unable to connect to Windows Azure from Powershell Azure Powershell module无法从 Powershell Azure Powershell 模块连接到 Windows Azure
【发布时间】:2013-10-14 17:34:09
【问题描述】:

我在 Windows Azure 上创建了我的帐户,还下载并安装了我的 Azure Powershell 模块(我能够执行 azure 命令并查看帮助消息)。然后我下载了我的发布设置文件并尝试使用 Import-AzurePublishSettingsFile 导入它。我没有收到此执行的任何输出消息。

当我运行任何尝试连接到我的 Azure 订阅的命令时,就会出现问题,例如:

PS > Get-AzureLocation

Get-AzureLocation : Please connect to internet before executing this cmdlet

我的机器上有互联网连接,我的执行策略是 RemoteSigned。

有什么想法吗?

【问题讨论】:

    标签: windows powershell azure


    【解决方案1】:

    要查看 Import-AzurePublishSettingsFile 是否有一些结果,您可以调用:

    Get-AzureSubscription
    

    默认情况下,它选择默认为当前订阅。如果您没有看到任何结果,则说明您没有正确导入订阅设置。

    这个Introduction to Windows Azure PowerShell也可以帮到你。

    【讨论】:

      猜你喜欢
      • 2016-05-13
      • 1970-01-01
      • 1970-01-01
      • 2020-09-24
      • 1970-01-01
      • 2013-11-27
      • 2020-07-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多