It seems that there is a discrepancy between the machine name stored in the ConfigurationData table and the FQDN stored in the Heartbeat table, causing the query to return empty results when trying to view all machines where a specific service is running.
Based on the information you provided, it appears that the JOIN operation in the query is using the Computer field to link the two tables, which can lead to issues when the machine is onboarded using only the hostname instead of the FQDN. To resolve this issue, you suggested using _ResourceId in the query instead of the Computer field.
I recommend continuing to work with the support team on your raised support call to address this issue. It's important to ensure that the data alignment between ConfigurationData and Heartbeat tables is accurate for proper functionality of Azure Arc for Change Tracking and Inventory.
If you have any further queries, do let us know
If the answer is helpful, please click "Upvote it"