Closed vivuu1989 closed 2 years ago
Hi @vivuu1989 not really sure if there is some capability to do this... I would suggest to open a ticket on https://developercommunity.visualstudio.com/search?space=21 to get right eyes on it, since this repo is mostly for questions about templates located in this repo.
in azuredevops yaml pipeline, can we have nested forloop ? or multiple for loop.
My requirements here is to iterate the pipeline through the mapped variable values and this should be done across environments.
Eg: In my ADO repo i have 10 folders for each apps and in each apps i have 4 different variabletemplate files for each environment ,namely "vars-development.yaml, vars-staging.yaml, vars-prod.yaml, vars-dr.yaml"
What i need to have is in each of this environment specific variable template, i need to have differet alert rule inputs (there will be multiple alerts per environment ). variables.development.yaml
azure-pipeline.yaml
loganalytic-alertrulet.yaml
so here I am using arm template to create the alert and need to generate these alert rules across the 4 environments. in Azurepipeline yaml, How i can use the 2 level foreach iteration for alert rules as well as environment widse.