'Deploy pipeline artefact to Azure Data Factory with Terraform

I am using Terraform to deploy a pipeline to Azure Data Factory (with azurerm_data_factory_pipeline). As you might be aware, Data Factory is available in 2 modes :

  • ADF live
  • ADF Git (when a Git repo is enabled on the instance of ADF - I use Azure DevOps for the git repo)

When deploying the pipeline to an ADF in ADF live mode, the pipeline is available as expected in the pipeline folder of ADF Workspace. No problem here.

When deploying the pipeline to an ADF in Git mode, the pipeline is unavailable in the pipeline folder of ADF Workspace. The pipeline is deployed correctly (Terraform apply green)

The pipeline is available if I detach the Git repo from the ADF (thus back in ADF Live mode). (It is possible to import the pipeline from ADF Live mode to ADF Git mode by reattaching the repo to ADF using the import parameter in the configuration window - but this is not what I want)

I want to deploy my pipeline with Terraform straight into the ADF pipeline folder when in Git mode. Azurerm_data_factory_pipeline has a "folder" parameter, but I am not sure if it is the one to use to modify the behaviour, or if it is even possible.

Anyone of you know, thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source