如何使用自动化脚本将 Azure 数据工厂 ARM 模板导出到本地驱动器?

How to export Azure Data Factory ARM template using Automation script to local drive?

我想使用自动化脚本将 Azure 数据工厂 ARM 模板(从工作室)导出到本地驱动器以将其推送到 GitLab,因为 ADF 不支持与 GitLab 的本机集成。 如何通过自动化脚本(PowerShell、CLi、RestAPI 等)导出 ADF ARM 模板。 请参阅随附的 ADF ARM 模板导出页面。

这是一个已知的限制。您不能以编程方式导出 ARM 模板。

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.

有许多类似的请求共享 here ADF shall be able to export ARM template by powershell 作为想法和反馈,您可以为官方 MS 响应点赞或添加一个。