gpt4 book ai didi

Azure 数据工厂 v2 无法将数据发送到 Azure 搜索

转载 作者:行者123 更新时间:2023-12-03 02:57:19 25 4
gpt4 key购买 nike

我正在尝试将一些数据传输到 Azure 搜索,但由于某种原因失败,并出现链接服务引用无效。名称:AzureSearch1

我已经设置了如下所示的 Azure 搜索链接服务:

{
"name": "AzureSearch1",
"properties": {
"type": "AzureSearch",
"typeProperties": {
"url": "https://xxxxxx.search.windows.net",
"key": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "AzureKeyVault",
"type": "LinkedServiceReference"
},
"secretName": "Search-AdminKey"
}
},
"connectVia": {
"referenceName": "integrationRuntime1",
"type": "IntegrationRuntimeReference"
}
}
}

“测试连接”工作正常。

现在,我正在尝试创建一个如下所示的 Azure 搜索索引器:

{
"name": "AzureSearchIndex_PriceSheet",
"properties": {
"linkedServiceName": {
"referenceName": "AzureSearch1",
"type": "LinkedServiceReference"
},
"type": "AzureSearchIndex",
"typeProperties": {
"indexName": "pricesheet"
}
}
}

但是当我单击“预览数据”或“导入架构”时失败并出现以下错误:链接服务引用无效。名称:AzureSearch1。事件 ID:2fa29fe9-ca5d-4308-af62-xxxxxxxxx

集成管道设置为“西欧”,并且 Azure 搜索也在该区域中预配。

有什么想法吗?谢谢!

最佳答案

我尝试重现您的问题,但失败了。请引用我的工作配置:

我的 Azure 搜索链接服务:

{
"name": "AzureSearch1",
"properties": {
"type": "AzureSearch",
"typeProperties": {
"url": "https://***.search.windows.net",
"key": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "AzureKeyVault1",
"type": "LinkedServiceReference"
},
"secretName": "testas"
}
}
},
"type": "Microsoft.DataFactory/factories/linkedservices"
}

我的 Azure 搜索索引器:

{
"name": "AzureSearchIndex1",
"properties": {
"linkedServiceName": {
"referenceName": "AzureSearch1",
"type": "LinkedServiceReference"
},
"folder": {
"name": "azureSearch"
},
"type": "AzureSearchIndex",
"typeProperties": {
"indexName": "documentdb-index"
}
},
"type": "Microsoft.DataFactory/factories/datasets"
}

浏览数据:

enter image description here

我推测可能是因为 AKV 中存储的 Secret 已过期,导致链接失去连接。我建议您在 AKV 中重新创建 Secret(只需设置默认配置),然后重试。

希望对您有帮助。如有任何疑问,请告诉我。

关于Azure 数据工厂 v2 无法将数据发送到 Azure 搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51860202/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com