无法从 Azure 搜索服务连接 Azure SQL 托管实例数据源
Unable to connect Azure SQL Managed Instance datasource from Azure Search Service
我正在尝试使用 Azure SQL 托管实例服务器 (禁用 public 端点) 作为 Azure 搜索服务索引器的数据源。当我尝试在 Azure 搜索中创建索引器时,出现以下错误。
建立与 SQL 服务器的连接时出现与网络相关或特定于实例的错误。服务器未找到或无法访问。验证实例名称是否正确并且 SQL 服务器配置为允许远程连接。 (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party didn't properly respond after a period time, or established connection failed because connected host has failed respond.)
下面是我用于 Azure 搜索数据源的连接字符串。
Server=tcp:mymanagedinstance.database.windows.net,1433;Database=dbname;User Id=username;Password=password
我在 SQL 托管实例子网的 NSG 中添加了以下入站规则。但我仍然无法从 Azure 搜索连接到托管实例。
有人可以建议我应该做任何其他配置吗?
我相信您必须启用 public 端点才能通过 Azure 搜索为您的 SQL 数据编制索引。不过,您应该能够启用 public 端点以仅允许 "Azure Services"。请参阅以下文档了解 screenshots/more 上下文。
"As noted in Connecting Azure SQL Database to Azure Cognitive Search using indexers, creating indexers against SQL Managed Instances is supported by Azure Cognitive Search through the public endpoint."
我正在尝试使用 Azure SQL 托管实例服务器 (禁用 public 端点) 作为 Azure 搜索服务索引器的数据源。当我尝试在 Azure 搜索中创建索引器时,出现以下错误。
建立与 SQL 服务器的连接时出现与网络相关或特定于实例的错误。服务器未找到或无法访问。验证实例名称是否正确并且 SQL 服务器配置为允许远程连接。 (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party didn't properly respond after a period time, or established connection failed because connected host has failed respond.)
下面是我用于 Azure 搜索数据源的连接字符串。
Server=tcp:mymanagedinstance.database.windows.net,1433;Database=dbname;User Id=username;Password=password
我在 SQL 托管实例子网的 NSG 中添加了以下入站规则。但我仍然无法从 Azure 搜索连接到托管实例。
有人可以建议我应该做任何其他配置吗?
我相信您必须启用 public 端点才能通过 Azure 搜索为您的 SQL 数据编制索引。不过,您应该能够启用 public 端点以仅允许 "Azure Services"。请参阅以下文档了解 screenshots/more 上下文。
"As noted in Connecting Azure SQL Database to Azure Cognitive Search using indexers, creating indexers against SQL Managed Instances is supported by Azure Cognitive Search through the public endpoint."