简体   繁体   English

如何在 ADF version2 中为 azure key vault 创建链接服务?

[英]How to create a linked service for azure key vault in ADF version2?

I've to create a pipeline which will copy data from one blob to another blob & I would like to use azure data factory version 2 with key vault.我必须创建一个将数据从一个 blob 复制到另一个 blob 的管道,我想将 Azure 数据工厂版本 2 与密钥保管库一起使用。 How can I do that?我怎样才能做到这一点?

You need a Azure Key Vault linked service to be created first -您需要先创建一个Azure Key Vault链接服务 -

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

Then when you are creating your Azure Blob Storage linkedservice just refer the Azure Key Vault property for your connectiongString or sasUri to reference the secret stored in your key vault -然后,当您创建Azure Blob Storage linkedservice 时,只需为您的connectiongStringsasUri引用Azure Key Vault属性,以引用存储在您的 Key Vault 中的秘密 -

{
    "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"
        }
    }
}

Detailed information to be found here .详细信息可在此处找到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM