Share via

Azure Update Manager

Kabelo Phefo 0 Reputation points
2023-09-13T10:13:19.4266667+00:00

Hi,

Need help with powershell script to query azure update manager for Windows update for Arc enabled servers

Azure Arc
Azure Arc

A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.

Azure Update Manager
Azure Update Manager

An Azure service to centrally manages updates and compliance at scale.


1 answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,431 Reputation points Moderator
    2023-09-13T12:13:26.99+00:00

    Hi @Kabelo Phefo ,

    As per this document, logs created from operations like update assessments and installations are stored by Update Manager in Azure Resource Graph and as per this document, Search-AzGraph is the Azure PowerShell cmdlet using which we can query the resources managed by Azure Resource Manager so you could come up with your Azure Resource Graph kusto query by including all the filters that are required for your environment and then use that in the Search-AzGraph Azure PowerShell cmdlet and save it as PowerShell script.

    You may refer examples in this document to understand how to include kusto query inside the Search-AzGraph cmdlet. Also, you may refer this document to understand the structure of logs being sent by Update Manager for all of its operations to Azure Resource Graph and refer this document for sample queries so you could come up with your real-time Azure Resource Graph kusto query for your use case scenario.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.