I have a setup where, every week the Virtual Machines are updated using a deployment schedule.
The Deployment Schedule also includes a Post and Pre-scripts to start any VMs that are found shut-down and once updated, it puts them back to shut-down.
Everything works fine and the updates where also installed OK.
My problem is that post updates, I'm utilizing a script to export data which shows the critical and security updates for audit reports, however, VMs that are continuously running are reporting fine, whereas VMs that are shutdown after the post script, report data of when the VM is started.
This is the script I'm using:
Update
| join kind=fullouter (UpdateSummary) on ResourceId
| where TimeGenerated1 >= ago(48h)
| summarize arg_max(TimeGenerated1, CriticalUpdatesMissing, SecurityUpdatesMissing) by Computer, ResourceGroup
Below is what I'm encountering.
The update didn't last long, is there any time required for the VM's to be running, in order to fetch latest update data on the log analytics?