08 Sep 2021 02:28 PM
Hi,
I'm trying to manage the monaco automation.
I have a problem with the dashboard configuration.
I have tried to create 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:
"managementZone": {
"id": "{{ .managmentzone_id }}",
"name": "demo_test"
yaml:
managmentzone_id: project/management-zone/zone.json
This configuration create correct dashboard, but without managment zone
Solved! Go to Solution.
08 Sep 2021 08:33 PM
The yaml part is wrong in your case, you need to specify the .id or .name suffix depending on what you need to reference:
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.
05 Dec 2023 02:59 PM
Hello @Julius_Loman 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: https://github.com/Dynatrace/dynatrace-configuration-as-code/blob/main/cmd/monaco/generate/deletefil...
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.
05 Dec 2023 05:11 PM
Hi,
Do you have defined management zone as them? https://github.com/Dynatrace/dynatrace-configuration-as-code/blob/main/cmd/monaco/generate/deletefil...
You need to create a management zone and maintenance window has a reference to that management zone id.
Best regards
06 Dec 2023 07:41 AM
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.