Is there a way, we can define paramters in such a way in our YAML file so that at pipeine execution I will get check boxes for selection.
#Azure DevOps #YAML
Is there a way, we can define paramters in such a way in our YAML file so that at pipeine execution I will get check boxes for selection.
#Azure DevOps #YAML
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prasad RaveendranRank #320 · 7.8K reputationPosted Mar 31, 2024, 3:59 PM EDT
you can define parameters in YAML as below
parameters: - name: booleanParam displayName: 'Enable Feature X' type: boolean default: falseIn this example,
booleanParamis defined as a boolean parameter, and its default value isfalse. When you trigger a pipeline run in Azure DevOps, you'll see a checkbox labeled "Enable Feature X" with the option to check or uncheck it.Saksham GuptaRank #858 · 2.6K reputationPosted Apr 1, 2024, 12:14 AM EDT
Boolean type parameter will give only one checkbox but what I need is multiple checkboxes. Is it possible OOB?
Prasad RaveendranRank #320 · 7.8K reputationPosted Apr 3, 2024, 8:49 PM EDT
I believe, in Azure DevOps YAML pipelines, there isn't a direct way to have multiple checkboxes for selection using YAML parameters. However, you can achieve a similar result by using string parameters with predefined values.
Here's an example of how you can define multiple checkboxes using string parameters:
parameters: - name: featureSelection displayName: 'Select Features' type: string default: 'FeatureA,FeatureB' values: - FeatureA - FeatureB - FeatureC