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

Azure Data Factory v2 fails at sending data to Azure Search

我正在尝试将一些数据传输到 Azure 搜索,但由于某种原因它失败了 Invalid linked service reference. Name: 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"
    }
}
}

"Test connection" 工作正常。

现在,我正在尝试创建这样的 Azure 搜索索引器:

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

但是当我单击 "Preview Data" 或 "Import Schema" 时失败并出现此错误: Invalid linked service reference. Name: AzureSearch1. Activity ID:2fa29fe9-ca5d-4308-af62-xxxxxxxxx

集成管道设置为 "West Europe",Azure 搜索也在该区域中提供。

有什么想法吗? 谢谢!

我试图重现您的问题,但 failed.Please 请参阅我的工作配置:

我的 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"
}

查看数据:

我推测可能是因为存储在 AKV 中的秘密已经过期,然后 link 丢失 connection.I 建议您在 AKV 中重新创建秘密(只需设置默认配置)并重试.

希望对你有帮助you.Any关注,告诉我。