2 thoughts on “Get The List of Installed Patches on Azure VMs”

Leave a comment...

  1. Hello Charbel,

    Thanks for sharing this article.

    Unfortunately, am trying the same solution with Azure monitor agent which is not updating the windows update information in the LAW table. Could you please advise me how to proceed further.

    Thanks,
    Ganesh

  2. Hello Ganesh, Thank you for your feedback!

    If the Azure Monitor Agent (AMA) is not updating Windows Update information in the Log Analytics Workspace (LAW), here are a few things to check:

    1. Ensure the Required Logs Are Enabled
    By default, AMA does not collect Windows Update logs. You need to configure a Data Collection Rule (DCR) to collect the relevant event logs. When creating or updating a DCR:
    – Select “Windows Event Logs” as the data source type.
    – Choose “Custom” and enter the following XPath query to collect Windows Update logs:

    Microsoft-Windows-WindowsUpdateClient/Operational!*

    This configuration collects all events under `Microsoft-Windows-WindowsUpdateClient/Operational`. If needed, you can filter specific Event IDs to reduce log ingestion.

    2. Query LAW for Incoming Data
    Once the DCR is updated and applied, you can verify data ingestion by running this **KQL query** in Log Analytics:

    Event
    | where EventLog == "Microsoft-Windows-WindowsUpdateClient/Operational"
    | sort by TimeGenerated desc

    I hope this helps!

    Best regards,
    -Charbel

Let us know what you think, or ask a question...