【问题标题】:Azure Cognitive Search - Connect to SQLAzure 认知搜索 - 连接到 SQL
【发布时间】:2023-01-05 07:12:10
【问题描述】:

我有一个 Azure 认知搜索服务并尝试连接到 Azure SQL 表。

Azure SQL 禁用了公共访问并创建了专用链接。

我已经为它创建了一个 Azure 认知搜索服务和一个专用链接。

搜索服务已启用托管标识。托管身份已获得访问 SQL 数据库和服务器的权限。

现在,当我尝试创建数据源时,返回的错误是无法创建数据源“search-ds”,错误:“无法获取”

我究竟做错了什么?

提前致谢。

BR

【问题讨论】:

    标签: azure-cognitive-search


    【解决方案1】:

    本文档主题提供了将私有链接与 Azure 认知搜索索引器结合使用的最全面的教程:https://learn.microsoft.com/en-us/azure/search/search-indexer-howto-access-private?tabs=portal-create%2Cportal-status

    它的末尾有一个故障排除部分。

    它提到的一件似乎很容易被忽略的事情是将索引器配置为在私有模式下工作:

    {
        "name": "indexer",
        "dataSourceName": "your-datasource",
        "targetIndexName": "index",
        "parameters": {
            "configuration": {
                "executionEnvironment": "private"
            }
        },
        "fieldMappings": []
    }
    

    除了专用链接方面,常规建议也适用,很多事情都会阻止索引器连接到数据源。这是另一个涵盖其他可能原因的主题:https://learn.microsoft.com/en-us/azure/search/search-indexer-troubleshooting

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-03-27
      • 1970-01-01
      • 2017-09-10
      • 2022-01-12
      • 2021-09-21
      • 2021-04-28
      • 1970-01-01
      相关资源
      最近更新 更多