使用ci cd的Azure Devops部署

时间:2020-09-19 05:41:09

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

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

1 个答案:

答案 0 :(得分:0)

在模板的参数部分,您可以指定在部署资源时可以输入的值。模板中最多只能包含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