Is there an official way to export ADF ARM Templates via API, Azure CLI, or any terminal-based script?

Napsty 45 Reputation points
2025-06-16T19:07:55.99+00:00

Hi, I’m working on integrating a CI/CD system using Bitbucket as the source repository and Azure DevOps as the deployment pipeline. The setup works well—developers manually export the Azure Data Factory ARM templates and commit them to the Bitbucket repository, which then triggers the pipeline and deploys the templates to the target workspace successfully.

However, I’m looking to automate the ARM template export step. Is there any official or supported method (via REST API, Azure CLI, PowerShell, or any terminal script) to programmatically export the ARM templates from Azure Data Factory?

Automating this step would greatly improve our workflow. Any guidance or workarounds are appreciated. Thank you!

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,639 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 36,151 Reputation points MVP Volunteer Moderator
    2025-06-18T04:02:31.2033333+00:00

    Similar thread :

    https://learn.microsoft.com/en-us/answers/questions/2285034/how-to-export-full-azure-data-factory-arm-template

    Unfortunately ,This is a known limitation. You cannot programmatically export the ARM template.

    The export template feature doesn't support exporting Azure Data Factory resources. To learn about how you can export Data Factory resources, see Copy or clone a data factory in Azure Data Factory.

    There are a number of similar requests shared here ADF shall be able to export ARM template by powershell as Ideas and feedback, you can upvote or add one too for official MS response.

    You can try Power automate recorder to implement that flow if need be :

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/recording-flow


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.