Forum Discussion

danny_grasso's avatar
danny_grasso
Brass Contributor
Sep 01, 2021
Solved

Notify when new version of log analytics agent is available

Hi Azure Monitor Humans,   I'm wondering if there is a way to determine when the Log Analytics agent or Azure monitor agent is below the current available version. I.e. if current version of the W...
  • CliveWatson's avatar
    CliveWatson
    Sep 09, 2021

    danny_grasso 

     

    The first part (should) just get the newest version from the Heartbeat table

    Heartbeat
    | summarize max(Version)

    If you run the above on its own, I assume you are not getting "10.20.18053.0" as the latest.

    Something like this may solve it (but I need longer to look)

    let max_ = toscalar(Heartbeat
    | where TimeGenerated > ago(90d)
    | summarize by Version , strlen(Version)
    | order by strlen(Version) desc, Version desc);
    Heartbeat
    | where OSType !="Linux"
    | summarize by Version, Computer
    | extend isLatest = iif(Version == max_,"Latest version","Upgrade needed?")
    | order by isLatest asc

Resources