【问题标题】:Azure Devops Deployment using ci cd使用 ci cd 部署 Azure Devops
【发布时间】:2023-03-16 09:28:01
【问题描述】:

如果 arm 模板参数超过 256,知道如何使用 devops ci cd 部署 adf 管道

【问题讨论】:

    标签: azure azure-devops continuous-integration continuous-deployment


    【解决方案1】:

    在模板的参数部分,您可以指定部署资源时可以输入的值。模板中的参数限制为 256 个。 您可以通过使用包含多个属性的对象来减少参数数量。

    "parameters": {
      "<parameter-name>" : {
        "type" : "<type-of-parameter-value>",
        "defaultValue": "<default-value-of-parameter>",
        "allowedValues": [ "<array-of-allowed-values>" ],
        "minValue": <minimum-value-for-int>,
        "maxValue": <maximum-value-for-int>,
        "minLength": <minimum-length-for-string-or-array>,
        "maxLength": <maximum-length-for-string-or-array-parameters>,
        "metadata": {
          "description": "<description-of-the parameter>"
        }
      }
    }
    

    https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-syntax

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多