具有VNET集成的应用程序服务无法连接到同一VNET中的HTTP端点

问题描述 投票:0回答:1

我已按照此指南将我的App服务Web应用程序集成到同一区域中的现有VNET:https://docs.microsoft.com/en-us/azure/app-service/web-sites-integrate-with-vnet

在该VNET内,已经有一个运行在VM规模集上的Elasticsearch集群,我可以通过私有IP http://10.0.0.4从同一VNET内的Jumpbox VM连接到Elasticsearch。

但是App服务无法通过私有IP地址连接到Elasticsearch,以下是错误消息:

System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A non-recoverable error occurred during a database lookup

App Service VNET集成是否支持此方案?如果是,我会错过什么吗?或如何解决根本原因?

azure-web-sites azure-web-app-service azure-virtual-network
1个回答
0
投票

App服务VNET集成可以支持该方案,请阅读this blog中的将Azure App服务连接到Elasticsearch。 “有了这些,Web应用程序应该能够与集群进行通信。”

在该示例中,它使用Gateway required VNet Integration。从理论上讲,区域VNet集成也可以解决问题。您可以转到troubleshooting的KUDU控制台。另外,您可以先检查以下内容。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.