Is there a way to deploy complete variable group variables
to Azure Function app settings
using Yaml.
Below is the yaml code and how I am deploying variable :-
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.
but if I have many variables, I have to mentions every variable in appSettings
as key $(key)
.
So Is there a way to deploying all my variables from variable group to azure function app setting.
Any response is greatly appreciated. Thanks in advance.