使用 Azure 数据工厂实用程序生成 ARM 模板不会为数据工厂资源生成位置标记

Using Azure Data Factory utilities to generate ARM Template does not generate the location tag for the Data Factory resource

在 Azure 数据工厂上使用“发布”时,生成 ARM 模板

        "name": "[parameters('factoryName')]",
        "type": "Microsoft.DataFactory/factories",
        "apiVersion": "2018-06-01",
        "location": "[parameters('dataFactory_location')]"

当我在构建管道 (@microsoft/azure-data-factory-utilities) 中使用 NPM 任务时,它会生成以下内容:

        "name": "[parameters('factoryName')]",
        "type": "Microsoft.DataFactory/factories",
        "apiVersion": "2018-06-01",
        "properties": {}

运行我本地机器上的进程有相同的结果(无效的 ARM 模板)

因此当前通过 CI/CD 管道创建 ARM 模板不会创建有效的 ARM 模板。

我已按照这些说明在我的管道中运行 https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment-improvements

非常欢迎任何建议或指点。

我无法重现该问题,但建议不要将工厂包含在 ARM 模板中,如此处所述:https://docs.microsoft.com/en-us/azure/data-factory/author-global-parameters#cicd

在为 CI/CD 使用自动发布流程时,包括工厂会导致其他下游问题,例如删除源工厂上的 git 配置,因此推荐使用 PowerShell 部署全局参数.通过在 ARM 模板中不包括工厂,将不会发生此错误。欢迎在这里继续讨论:https://github.com/Azure/Azure-DataFactory/issues/285