我已经尝试了几个测试,但似乎我们无法通过 ARM 模板更改链接服务属性。你可以参考这个post。
Gen1的关联服务如下:
{
"name": "[concat(parameters('factoryName'), '/AzureBlobStorage1')]",
"type": "Microsoft.DataFactory/factories/linkedServices",
"apiVersion": "2018-06-01",
"properties": {
"annotations": [],
"type": "AzureBlobStorage",
"typeProperties": {
"connectionString": "[parameters('AzureBlobStorage1_connectionString')]"
}
},
"dependsOn": []
}
Gen2的关联服务如下:
{
"name": "[concat(parameters('factoryName'), '/AzureDataLakeStorage1')]",
"type": "Microsoft.DataFactory/factories/linkedServices",
"apiVersion": "2018-06-01",
"properties": {
"annotations": [],
"type": "AzureBlobFS",
"typeProperties": {
"url": "[parameters('AzureDataLakeStorage1_properties_typeProperties_url')]",
"accountKey": {
"type": "SecureString",
"value": "[parameters('AzureDataLakeStorage1_accountKey')]"
}
}
},
"dependsOn": []
}