Forum Discussion
kashifhafeez
Mar 03, 2020Copper Contributor
log analytics how to pull all updates installed on a server with names
been trying to get a list of all the updates that are installed on a server ? just cant find anything on it. im new to this so if anyone can help
- CliveWatson
Microsoft
What have you got so far, have you created a Log Analytics workspace and deployed agents to the server(s).
There is an update management solution you can deploy.
https://docs.microsoft.com/en-us/azure/automation/automation-update-management
You can use the Update Management solution in Azure Automation to manage operating system updates for your Windows and Linux machines in Azure, in on-premises environments, and in other cloud environments. You can quickly assess the status of available updates on all agent machines and manage the process of installing required updates for servers.
Example queries can be found here:https://docs.microsoft.com/en-us/azure/automation/automation-update-management-query-logs
- kashifhafeezCopper Contributor
CliveWatson
Then you for the response Clive.
I have a Windows and Linux OMS agent installed. i am able to pull data from Windows OMS agent and apply updates and see what updates and patches are missing. these are non-azure vms, so from my on-prem to azure. i can only see updates on the boxes since the agent was installed. nothing before that. i have also tried to quarry to pull list of all the patches that have been applied. i have not been successful in that. i would like to at least get name of patches that are applied and maybe date with it.if i can get some help i would appreciate it.
- CliveWatson
Microsoft
That is how the agent works, data is from installation time. If you wanted older data you'd have to use the Log Analytocs api to import it, but that's not a trivial piece of work.