<?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: Accessing Azure VM or AWS EC2 power status wwith DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Access-Azure-VM-and-AWS-EC2-Power-Status-Using-DQL/m-p/270866#M1740</link>
    <description>&lt;P&gt;Use the lifetime field to determine if the lifetime[end] value is some distance in the past.&lt;/P&gt;&lt;P&gt;Example DQL for Azure VMs whose lifetime[end] is more than one hour in the past&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;fetch dt.entity.azure_vm
| fieldsAdd lifetime[end]
| filter lifetime[end] &amp;lt; now() - 1h&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 24 Feb 2025 18:34:53 GMT</pubDate>
    <dc:creator>marco_irmer</dc:creator>
    <dc:date>2025-02-24T18:34:53Z</dc:date>
    <item>
      <title>Access Azure VM and AWS EC2 Power Status Using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Access-Azure-VM-and-AWS-EC2-Power-Status-Using-DQL/m-p/270838#M1739</link>
      <description>&lt;P&gt;Hi Community,&lt;BR /&gt;Is it possible to access the cloud VM running status from DQL?&lt;BR /&gt;&lt;BR /&gt;In the integration there is a staus field. This seems to be correct even if for some reason the platform-level metrics are not showing correctly. I would like to access this status with DQL to use in a dashboard that I'm building.&lt;BR /&gt;The dt.entity.azure_vm does not have such dimension, it is also not a metric. What is it?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-24 at 14.55.57.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26611i43992F77719AEFCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-02-24 at 14.55.57.png" alt="Screenshot 2025-02-24 at 14.55.57.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; I would appreciate any help.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 12:27:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Access-Azure-VM-and-AWS-EC2-Power-Status-Using-DQL/m-p/270838#M1739</guid>
      <dc:creator>2181</dc:creator>
      <dc:date>2025-12-18T12:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Azure VM or AWS EC2 power status wwith DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Access-Azure-VM-and-AWS-EC2-Power-Status-Using-DQL/m-p/270866#M1740</link>
      <description>&lt;P&gt;Use the lifetime field to determine if the lifetime[end] value is some distance in the past.&lt;/P&gt;&lt;P&gt;Example DQL for Azure VMs whose lifetime[end] is more than one hour in the past&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;fetch dt.entity.azure_vm
| fieldsAdd lifetime[end]
| filter lifetime[end] &amp;lt; now() - 1h&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Feb 2025 18:34:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Access-Azure-VM-and-AWS-EC2-Power-Status-Using-DQL/m-p/270866#M1740</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-02-24T18:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Azure VM or AWS EC2 power status wwith DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Access-Azure-VM-and-AWS-EC2-Power-Status-Using-DQL/m-p/270935#M1742</link>
      <description>&lt;P&gt;Hi Marco,&lt;BR /&gt;&lt;BR /&gt;Thank you for the suggestion.&lt;/P&gt;&lt;P&gt;I tried this approach, but if applied with long enough time window it will mix stopped VMs with the ones that no longer exist. It seems that it's based exclusively on the last metric datapoint available to dynatrace for the given entity.&amp;nbsp; I mentioned in my question that I observed a correct status (running)&amp;nbsp; in Dynatrace even if the VM metrics were not available.&lt;BR /&gt;&lt;BR /&gt;At the same time I observed a message like this in the activeGate log&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;vtopology.provider&amp;gt;, VirtualMachineEntity] Received null or empty PowerState for VirtualMachine: VirtualMachineEntity{type=AZURE_VM, entityId=-524919XXXXXX, name=XXXX-XX-XX-01, resourceId=....&lt;/LI-CODE&gt;&lt;P&gt;It suggests that Dynatrace makes API calls to get power status of the VMs&lt;BR /&gt;&lt;BR /&gt;What I'm interested in is the power status. So as long as the VM exists it should be either running or stopped.&lt;BR /&gt;Then if a VM is deleted the value would be null&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 11:51:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Access-Azure-VM-and-AWS-EC2-Power-Status-Using-DQL/m-p/270935#M1742</guid>
      <dc:creator>2181</dc:creator>
      <dc:date>2025-02-25T11:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Azure VM or AWS EC2 power status wwith DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Access-Azure-VM-and-AWS-EC2-Power-Status-Using-DQL/m-p/291820#M2936</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/84297"&gt;@2181&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN&gt;I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know what works best for you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 12:27:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Access-Azure-VM-and-AWS-EC2-Power-Status-Using-DQL/m-p/291820#M2936</guid>
      <dc:creator>IzabelaRokita</dc:creator>
      <dc:date>2025-12-18T12:27:00Z</dc:date>
    </item>
  </channel>
</rss>

