我已经创建了一个管道,该管道将将数据从一个blob复制到另一个blob&我想将Azure Data Factory 2与Key Vault一起使用。我该怎么做?
您需要首先创建Azure Key Vault
链接服务 -
{
"name": "AzureKeyVaultLinkedService",
"properties": {
"type": "AzureKeyVault",
"typeProperties": {
"baseUrl": "https://<azureKeyVaultName>.vault.azure.net"
}
}
}
然后,当您创建Azure Blob Storage
LinkedService时,只需将Azure Key Vault
属性引用connectiongString
或sasUri
即可引用密钥库中存储的秘密 -
{
"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"
}
}
}
可以在此处找到的详细信息。