【问题标题】:Parameterize Integration Runtime in linked services of Azure data factory在 Azure 数据工厂的链接服务中参数化集成运行时
【发布时间】:2020-06-30 20:16:10
【问题描述】:

我已经为 Azure 数据工厂配置了 CI/CD 管道。我需要为 QA 环境的 Azure 数据工厂中的某些链接服务提供单独的集成运行时。当我使用来自 adf_publish 分支的 DEV Azure 数据工厂的 ARM 模板进行部署时,我只能为 sql 服务器名称提供参数值,而不是 IR。有什么方法可以在链接服务中提供集成运行时的价值。 提前致谢

Please click here to see the screenshot

【问题讨论】:

    标签: devops azure-data-factory


    【解决方案1】:

    这可以通过以下来自微软https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment#use-custom-parameters-with-the-resource-manager-template的链接来实现

    可以在集成运行时arm模板下添加新名称。

    【讨论】:

      【解决方案2】:

      使用 arm-template-paramerters-definition.json 中 linkedServices 的 connectVia 属性从 CI/CD 更改集成运行时

      "Microsoft.DataFactory/factories/linkedServices": {
              "*": {
                  "properties": {
                      "typeProperties": {
                          "baseUrl": "-::string"
                                        },
                      "connectVia": {
                          "*": "="
                                    }
                               }
                   }
         }
      

      【讨论】:

      • 这是一个比公认的答案更直接的答案。
      【解决方案3】:

      您可以转到 ADF 实例的“管理”,然后转到“集成运行时”为 ADF 创建新的 Azure IR。

      您可以基于 azure 或自托管创建 azure IR。

      欲了解更多信息,请查看以下文档:

      https://docs.microsoft.com/en-us/azure/data-factory/concepts-integration-runtime

      https://docs.microsoft.com/en-us/azure/data-factory/create-self-hosted-integration-runtime

      【讨论】:

      • 感谢您的回复。在这里,我已经创建了 IR,但我的问题是我几乎没有指向 DEV IR 的链接服务。我需要通过部署将其更改为 QA IR。我可以手动更改它,但需要使其自动化。我找不到任何变量来改变 IR。有什么办法吗?
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-12-15
      • 1970-01-01
      • 1970-01-01
      • 2022-08-03
      • 2020-09-27
      • 1970-01-01
      • 2020-03-03
      相关资源
      最近更新 更多