簡體   English   中英

如何在 ADF version2 中為 azure key vault 創建鏈接服務?

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

我必須創建一個將數據從一個 blob 復制到另一個 blob 的管道,我想將 Azure 數據工廠版本 2 與密鑰保管庫一起使用。 我怎樣才能做到這一點?

您需要先創建一個Azure Key Vault鏈接服務 -

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

然后,當您創建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"
        }
    }
}

詳細信息可在此處找到。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM