如何在ADF版本2中为azure密钥保管库创建链接服务?

问题描述 投票:0回答:1

我要创建一个管道,将数据从一个blob复制到另一个blob,我想使用带有密钥库的azure数据工厂版本2。我怎样才能做到这一点?

azure azure-data-factory azure-data-factory-2
1个回答
1
投票

您需要首先创建Azure Key Vault链接服务 -

{
    "name": "AzureKeyVaultLinkedService",
    "properties": {
    "type": "AzureKeyVault",
    "typeProperties": {
        "baseUrl": "https://<azureKeyVaultName>.vault.azure.net"
        }
    }
}

然后,当您创建Azure Blob Storage链接服务时,只需引用Azure Key Vault属性为connectiongStringsasUri引用存储在密钥库中的秘密 -

{
    "name": "AzureStorageLinkedService",
    "properties": {
        "type": "AzureStorage",
        "typeProperties": {
            "connectionString": {
                "type": "AzureKeyVaultSecret",
                "secretName": "<secret name in AKV>",
                "store":{
                    "referenceName": "<Azure Key Vault linked service>",
                    "type": "LinkedServiceReference"
                }
            }
        },
        "connectVia": {
            "referenceName": "<name of Integration Runtime>",
            "type": "IntegrationRuntimeReference"
        }
    }
}

有关详细信息,请访问here

© www.soinside.com 2019 - 2024. All rights reserved.