本文介绍了无法从Powershell的Azure的PowerShell模块,连接到Windows Azure的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建Windows Azure上的我的帐户,也下载并安装我的Azure PowerShell模块,(我能够执行蔚蓝命令,并看到了帮助信息)。然后,我下载我的发布设置文件,并试图用进口AzurePublishSettingsFile将其导入。我没有得到任何输出消息:在此执行。

I created my account on Windows Azure, also downloaded and installed my Azure Powershell module (I'm able to execute azure command and see the help message). Then I downloaded my publish settings file and tried to import it using Import-AzurePublishSettingsFile . I don't get any output message for this execution.

问题是当我运行尝试连接到我的Azure订阅的任何命令,例如:

The problem comes when I run any command that tries to connect to my Azure subscription, for example:

PS > Get-AzureLocation

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

我在我的机器上的网络连接和我的执行策略是RemoteSigned就是

I have internet connection in my machine and my execution policy is RemoteSigned.

任何想法?

推荐答案

要看到的是从有进口AzurePublishSettingsFile一些,你可以调用:

To see is there some result from Import-AzurePublishSettingsFile you can call:

Get-AzureSubscription

默认情况下,选择默认为当前订阅。如果您没有看到任何结果,那么您不导入您的订阅设置正确。

By default it select the default to current subscription. If you don't see any result then you don't import your subscription settings right.

这介绍到Windows Azure PowerShell还可以帮你。

这篇关于无法从Powershell的Azure的PowerShell模块,连接到Windows Azure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 18:51