# Monaco - dashboard - managment zone id

**URL:** <https://community.dynatrace.com/t/monaco-dashboard-managment-zone-id/32628>\
**Category:** Open Q&A\
**Tags:** monaco\
**Created:** [September 8, 2021, 1:28pm UTC](https://community.dynatrace.com/t/monaco-dashboard-managment-zone-id/32628 "2021-09-08T13:28:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [September 8, 2021, 1:28pm UTC](https://community.dynatrace.com/t/monaco-dashboard-managment-zone-id/32628/1 "2021-09-08T13:28:14Z")

</div>

Hi,  
I’m trying to manage the monaco automation.  
I have a problem with the dashboard configuration.  
I have tried to create&nbsp;Service health with managment zone. In a JSON file, I have to provide the management zone id.  
I have created the management zone with Monaco too.  
Please advise how to make Monaco retrieve the appropriate id management zone by itself.  
I try with this configuration:  
json:

```markup
"managementZone": {
"id": "{{ .managmentzone_id }}",
"name": "demo_test"

```

yaml:

```markup
managmentzone_id: project/management-zone/zone.json

```

This configuration create correct dashboard, but without managment zone

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 8, 2021, 7:33pm UTC](https://community.dynatrace.com/t/monaco-dashboard-managment-zone-id/32628/2 "2021-09-08T19:33:00Z")

</div>

The yaml part is wrong in your case, you need to specify the .id or .name suffix depending on what you need to reference:

```markup
managmentzone_id: project/management-zone/zone.id

```

The zone in this case is the name of the entity defined in the yaml file for management zones.

---

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://community.dynatrace.com/u/Raj)\
**Post date:** [December 5, 2023, 2:59pm UTC](https://community.dynatrace.com/t/monaco-dashboard-managment-zone-id/32628/3 "2023-12-05T14:59:20Z")

</div>

Hello&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;when deploying Monaco maintenance, we are stuck with yaml where its not able to take the management zone id and its giving an error:

Invalid configuration - failed to resolve parameter values: parameter `mzID` cannot reference `maintenance:management-zones:XXXXX:id`: referenced config not found

The yaml used here is:&nbsp;[https://github.com/Dynatrace/dynatrace-configuration-as-code/blob/main/cmd/monaco/generate/deletefile/test-resources/project/maintenance-window/settings\_config.yaml](https://github.com/Dynatrace/dynatrace-configuration-as-code/blob/main/cmd/monaco/generate/deletefile/test-resources/project/maintenance-window/settings_config.yaml)

But I guess I am not able pass mzID correctly, can you please advise where to pass management zone id in this YAML?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [December 5, 2023, 5:11pm UTC](https://community.dynatrace.com/t/monaco-dashboard-managment-zone-id/32628/4 "2023-12-05T17:11:02Z")

</div>

Hi,

Do you have defined management zone as them?&nbsp;[https://github.com/Dynatrace/dynatrace-configuration-as-code/blob/main/cmd/monaco/generate/deletefile/test-resources/project/management-zone/settings\_config.yaml](https://github.com/Dynatrace/dynatrace-configuration-as-code/blob/main/cmd/monaco/generate/deletefile/test-resources/project/management-zone/settings_config.yaml)

You need to create a management zone and maintenance window has a reference to that management zone id.

Best regards

---

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://community.dynatrace.com/u/Raj)\
**Post date:** [December 6, 2023, 7:41am UTC](https://community.dynatrace.com/t/monaco-dashboard-managment-zone-id/32628/5 "2023-12-06T07:41:41Z")

</div>

Yes, I found the issue and it was more into config.yaml of maintenance where mzID needs to be defined. Below is format if someone is stuck in similar issue.

 ![Raj_0-1701848455602.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/7df71a765b026e056cce551d877daad14a95bb62.png)
