---
title: "Discussion on \"Dynamically include variable groups for each env\" | Hashnode"
description: "Discussion on \"Dynamically include variable groups for each env\". #build-stage.yml\nstages:\n  - stage: Build\n    ${{ if eq(parameters.enableVariableGroups, 'true') }}:\n      variables:\n      - ${{ each group in parameters.variableGroupNames }}:\n          - group: ${{ group }}\n\ndf\n#main-pipeline.yml\n\nstages:\n- templa..."
url: "https://hashnode.com/posts/dynamically-include-variable-groups-for-each-env/65facea544a5c1ada7e188d3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Dynamically include variable groups for each env](https://arsalanz.hashnode.dev/dynamically-include-variable-groups-for-each-env?utm_source=hashnode&utm_medium=feed)

#build-stage.yml stages: - stage: Build ${{ if eq(parameters.enableVariableGroups, 'true') }}: variables: - ${{ each group in parameters.variableGroupNames }}: - group: ${{ group }} df #main-pipeline.yml stages: - templa...

Mar 20, 2024 · 1 min read · arsalanz.hashnode.dev  
Read the article

-   [#azure-pipelines](https://hashnode.com/tag/azure-pipelines)
-   [#azure-devops](https://hashnode.com/tag/azure-devops)
-   [#yaml](https://hashnode.com/tag/yaml)

## Written by

[Arsalan Z](https://hashnode.com/@arsalanz)

@arsalanz

  
[View profile](https://hashnode.com/@arsalanz)

I love coding, automation & coffee.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
