【问题标题】:Why ARMTemplateParametersForFactory.json do not get updated in Azure DevOps for Azure Data Factory为什么 ARMTemplateParametersForFactory.json 在 Azure DevOps for Azure Data Factory 中没有更新
【发布时间】:2021-12-22 09:28:33
【问题描述】:

我需要 Azure 数据工厂的 Azure DevOps CI/CD 技巧。

我有 Azure 数据工厂,它具有将 json 发布到 Azure LogicApps 的 Web 活动。 (ADF Web->Logic Apps) 我已将 URL 作为 Web Activity 中的参数。

Parameter in ADF Pipeline: MyReport_LogicAppURL

我已经编辑了 ARM 模板 管理->ARM模板->编辑参数配置

"Microsoft.DataFactory/factories/pipelines": {
    "properties": {
      "parameters": {
        "MyPremLoad_OnPremDb": {
          "defaultValue": "="
        },
        "MyReport_LogicAppURL": {
          "defaultValue": "="
        }
      }
    }
  },

我保存它然后发布。 但是我在 Git Repo 的 ARMTemplateParametersForFactory.json 中没有看到任何更新

为什么 ARMTemplateParametersForFactory.json 没有在 Azure DevOps for Azure Data Factory 中得到更新?我已经在其他环境中成功地做到了这一点。其他人过去也成功部署了 MyPremLoad_OnPremDb。

【问题讨论】:

    标签: azure-devops azure-data-factory


    【解决方案1】:

    如果你有一个非标准的 git 层次结构,你应该找到或放置 arm-template-parameters-definition.json 在Datafactory 文件夹或根文件夹中。

    更改参数定义后,保存并刷新浏览器以重新加载配置。

    如果您仍然看不到更改,我建议您手动从您的发布分支中删除 arm-template-parameters-definition.json 并从 ADF 门户中删除 save parameter definitions > refresh browser > publish。

    确保您在编辑后拥有正确的json 结构,如果您发现任何特定错误,请分享。

    "Microsoft.DataFactory/factories/pipelines": {
        "properties": {
            "parameters": {
                "MyPremLoad_OnPremDb": {
                    "defaultValue": "="
                },
                "MyReport_LogicAppURL": {
                    "defaultValue": "="
                }
            }
        }
    },
    

    【讨论】:

    • ARMTemplateParametersForFactory.json 文件位于 adf-publish 分支的“my-data-factory”文件夹下。过去有很多其他人设置的参数,但不是我最新的。我在 ARM 模板结构中看不到错误。
    【解决方案2】:

    我为参数添加了默认值,它得到了修复。感谢 KarthikBhyresh-MT 的支持。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-19
      相关资源
      最近更新 更多