<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Monaco error regarding env-token-name in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197464#M23080</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/53859"&gt;@Sahil2308&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to add the token to your system as environment variable as explained in the &lt;A href="https://dynatrace-oss.github.io/dynatrace-monitoring-as-code/commands/deploying-projects#running-the-tool" target="_blank" rel="noopener"&gt;documentation&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_1-1667121641054.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8300i75E9AA2DC43BB2C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_1-1667121641054.png" alt="Yosi_Neuman_1-1667121641054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Oct 2022 09:21:14 GMT</pubDate>
    <dc:creator>Yosi_Neuman</dc:creator>
    <dc:date>2022-10-30T09:21:14Z</dc:date>
    <item>
      <title>Monaco error regarding env-token-name</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197461#M23079</link>
      <description>&lt;P&gt;Output from cmd : "monaco --environments=environments.yaml -p=auto-tagging"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2022-10-30 12:55:32 INFO Dynatrace Monitoring as Code v1.8.5&lt;BR /&gt;2022-10-30 12:55:32 INFO Executing projects in this order:&lt;BR /&gt;2022-10-30 12:55:32 INFO 1: auto-tagging (0 configs)&lt;BR /&gt;2022-10-30 12:55:32 INFO Processing environment test1...&lt;BR /&gt;2022-10-30 12:55:32 INFO Deployment summary:&lt;BR /&gt;2022-10-30 12:55:32 ERROR Deployment to test1 failed with error!&lt;BR /&gt;2022-10-30 12:55:32 ERROR environment variable Monaco_Test not found&lt;BR /&gt;2022-10-30 12:55:32 ERROR errors during deployment! Check log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my environments.yaml file:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test1&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"test1"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;env-url&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"https://*******.live.dynatrace.com"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;env-token-name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Monaco_Test"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please guide me how to set the token in environments.yaml file, am I doing it correctly? I have created the token in Saas with required permissions.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 07:41:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197461#M23079</guid>
      <dc:creator>Sahil2308</dc:creator>
      <dc:date>2022-10-30T07:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Monaco error regarding env-token-name</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197464#M23080</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/53859"&gt;@Sahil2308&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to add the token to your system as environment variable as explained in the &lt;A href="https://dynatrace-oss.github.io/dynatrace-monitoring-as-code/commands/deploying-projects#running-the-tool" target="_blank" rel="noopener"&gt;documentation&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_1-1667121641054.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8300i75E9AA2DC43BB2C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_1-1667121641054.png" alt="Yosi_Neuman_1-1667121641054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 09:21:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197464#M23080</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2022-10-30T09:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Monaco error regarding env-token-name</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197465#M23081</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/6931"&gt;@Yosi_Neuman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes I did mention the API token name in environments.yaml file.&lt;/P&gt;&lt;P&gt;This is my environments.yaml file:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test1&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"test1"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;env-url&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"https://*******.live.dynatrace.com"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;env-token-name&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Monaco_Test"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here "&lt;SPAN&gt;Monaco_Test" is my API token name created in Dynatrace&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do I need to specify the value itself somewhere in yaml?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 09:42:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197465#M23081</guid>
      <dc:creator>Sahil2308</dc:creator>
      <dc:date>2022-10-30T09:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Monaco error regarding env-token-name</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197468#M23082</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/53859"&gt;@Sahil2308&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to add the token name and value in your system environment variable settings&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_1-1667127313084.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8302i250A819098D3589F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_1-1667127313084.png" alt="Yosi_Neuman_1-1667127313084.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_0-1667127250754.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8301iC6A0E3FD9E4129CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_0-1667127250754.png" alt="Yosi_Neuman_0-1667127250754.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 10:55:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197468#M23082</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2022-10-30T10:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Monaco error regarding env-token-name</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197469#M23083</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/6931"&gt;@Yosi_Neuman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the help, this indeed resolved my issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . I am using Ubuntu so I hve set the env in /etc/environment file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have run the cmd: "monaco -e=environments.yaml -p=auto-tag1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;o/p:&lt;/P&gt;&lt;P&gt;You are currently using the old CLI structure which will be used by&lt;BR /&gt;default until monaco version 2.0.0&lt;/P&gt;&lt;P&gt;Check out the beta of the new CLI by adding the environment variable&lt;BR /&gt;"NEW_CLI".&lt;/P&gt;&lt;P&gt;We can't wait for your feedback.&lt;/P&gt;&lt;P&gt;2022-10-30 18:17:14 INFO Dynatrace Monitoring as Code v1.8.5&lt;BR /&gt;2022-10-30 18:17:15 INFO Executing projects in this order:&lt;BR /&gt;2022-10-30 18:17:15 INFO 1: auto-tag1 (0 configs)&lt;BR /&gt;2022-10-30 18:17:15 INFO Processing environment test1...&lt;BR /&gt;2022-10-30 18:17:15 INFO Processing project auto-tag1...&lt;BR /&gt;2022-10-30 18:17:15 INFO Deployment summary:&lt;BR /&gt;2022-10-30 18:17:15 INFO Deployment finished without errors&lt;BR /&gt;2022-10-30 18:17:15 INFO There is no delete file delete.yaml found in delete.yaml. Skipping delete config.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I cannot see the changes(creation of auto-tagging rule) in Tenant.&lt;/P&gt;&lt;P&gt;This is my file dir:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;root@sahil-VirtualBox:/opt/monacoDir1# tree .&lt;BR /&gt;.&lt;BR /&gt;├── auto-tag1&lt;BR /&gt;│&amp;nbsp;&amp;nbsp; ├── auto-tag.yaml&lt;BR /&gt;│&amp;nbsp;&amp;nbsp; └── Host-Group-Name.json&lt;BR /&gt;├── environments.yaml&lt;BR /&gt;├── monaco&lt;BR /&gt;└── README.md&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;contents of auto-tag.yaml file:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;config&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;Host-Group-Name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Host-Group-Name.json"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Host-Group-Name&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Resistance is futile!"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;contents of Host-Group-Name.json file:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;{&lt;BR /&gt;"name": "{{ .name }}",&lt;BR /&gt;"rules": [&lt;BR /&gt;{&lt;BR /&gt;"type": "HOST",&lt;BR /&gt;"enabled": true,&lt;BR /&gt;"valueFormat": "MonacoTest",&lt;BR /&gt;"propagationTypes": [],&lt;BR /&gt;"conditions": [&lt;BR /&gt;{&lt;BR /&gt;"key": {&lt;BR /&gt;"attribute": "HOST_DETECTED_NAME"&lt;BR /&gt;},&lt;BR /&gt;"comparisonInfo": {&lt;BR /&gt;"type": "STRING",&lt;BR /&gt;"operator": "EQUALS",&lt;BR /&gt;"value": "AZSG-D-DTS3W",&lt;BR /&gt;"negate": false,&lt;BR /&gt;"caseSensitive": true&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Everything seems alright&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 12:53:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197469#M23083</guid>
      <dc:creator>Sahil2308</dc:creator>
      <dc:date>2022-10-30T12:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Monaco error regarding env-token-name</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197526#M23097</link>
      <description>&lt;P&gt;Hey, thanks for the help, got the issue resolved.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 05:59:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Monaco-error-regarding-env-token-name/m-p/197526#M23097</guid>
      <dc:creator>Sahil2308</dc:creator>
      <dc:date>2022-11-01T05:59:26Z</dc:date>
    </item>
  </channel>
</rss>

