[英]How to copy files from sharepoint into blob storage azure data factory v2 using Odata linked service
[英]How to provide connection string dynamically for azure table storage/blob storage in Azure data factory Linked service
動態更改Azure數據工廠中Tablestorage或Blob存儲的連接字符串。 目前,我可以看到與數據庫相關的數據集的這種選擇嗎? 如何在表或Blob存儲中實現相同
我相信這就是您想要的。 https://docs.microsoft.com/zh-cn/azure/data-factory/parameterize-linked-services如文檔所述,UI僅支持8個鏈接服務。 對於其他人,您可以按照相同的模式直接更改json代碼。
{
"name": "AzureBlobStorage12",
"type": "Microsoft.DataFactory/factories/linkedservices",
"properties": {
"parameters": {
"accountName": {
"type": "String"
},
"accountKey": {
"type": "String"
}
},
"annotations": [],
"type": "AzureBlobStorage",
"typeProperties": {
"connectionString": "DefaultEndpointsProtocol=https;AccountName=@{linkedService().accountName};AccountKey=@{linkedService().accountKey};EndpointSuffix=core.windows.net;"
}
}
}
您不能將整個連接字符串用作表達式。 您需要分別參數化每個零件。 確保您注意到參數表字段。 然后,每次使用鏈接服務時,您都可以將不同的值傳遞給它。
在“新建鏈接的服務” Azure表存儲中,單擊“高級”,然后選中“以JSON格式指定動態內容adf”
Copy the below JSON to make it Table Storage Parameterize : { "name": "Table", "type": "Microsoft.DataFactory/factories/linkedservices", "properties": { "type": "AzureTableStorage", "typeProperties": { "sasUri": { "type": "SecureString", "value": "@{linkedService().sasUriParam}" } }, "parameters": { "sasUriParam": { "type": "String" } }, "annotations": [] } }
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.