[英]Azure App Service - call to VNET service is not working
I have a App service which is in VNET1 and this VNET1 is connected to VNET2 on other network with Point-to-Site Connection. 我有一个VNET1中的应用程序服务,并且此VNET1通过点对点连接连接到其他网络上的VNET2。 My App Service is connected to VNET1. 我的应用程序服务已连接到VNET1。
These two VNETs are connected and tested. 这两个VNET已连接并经过测试。 those are working fine. 那些工作正常。
when i ping (tcpping) from App Service console to VNET1 and VNET2 IP its working fine. 当我从App Service控制台ping(tcpping)到VNET1和VNET2 IP时,它的工作正常。 Also Curl
Request is working fine. Curl
请求也可以正常工作。
But when i call the Same URL from App service page. 但是,当我从应用程序服务页面调用相同的URL时。 its showing Request Time out Error. 其显示请求超时错误。
Any Suggestions why this is not working? 有什么建议为什么不起作用?
There are many things that can prevent your app from reaching a specific host and port. 有很多事情可以阻止您的应用访问特定的主机和端口。 Most of the time it is one of three things: 在大多数情况下,这是三件事之一:
There is a firewall in the way If you have a firewall in the way, you will hit the TCP timeout. 有一个在路上防火墙如果你在路上防火墙,你会打的TCP超时。 That is 21 seconds in this case. 在这种情况下,即21秒。 Use the tcpping tool to test connectivity. 使用tcpping工具测试连通性。 TCP timeouts can be due to many things beyond firewalls but start there. TCP超时可能是由于防火墙以外的许多因素所致,但从那里开始。
DNS is not accessible The DNS timeout is three seconds per DNS server. 无法访问 DNS DNS超时是每个DNS服务器三秒钟。 If you have two DNS servers, the timeout is 6 seconds. 如果您有两个DNS服务器,则超时为6秒。 Use nameresolver to see if DNS is working. 使用nameresolver查看DNS是否正常工作。 Remember you can't use nslookup as that does not use the DNS your VNet is configured with. 请记住,您不能使用nslookup,因为它不使用配置VNet的DNS。
Invalid P2S IP range The point to site IP range needs to be in the RFC 1918 private IP ranges (10.0.0.0-10.255.255.255 / 172.16.0.0-172.31.255.255 / 192.168.0.0-192.168.255.255). 无效的P2S IP范围点对点IP范围必须在RFC 1918专用IP范围内(10.0.0.0-10.255.255.255 / 172.16.0.0-172.31.255.255 / 192.168.0.0-192.168.255.255)。 If the range uses IPs outside of that, then things won't work. 如果范围使用的IP超出范围,则将无法正常工作。
For more details, refer this Troubleshooting steps and see if that helps. 有关更多详细信息,请参阅此故障排除步骤,并查看是否有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.