How to upgrade Azure Arc agent version automatically for all the Servers

PoPping2025 0 Reputation points
2025-07-24T17:26:23.7366667+00:00

Hello,

How do I upgrade Azure Arc agent version automatically for all servers in Azure Update Manager?

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
{count} votes

1 answer

Sort by: Most helpful
  1. Suwarna S Kale 3,946 Reputation points
    2025-07-25T02:34:46.4733333+00:00

    Hello

    Thank you for posting your question in the Microsoft Q&A forum. 

    To upgrade the Azure Arc agent (Azure Connected Machine agent) across all servers automatically using Azure Update Manager (AUM), follow these steps: 

    Prerequisites 

    • Ensure all servers are onboarded to Azure Arc
    • Azure Update Manager must be enabled in your subscription (part of Azure Automation). 
    • Servers must have Log Analytics agent (AMA or MMA) installed if using AUM for patch management. 

    Create an Update Deployment for Arc Agent Upgrades 

    • Navigate to Azure Update Manager: Go to Azure Portal → Azure Automation → Update Management
    • Schedule an Update Deployment
      • Select "Schedule update deployment"
      • Under Update classifications, choose "Critical" and "Security" (Arc agent updates fall under these categories). 
    • Target Arc-Enabled Servers
      • Scope the deployment to Azure Arc machines using: 
        • Dynamic groups (e.g., Resource type = "Azure Arc for servers"). 
        • Manual selection of Arc machines. 
    • Configure Maintenance Window: Set a recurring schedule (e.g., monthly) to ensure continuous updates. 
    • Pre/Post Scripts (Optional): Use Automation Runbooks to validate agent health post-upgrade. 

    Verify and Monitor Upgrades 

    • Check Update Manager compliance dashboard for agent upgrade status. 
    • Use Azure Resource Graph to query Arc agent versions: 

    kusto code as below:

    Resources 

    | where type == "microsoft.hybridcompute/machines" 

    | extend agentVersion = properties.agentVersion 

    | project name, agentVersion 

    Alternative: Azure Policy for Enforced Upgrades 

    • Assign "Deploy latest Azure Connected Machine agent" policy (Azure Policy → "Deploy if not exists"). 
    • Ensures new and existing Arc servers auto-update. 

    Troubleshooting 

    If updates fail, check: 

    By following these steps, Azure Arc agents will stay up-to-date automatically via Azure Update Manager. 

    If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. Your contribution to the Microsoft Q&A community is highly appreciated. 


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.