2017-06-13 79 views
0

我正在寫一個Azure函數來ping一個特定的主機來檢查使用System.Net.NetworkInformation.Ping類的響應時間。調用Ping.Send時,我得到一個通用的異常,但是這在本地工作正常。Azure函數 - Ping限制?

對Azure函數發出的網絡呼叫是否有限制?

的例外,我得到的是簡單的:

莫非無法ping:ping請求的過程中出現異常。
at System.Net.NetworkInformation.Ping.Send(IPAddress address,Int32 timeout,Byte [] buffer,PingOptions options) at System.Net.NetworkInformation.Ping.Send(String hostNameOrAddress,Int32 timeout,Byte [] buffer, PingOptions選項

+0

聽起來就像是[沙箱](https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox) - _「唯一應用程序可以通過互聯網訪問的方式是通過已經公開的HTTP(80)和HTTPS(443)TCP端口;應用程序可能不會偵聽其他端口上的來自互聯網的數據包。「_ – stuartd

回答