Update changes to Data factory using Azure Resource Manager (ARM) template

Today we will learn on how to use Azure resource manager (ARM) template to publish DEV code changes to UAT data factory

Suppose you are a developer who has developed data factory pipelines. Now, you have to move the code to UAT by creating a new data factory for UAT and publishing the code for pipelines in the UAT data factory. 

Manually, doing all these changes can be time taking and can cause human errors/mistakes. the safest and fastest way to do this is to use ARM template.

Steps to use ARM template:
  • Go to your DEV data factory 
    • Click Export ARM template
    • It will download a zip file. 
      • Unzip the zip file and you will find a json file called "arm_template.json"
      • Open the json and change the connection settings (from DEV to UAT) that you have defined in your DEV data factory
    • Once you are done with the changes, open ARM template by typing "Custom deployment" in the search bar.
      • Click Template deployment in the Marketplace
    • Click "build you own template in the editor"
    • Click load file and load the arm_template.json file that you changed above.
    • After the file is loaded, you will see a lot of resource being listed out in the resource section (maybe or maybe not, depending on how you designed your DEV data factory)
    • Click Save 
    • Now it will ask you to specify few settings:
      • Subscription
      • Resource Group
      • Location
      • Factory Name: <change it to UAT factory for it to create another factory instance>
      • Tick "I agree" checkbox.
    • Click purchase for the ARM to start installing the resources
      • It will create a New data factory instance
      • It will publish all the code of DEV to the above created instance
    • You are done.
    • In some cases, the connections are not properly created. you have to manually test each connection and fix if errors come in the connections.
    • Enjoy

No comments:

Post a Comment