Log analytics query to get specific version from windows workstation or server

Paul Finol 171 Reputation points
2021-04-17T11:37:50.32+00:00

I am getting information from my MMA agent on workstations and server, all events selected
what is the query to get specific version from each equipment?

i found this link with the tables available but cant find Windows version as a column, only MMA agent version
https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/devicehealth

88745-image.png

major and minor version is not detailed enough since three different OS have the same major/minor version

https://learn.microsoft.com/en-us/windows/win32/sysinfo/operating-system-version

88793-image.png

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
0 comments No comments
{count} vote

4 answers

Sort by: Most helpful
  1. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2021-04-17T13:07:08.48+00:00

    It could be a query issue. Try using the following Query
    Heartbeat | where TimeGenerated > ago(1h) | summarize dcount(Computer) by Computer,OSType,OSName,OSMajorVersion, OSMinorVersion

    I am able to get the result as below:
    88763-image.png

    1 person found this answer helpful.
    0 comments No comments

  2. Paul Finol 171 Reputation points
    2021-04-17T22:12:10.503+00:00

    i found the answer to my question on the DeviceInfo Log but this is associated with Azure Sentinel
    I cant believe is not available from the Windows Device directly

    https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/deviceinfo

    88777-image.png

    88788-image.png

    1 person found this answer helpful.
    0 comments No comments

  3. Paul Finol 171 Reputation points
    2021-04-17T14:38:53.983+00:00

    Yes but that would give me three options for the final version
    What I mean is that is major version 10 and major version 0 could be windows 10 windows server 2019 and Windows server 2016

    0 comments No comments

  4. Tiago Duarte 0 Reputation points
    2023-02-02T09:40:58.6433333+00:00

    I have the exact same issue.

    I know that 6.3 is Windows Server 2012 R2, however 10.0 is 2016, 2019 or 2022.

    After all this time, the Microsoft Monitoring Agent should be sending that info correctly.

    The Azure Monitor Agent already gives the correct OS name in the OSName field.

    Example:

    Computer Category OSName OSMajorVersion OSMinorVersion
    VM1 Azure Monitor Agent Windows Server 2019 Datacenter 10 0
    VM2 Azure Monitor Agent Windows 10 Enterprise 10 0

    I think they are really just focusing in AMA now, as MMA is going to be decommissioned next year


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.