Azure-Player / azure.datafactory.tools

Tools for deploying Data Factory (v2) in Microsoft Azure
https://azureplayer.net/adftools
MIT License
207 stars 69 forks source link

Incremental deployment uses only first file found under factory folder. #344

Closed MartaUch closed 1 year ago

MartaUch commented 1 year ago

Hello,

I'm still investigating how to enable deployment of global parameters for three different environment and usage of incremental deployment feature. In my case I would have three files under /factory folder:

My expectation is that during incremental deployment global parameter "adftools_deployment_state" with hashes will be created in each ADF instance after first initial run on each environment.

I tested the approach on POC environment and I'm running into an issue. I have currently two files under /factory:

Here are the settings: image Two files are recognized: image Global parameters are deployed from: image Later the step "STEP: Updating (incremental) deployment state..." starts and it takes into account FIRST json file found under the /factory folder: image As a result, "adftools_deployment_state" is not deployed to deep-poc-dev-adf-we instance.

I was trying to find this part in the code and what I found so far is that we take always first object from factories: image

QUESTION

Thank you in advance! Marta