# Monaco v2 env variables as part of the name

**URL:** <https://community.dynatrace.com/t/monaco-v2-env-variables-as-part-of-the-name/38455>\
**Category:** Open Q&A\
**Tags:** monaco\
**Created:** [February 15, 2023, 12:32pm UTC](https://community.dynatrace.com/t/monaco-v2-env-variables-as-part-of-the-name/38455 "2023-02-15T12:32:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bert\_VanderHeyd](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bert_vanderheyd/32/162_2.png) [@Bert\_VanderHeyd](https://community.dynatrace.com/u/Bert_VanderHeyd)\
**Post date:** [February 15, 2023, 12:32pm UTC](https://community.dynatrace.com/t/monaco-v2-env-variables-as-part-of-the-name/38455/1 "2023-02-15T12:32:13Z")

</div>

Hey guys,

I am trying out the new monaco v2 release candidate.

The convert works nice but I already found something unsupported.

V1 config …

```markup
# Team BLUE
ao-team-blue-nonprod: 
  - name: "AO - Team - BLUE - {{ .Env.MONACO_ENVNAME }}"
  - team: "BLUE"
  - env: "{{ .Env.MONACO_ENVNAME }}"

```

V2 config …

```markup
- id: ao-team-blue-nonprod
  config:
    name:
      name: MONACO_ENVNAME
      type: environment
    parameters:
      env:
        name: MONACO_ENVNAME
        type: environment
      team: BLUE
    template: ao-team-withenv.json
  type:
    api: alerting-profile

```

The “env” parameter is fine because the entire parameter comes from the environment variable Monaco\_envname. However, the name should be a combination.&nbsp; Like: “AO - Team - BLUE - {{ .Env.MONACO\_ENVNAME }}”

Any ideas here, workaround.

---

<div class="post-metadata">

**Author:** ![Bert\_VanderHeyd](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bert_vanderheyd/32/162_2.png) [@Bert\_VanderHeyd](https://community.dynatrace.com/u/Bert_VanderHeyd)\
**Post date:** [February 23, 2023, 2:50pm UTC](https://community.dynatrace.com/t/monaco-v2-env-variables-as-part-of-the-name/38455/2 "2023-02-23T14:50:26Z")

</div>

I found a possible solution. One of the supported types is called compound and looks exactly what I would need.&nbsp;[https://www.dynatrace.com/support/help/manage/configuration-as-code/configuration/yaml-configuration#compound](https://www.dynatrace.com/support/help/manage/configuration-as-code/configuration/yaml-configuration#compound)

Since we are using some configurations based on team and on environment I am now preprocessing (generating) the yaml files via powershell. Also a great way to avoid to much config.

---

<div class="post-metadata">

**Author:** ![PedroDeodato](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pedrodeodato/32/32284_2.png) [@PedroDeodato](https://community.dynatrace.com/u/PedroDeodato)\
**Post date:** [February 23, 2023, 6:56pm UTC](https://community.dynatrace.com/t/monaco-v2-env-variables-as-part-of-the-name/38455/3 "2023-02-23T18:56:23Z")

</div>

Great solution,&nbsp;[@Bert\_VanderHeyd](https://community.dynatrace.com/user/11940)&nbsp;!

Started reading your original post and became quite scared, as I use “combinations” on names A LOT !!
