我已配置 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/