【发布时间】:2021-03-03 10:51:32
【问题描述】:
有没有办法使用 Yaml 将完整的 variable group variables 部署到 Azure Function app settings。
以下是 yaml 代码以及我如何部署变量:-
variables:
- group: MyDevVariable #This is my variable group name
#Place where I am referring my variables from variable groups
deploy:
steps:
-task: AzureFunctionApp@1
inputs:
appSetting: '-Key1 $(Key1) -Key2 $(Key2)' #Key1 and Key2 are stored in variable group.
但如果我有很多变量,我必须将appSettings 中的每个变量都称为key $(key)。
那么有没有办法将我的所有变量从变量组部署到 azure 函数应用设置。
非常感谢任何回应。 提前致谢。
【问题讨论】:
-
同意 WaitingForGuacamole,没有这种开箱即用的方法可以做到这一点。你可以试试下面的答案,这似乎是个好主意。
标签: azure azure-devops yaml azure-function-app