Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure Powershell端口_Powershell_Azure - Fatal编程技术网

Azure Powershell端口

Azure Powershell端口,powershell,azure,Powershell,Azure,我们有一个虚拟机,它限制了对承载所有Azure资源的数据中心(例如美国西部)的internet访问,该数据中心正试图使用powershell运行命令(自动化) 打开的IP来自我们特定数据中心的Microsoft参考 由于访问限制,我能够从Github安装Powershell commandlets 0.8.8 每当我尝试运行一个特定的PoSH命令时,它都会失败 PS C:\Users\ncsa> Get-AzureSubscription | Select-AzureSubscriptio

我们有一个虚拟机,它限制了对承载所有Azure资源的数据中心(例如美国西部)的internet访问,该数据中心正试图使用powershell运行命令(自动化)

打开的IP来自我们特定数据中心的Microsoft参考

由于访问限制,我能够从Github安装Powershell commandlets 0.8.8

每当我尝试运行一个特定的PoSH命令时,它都会失败

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
当我在我的桌面上运行同样的程序时,它工作得很好,因为没有互联网限制


有人能告诉我Windows Azure Powershell使用的IP范围/端口吗?

您需要确保已将Azure SQL数据库设置为允许从其他Azure资源进行连接(这是Azure SQL数据库的防火墙设置页面上的一个选项)。

您可能希望验证端口1433是否已打开出站。自2005年slammer蠕虫传播以来,我的组织一直在阻止出境1433。有几种方法可以测试。最简单的方法是
telnet 1433
如果您在一个空白的cmd窗口中。您还可以下载NMap进行快速端口扫描。

我确实从那里打开了端口。我可以通过ADO.Net和SQL数据同步连接到SQL数据库