# monaco download configuration fail

**URL:** <https://community.dynatrace.com/t/monaco-download-configuration-fail/39378>\
**Category:** Open Q&A\
**Tags:** monaco\
**Created:** [April 19, 2023, 9:02pm UTC](https://community.dynatrace.com/t/monaco-download-configuration-fail/39378 "2023-04-19T21:02:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laszlo](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@Laszlo](https://community.dynatrace.com/u/Laszlo)\
**Post date:** [April 19, 2023, 9:02pm UTC](https://community.dynatrace.com/t/monaco-download-configuration-fail/39378/1 "2023-04-19T21:02:54Z")

</div>

monaco version 2.0.0

I am trying to download the configuration from the free trial Dynatrace instance with the following command:

monaco download --url “https://{environmentid}.live.dynatrace.com” --token "dt0c01.\*\*\*\*\*\*\*\*\*\*.\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*"When I run it I get the following error:2023/04/19 16:11:22 ERROR the content of the environment variable “dt0c01.\*\*\*\*\*\*\*\*\*\*\*\*\*.\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*” is not set  
Error: not all necessary information is present to start downloading configurationsIt is strange as the documentation says, I only need the URL and the TOKEN to download the complete configuration.Then I tried to use an environment file and a manifest file following&nbsp;Observability Clinic on Monaco 2.0. video and this command:&nbsp;monaco download --manifest ${ENVIRONMENT\_DIR}/manifest.yaml -e ${ENVIRONMENT\_DIR}/dtenv.yamldtenv.yaml file content:foo:&nbsp; - name: foo&nbsp; - env-url: https://{environmentid}.live.dynatrace.com&nbsp; - env-token-name: "DYNATRACE\_TOKEN"manifest.yaml file content:manifest\_version: 1.0projects:&nbsp; - name: fooenvironments:&nbsp; - group: research&nbsp; &nbsp; entries:&nbsp; &nbsp; &nbsp; - name: foo&nbsp; &nbsp; &nbsp; &nbsp; url:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value: “https://{environmentid}.live.dynatrace.com”&nbsp; &nbsp; &nbsp; &nbsp; token:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value: “DYNATRACE\_TOKEN”&nbsp;Error:2023/04/19 16:43:44 ERROR ../../../deployment/environments/foo/manifest.yaml: error during parsing the manifest: yaml: unmarshal errors:  
line 1: field manifest\_version not found in type manifest.manifest  
line 7: field environments not found in type manifest.manifest  
Error: failed to load manifest ‘../../../deployment/environments/foo/manifest.yaml’

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [April 20, 2023, 4:01am UTC](https://community.dynatrace.com/t/monaco-download-configuration-fail/39378/2 "2023-04-20T04:01:17Z")

</div>

Hi&nbsp;[@Laszlo](https://community.dynatrace.com/user/62040),

you need to set the enviornment variable first, so from PowerShell use the following command and add your token

$env:API\_TOKEN\_ENV\_VAR = ‘dt0c01.xxxxxxxxxxxxxxxxxxxx’

then run the command again with API\_TOKEN\_ENV\_VAR

monaco download --url https://{environmentid}.live.dynatrace.com --token API\_TOKEN\_ENV\_VAR

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [April 20, 2023, 4:11am UTC](https://community.dynatrace.com/t/monaco-download-configuration-fail/39378/3 "2023-04-20T04:11:53Z")

</div>

also, you can set the environment persistently so they should remain even when close the session

[System.Environment]::SetEnvironmentVariable(‘API\_TOKEN\_ENV\_VAR’,‘dt0c01.xxxxxxxxxxxxxxxxxxxx’)

then run the command again with API\_TOKEN\_ENV\_VAR

monaco download --url https://{environmentid}.live.dynatrace.com --token API\_TOKEN\_ENV\_VAR

---

<div class="post-metadata">

**Author:** ![Laszlo](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@Laszlo](https://community.dynatrace.com/u/Laszlo)\
**Post date:** [April 20, 2023, 7:17pm UTC](https://community.dynatrace.com/t/monaco-download-configuration-fail/39378/4 "2023-04-20T19:17:25Z")

</div>

Thanks Mohamed,

It seems to work, but the result is kind of disappointing.

Alert profiles are a basic thing, but cannot be managed by monaco. We hope calling the API with good old curl will yield better results. We need a solution where we can store our configuration as code.

2023/04/20 15:03:37 INFO&nbsp; Downloaded 2 settings for schema builtin:alerting.profile  
2023/04/20 15:03:37 WARN&nbsp; Downloaded setting of schema “builtin:alerting.profile” will be discarded. Reason: “Default” cannot be managed via configuration as code  
2023/04/20 15:03:37 WARN&nbsp; Downloaded setting of schema “builtin:alerting.profile” will be discarded. Reason: “Default for ActiveGate Token Expiry” cannot be managed via configuration as code

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [April 21, 2023, 3:25am UTC](https://community.dynatrace.com/t/monaco-download-configuration-fail/39378/5 "2023-04-21T03:25:51Z")

</div>

Hi&nbsp;[@Laszlo](https://community.dynatrace.com/user/62040),

alerting profiles will be downloaded but not the default alerting profiles, the default alerting profiles are already available in every environment,

for instance, I have two alerting profiles that are not the “Default” and “Default for ActiveGate Token Expiry”, and the alerting profiles I’ve created have already been downloaded while the default failed. so the total will be 4 alerting profiles including the default profiles

2023/04/21 05:16:24 INFO Downloaded 4 settings for schema builtin:alerting.profile  
2023/04/21 05:16:24 WARN Downloaded setting of schema “builtin:alerting.profile” will be discarded. Reason: “Default” cannot be managed via configuration as code  
2023/04/21 05:16:24 WARN Downloaded setting of schema “builtin:alerting.profile” will be discarded. Reason: “Default for ActiveGate Token Expiry” cannot be managed via configuration as code

as per the log you’ve provided, it seems that you don’t have any other alerting profiles except for the default ones
