In hybrid computing, it is a common scenario to establish a connection from a some On-Premises machine to Azure Cloud. However, applications, which run On-Prem are blocked by firewalls. Unfortunately, while configuring your On-Prem application (service) You cannot be sure if your configuration of the service is invalid or firewal is blocking connection to remote Azure Service.
To be sure that connectivity is not an issue, you can use following PowerShell command let.
The example below shows how to test connectivity to Azure Service Bus.
|Test-NetConnection -ComputerName watchdog.servicebus.windows.net -Port 9350 |
Following is the result if connection has been successfully established:
ComputerName : watchdog.servicebus.windows.net
RemoteAddress : 220.127.116.11
RemotePort : 9350
InterfaceAlias : Ethernet
SourceAddress : 10.1.0.4
PingSucceeded : False
PingReplyDetails (RTT) : 0 ms
TcpTestSucceeded : True
if you get warning like “WARNING: Ping to daenet.com failed -- Status: TimedOut” you can ignore it.
Following is a test for AMQP port:
Test-NetConnection -ComputerName watchdog.servicebus.windows.net -Port 5671
Here you can find the list of currently used Azure IP Addresses: https://www.microsoft.com/en-us/download/details.aspx?id=41653
Dec 19 2016, 07:39 AM