azure - 使用 Azure VPN 客户端连接到 Azure 搜索服务

标签 azure azure-cognitive-search azure-vpn

我已配置 Azure VPN 点到站点连接,以便从本地计算机访问受 VNet 保护的 Azure 资源。我能够使用 VPN 访问除 Azure 搜索服务之外的所有其他资源。对于所有资源,我在网络设置的“选定网络”下添加了 GatewaySubnet,并且还提到了相应资源的 IP 地址作为 VNet 网关中的附加路由。

但是对于 Azure 搜索服务,我无法在选定网络下添加 GatewaySubnet,因为搜索服务在选择“选定网络”时仅允许添加公共(public) IP 地址范围。

在连接 VPN 的情况下连接到搜索服务时出现以下错误

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. System.Private.CoreLib: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

我是否缺少任何设置?有人可以帮我解决这个问题吗?

最佳答案

您无需在 Azure 搜索防火墙中添加任何内容,如果您的防火墙设置为“选定的网络”,则意味着您尚未为搜索创建专用连接点(如果您的主要目标是连接)私下从本地到搜索,那么这将是您的第一步。 https://learn.microsoft.com/en-us/azure/search/service-create-private-endpoint

创建专用终结点后,请确保您的客户端知道如何将 xxxx.search.windows.net 解析为新创建的专用终结点的专用 IP,完成后,只需确保路由设置正确,您的客户端应该能够连接。

关于azure - 使用 Azure VPN 客户端连接到 Azure 搜索服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72631683/

相关文章:

Azure Devops Rest API - 查找特定代理池上的队列作业

azure - 将点到站点与 Azure VPN 网关结合使用时的私有(private) DNS 方法?

azure - 如何在资源管理器中创建与现有 VNET 的点到站点连接

Azure搜索获取多条记录

Azure 搜索和破折号

azure - 通过脚本连接到 Azure 点到站点 VPN

Azure DB for PostgreSQL 上的 PostgreSQL 作业计划程序

azure - 添加 blob 之前是否需要预先创建容器?

azure - 无法在 Azure 函数中进行 http 调用

c# - 具有多个筛选器的 Azure 搜索服务