“无法删除集成运行时。” Azure数据工厂

时间:2020-08-18 13:58:55

标签: azure azure-data-factory

我有两个集成运行时(都是自托管的)。当我尝试删除一个时,出现错误消息。

Error: Failed to delete integration runtime.
Detail: The document cannot be deleted since it is referenced by AzureSqlDatabaseContoso.

但这不是事实。目前没有“ AzureSqlDatabaseContoso”这样的东西。也许以前可能曾经去过那里。我也对源代码进行了搜索,它不在整个Git分支中。 如何删除它?

2 个答案:

答案 0 :(得分:1)

这以前发生在我身上。我只是用相同的名称重新创建了幻像对象,将其与要删除的IR关联,然后删除了新创建的对象(在这种情况下为AzureSqlDatabaseContoso)。

之后,ADF让我删除基础IR。很奇怪,但是对我有用。

答案 1 :(得分:0)

答案就是JeffRamos发表的内容。另一种选择是在git源中重命名文件和“名称”字段,然后重新加载adf并将其删除。

Source/linkedService/AzureKeyVault.json 

将此重命名为

Source/linkedService/test.json 

json内容

{
    "name": "AzureKeyVault",
    "properties": {
        "annotations": [],
        "type": "AzureKeyVault",
        "typeProperties": {
            "baseUrl": "https://mykv.vault.azure.net/"
        }
    }
}

重命名“名称”字段

{
    "name": "test",
    "properties": {
        "annotations": [],
        "type": "AzureKeyVault",
        "typeProperties": {
            "baseUrl": "https://mykv.vault.azure.net/"
        }
    }
}