Is there an azure api support for checking update agent compliant status in azure automation?

Somesh Hiremath 1 Reputation point
2022-11-08T06:23:01.53+00:00

258049-patchpng.png

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,113 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
218 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Maxim Sergeev 6,566 Reputation points Microsoft Employee
    2022-11-09T04:27:27.42+00:00

    Hi there,

    There is no ready API call to get that data, but you can get it by using 2 option:

    1) Because the Azure Automation Update Management built on top of Log Analytics workspace, you can use its API to run the query below

    UpdateSummary   
    | where OldestMissingSecurityUpdateInDays != 0  
    | summarize Computer = dcount(Computer == "Resource") by Resource  
    

    2) If you start using Update Management Center (preview), you will be able to get the data from Azure Resource Graph directly

    0 comments No comments