Getting only the current configuration of a Windows Service using VM inventory

Tiemen Jansen 0 Reputation points
2024-02-01T21:08:56.6666667+00:00

When I search the 'ConfigurationData' table used for tracking the inventory of virtual machines, I don't ONLY get the current inventory. I also get the change history. I thought the 'ConfigurationChange' table is meant for this. The data I need is actually the same as what is available through the web portal.User's image

When i use Log analytics i get this: User's image

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,017 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Clive Watson 7,866 Reputation points MVP Volunteer Moderator
    2024-02-02T10:45:11.3866667+00:00

    Does the result change if you specifically get the most recent record, using arg_max?

    ConfigurationData
    | where Computer =="VM01"
    | where ConfigDataType =='WindowsServices'
    | summarize arg_max(TimeGenerated, *) by Computer, SvcName
    | order by SvcName asc 
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.