0
votes

I am trying to do an adf deployment from production instance into the development instance in order to sync up the recent changes on PROD ADF. In the production instance we do have linked services connecting to Gen1 ADLS and Gen2 ADLS.

But in DEV we do have only Gen2 ADLS available. Is there any way to convert/map the Linked Services with Gen1 ADLS into Gen2 at the time of deployment and vice versa.

Is there any other way to achieve the same like by replacing the linked service object in ARM template?

1

1 Answers

0
votes

I've tried several tests but it seems that we can not change linked services attributes via ARM templates. You can refer this post.

The linked service of Gen1 is as follows:

        {
            "name": "[concat(parameters('factoryName'), '/AzureBlobStorage1')]",
            "type": "Microsoft.DataFactory/factories/linkedServices",
            "apiVersion": "2018-06-01",
            "properties": {
                "annotations": [],
                "type": "AzureBlobStorage",
                "typeProperties": {
                    "connectionString": "[parameters('AzureBlobStorage1_connectionString')]"
                }
            },
            "dependsOn": []
        }

The linked service of Gen2 is as follows:

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