【问题标题】:App Service with VNET integration cannot connect to HTTP endpoint within the same VNET具有 VNET 集成的应用服务无法连接到同一 VNET 中的 HTTP 终结点
【发布时间】:2020-02-27 17:16:27
【问题描述】:

我已按照以下指南将我的应用服务 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

应用服务 VNET 集成是否支持此场景?如果是,我会错过什么吗?或者如何解决根本原因?

【问题讨论】:

    标签: azure-web-app-service azure-virtual-network


    【解决方案1】:

    应用服务 VNET 集成可以支持该场景,请参阅this blog 中的将 Azure 应用服务连接到 Elasticsearch。 “有了这一切,Web 应用程序应该能够与集群通信。”

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

    【讨论】:

      猜你喜欢
      • 2018-08-15
      • 2018-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-12
      • 2020-12-26
      • 2021-01-22
      • 1970-01-01
      相关资源
      最近更新 更多