ADF部署时将ADLS Gen1转换为Gen2



我正在尝试从生产实例到开发实例进行adf部署,以便同步PROD adf上的最新更改。在生产实例中,我们确实有连接到Gen1 ADLS和Gen2 ADLS的链接服务。

但是在DEV中,我们确实只有Gen2 ADLS可用。是否有办法在部署时将具有第一代ADLS的链接服务转换/映射到第二代,反之亦然?

是否有其他方法来实现相同的,如通过替换链接的服务对象在ARM模板?

我已经尝试了几个测试,但似乎我们无法通过ARM模板更改链接的服务属性。你可以参考这篇文章。

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": []
}

最新更新