Is there a KQL query to get a list of VMs which are not patched since last month. Below is the sample I have
Update
| where Classification in ("Security Updates", "Critical Updates")
| where UpdateState == 'Needed' and Optional == false and Approved == true
| summarize count() by Classification, Computer, _ResourceId
// This query requires the Security or Update solutions
How to apply the filter to just show the ones which are due since one month