Extract list of softwares installed on VMs

Michel Sfeir 210 Reputation points
2025-02-13T13:43:00.8433333+00:00

Hello,

When we enable the inventory feature on the virtual machines (RedHat OS), we get a list of installed softwares.

Is there a way to extract or automate this extraction to a csv file, by using KQL/Log analytics?

Best Regards,

Michel

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

Accepted answer
  1. Markapuram Sudheer Reddy 2,050 Reputation points Microsoft External Staff Moderator
    2025-02-15T21:08:22.37+00:00

    Hi Michel Sfeir,

    Before executing KQL query in Log Analytics Workspace, ensure Inventory and Change tracking is enabled on the respective VM by selecting appropriate Log Analytics Workspace.

    You can execute the KQL query in Log Analytics Workspace to retrieve the installed software details.

    For a single VM:

    ConfigurationData 
    | where Computer == "<your vm name>"  
    | where ConfigDataType == "Software" 
    | project Computer,SoftwareName, Publisher, CurrentVersion, Size  
    | order by Computer asc
    

    For multiple VMs:

    ConfigurationData 
    | where Computer in ("<your VM1>", "<your VM2>")  
    | where ConfigDataType == "Software" 
    | project Computer,SoftwareName, Publisher, CurrentVersion, Size  
    | order by Computer asc
    

    Once results were generated, now you can export the respective results into csv file. Click on share option and select the format to export the resultsUser's image

    You can also include relevant columns by modifying your query based on the columns available for "ConfigurationData" table, you can inspect the schema of the ConfigurationData

    ConfigurationData 
    | getschema
    
          (or)
    
    ConfigurationData 
    | take 1 
    

    Please follow the documentation for more information: https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/configurationdata#columns

    If the information is helpful, please click on "Accept Answer" and "Upvote"

    If you have any queries, please do let us know, we will help you.


0 additional answers

Sort by: Most helpful

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.