2014-09-18 68 views
1

我们有一个虚拟机有严格的Internet访问,我们主办(说美国西部为例)正试图运行使用命令(自动化)的PowerShellAzure的PowerShell的港口

的IP地址我们所有的Azure的资源数据中心打开来自由于严格的访问为我们特定的数据中心http://www.microsoft.com/en-us/download/details.aspx?id=41653

微软参考,我能够安装从GitHub https://github.com/Azure/azure-sdk-tools/releases

PowerShell的命令行开关0.8.8每当我试图运行一个特定的豪华命令失败

PS C:\Users\ncsa> Get-AzureSubscription | Select-AzureSubscription 


Id   : Masked 

Name  : RBXEnv 

Environment : AzureCloud 

Account  : Masked 

Properties : {} 



PS C:\Users\nsalgar> Get-AzureSqlDatabaseServer 

WARNING: Client Session Id: 'b75d4a4a-0964-40d0-b696-4c94992c22e6-2014-09-18 20:53:05Z' 

WARNING: Client Request Id: '0305e7d5-7e50-4089-a2f2-3390130cf8b6-2014-09-18 21:01:42Z' 

Get-AzureSqlDatabaseServer : **An error occurred while sending the request.** 
At line:1 char:1 
+ Get-AzureSqlDatabaseServer 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : NotSpecified: (:) [Get-AzureSqlDatabaseServer], HttpRequestException 
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.SqlDatabase.Server.Cmdlet.GetAzureSqlDatabaseServer 

当我从我的桌面上运行相同的堂妹没有互联网限制

有没有人告诉我的IP范围/端口在Windows Azure PowerShell使用

回答

0

你需要确保它工作得很好您已将Azure SQL数据库设置为允许来自其他Azure资源的连接(这是Azure SQL数据库的防火墙设置页面上的一个选项)。

+0

我确实有从那里打开的端口。我可以通过ADO.Net和SQL DataSync连接到SQL数据库 – Nitya 2014-09-22 01:20:14

0

您可能想要验证端口1433是否已开放出站。自2005年以来,我的组织阻止了出境1433年,当时的抨击蠕虫正在传播。有几种方法可以测试。最简单的方法是到telnet <dbservername> 1433,如果你得到一个空白的cmd窗口你也可以下载NMap做一个快速端口扫描。