简体   繁体   English

Azure应用服务-调用VNET服务不起作用

[英]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.

相关问题 Azure URL 应用程序服务无法在 .net 中使用专用端点 - Azure URL app service not working in vnet with private endpoint Azure中虚拟机和应用服务之间的Vnet - Vnet between Virtual Machine and App Service in Azure Azure App Service VNET与内部DNS的集成 - Azure App Service VNET Integration with Internal DNS Azure VM 和 App Service 通过 VNET 集成 - Azure VM and App Service integration through VNET 可以将 AZURE 应用服务定义为 .NET 的一部分吗? - Can an AZURE App Service be defined as part of a VNET? Azure App Service VNET 集成和网络优化 - Azure App Service VNET integration and network optimization App Service VNet与Azure存储服务端点集成 - App Service VNet Integration with Azure Storage Service Endpoint 如何从 Azure 服务应用计划中删除/断开 Azure .NET? - How to remove/disconnect an Azure VNET from an Azure Service App Plan? 在vNet性能内与在vNet外具有Azure SQL连接的Azure Web App PaaS(应用服务计划) - Azure Web App PaaS (App Service Plan) with Azure SQL connection inside vNet performance vs outside vNet 处于消费计划中的 Azure Logic 应用程序能否通过 VNet 集成调用处于应用程序服务计划中的 azure 函数 - Can an Azure Logic app which is under consumption plan call the the azure function which is under app service plan with VNet integration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM