【问题标题】:Convert ADLS Gen1 to Gen2 at the time of ADF deployment在 ADF 部署时将 ADLS Gen1 转换为 Gen2
【发布时间】:2021-01-19 11:37:32
【问题描述】:

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

但在 DEV 中,我们确实只有 Gen2 ADLS 可用。 有没有办法在部署时将带有 Gen1 ADLS 的链接服务转换/映射到 Gen2,反之亦然。

有没有其他方法可以通过替换 ARM 模板中的链接服务对象来实现相同的效果?

【问题讨论】:

    标签: azure azure-data-factory azure-data-factory-2 arm-template


    【解决方案1】:

    我已经尝试了几个测试,但似乎我们无法通过 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": []
            }
    

    【讨论】:

    • 我们不能在部署时将 Gen1 的 json 对象替换为 Gen2 吗?
    • 根据这个post,我觉得如果你不做CICD,可以手动更新ARM模板。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-30
    相关资源
    最近更新 更多