Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
After you deploy the Azure Connected Machine agent, you might need to reconfigure, upgrade, remove, or make other changes to the agent. You can perform these routine maintenance tasks manually. You can also enable automatic agent upgrades or explore other options to automate tasks, which reduces operational error and expenses.
The Azure Connected Machine agent is updated regularly to address bug fixes, stability enhancements, and new functionality. Azure Advisor identifies resources that aren't using the latest version of the machine agent and recommends that you upgrade to the latest version. It notifies you when you select the Azure Arc-enabled server by presenting a banner on the Overview page, or when you access Advisor through the Azure portal.
You can upgrade the Azure Connected Machine agent for Windows and Linux to the latest release manually or automatically, depending on your requirements. You don't need to restart your server when you install, upgrade, or uninstall the Azure Connected Machine Agent.
This article describes how to perform various operations related to the Connected Machine agent and your Arc-enabled servers.
Tip
For command line reference information, see the azcmagent CLI documentation.
Install a specific version of the agent
We recommend that you always use the most recent version of the Azure Connected Machine agent. However, if you need to run an older version of the agent for some reason, uninstall the current version and then install the target version. If your machine is already connected to Azure Arc, you don't need to disconnect the machine. The product group officially supports only Connected Machine agent versions released within the last year.
Follow these instructions to install a specific version of the Azure Connected Machine agent.
Links to releases of the Windows agents appear under the heading of each release note. To find an agent version that's more than six months old, see the release notes archive.
Upgrade the agent automatically
You can configure the Azure Connected Machine agent to automatically upgrade through Automatic Agent Upgrade. Microsoft manages the rollout in batches during off-peak hours, and no server restart is required. To learn about requirements and how to enable and verify automatic upgrades, see Automatically upgrade the Azure Connected Machine agent.
Additional agent upgrade methods
The following table describes additional methods supported to perform agent upgrades:
| Operating system | Upgrade method |
|---|---|
| Windows | Manually Microsoft Update Azure Update Manager (AUM) |
| Linux | apt yum zypper Azure Update Manager (AUM) |
Get the latest version of the Azure Connected Machine agent for Windows-based machines from:
- Microsoft Update
- Microsoft Update Catalog
- Microsoft Download Center
Microsoft Update configuration
To keep the Windows agent version up to date, we recommend using Microsoft Update to automatically get the latest version. By using your existing update infrastructure, such as Microsoft Configuration Manager or Windows Server Update Services, you can include Azure Connected Machine agent updates with your regular OS update schedule.
Windows Server doesn't check for updates in Microsoft Update by default. To receive automatic updates for the Azure Connected Machine Agent, you must configure the Windows Update client on the machine to check for other Microsoft products.
For Windows Servers that belong to a workgroup and connect to the Internet to check for updates, run the following commands in PowerShell as an administrator to enable Microsoft Update:
$ServiceManager = (New-Object -com "Microsoft.Update.ServiceManager")
$ServiceID = "7971f918-a847-4430-9279-4a52d1efe18d"
$ServiceManager.AddService2($ServiceId,7,"")
For Windows Servers that belong to a domain and connect to the Internet to check for updates, configure this setting at scale by using Group Policy:
- Sign in to a computer used for server administration with an account that can manage Group Policy Objects (GPO) for your organization.
- Open the Group Policy Management Console.
- Expand the forest, domain, and organizational unit to select the appropriate scope for your new GPO. If you already have a GPO you want to modify, skip to step 6.
- Right-click the container and select Create a GPO in this domain, and Link it here....
- Enter a name for your policy such as "Enable Microsoft Update".
- Right-click the policy and select Edit.
- Go to Computer Configuration > Administrative Templates > Windows Components > Windows Update.
- Select the Configure Automatic Updates setting to edit it.
- Select the Enabled option to allow the policy to take effect.
- At the bottom of the Options section, check the box for Install updates for other Microsoft products.
- Select OK.
The next time computers in your selected scope refresh their policy, they start to check for updates in both Windows Update and Microsoft Update.
For organizations that use Microsoft Configuration Manager or Windows Server Update Services (WSUS) to deliver updates to their servers, you need to configure WSUS to synchronize the Azure Connected Machine Agent packages and approve them for installation on your servers. Follow the guidance for Windows Server Update Services or Configuration Manager to add the following products and classifications to your configuration:
- Product Name: Azure Connected Machine Agent (select all suboptions)
- Classifications: Critical Updates, Updates
After the updates are synchronized, you can optionally add the Azure Connected Machine Agent product to your autoapproval rules, so that your servers automatically stay up to date with the latest agent software.
Manually upgrade by using the Setup Wizard
- Sign in to the computer with an account that has administrative rights.
- Download the latest agent installer from https://aka.ms/AzureConnectedMachineAgent
- Run AzureConnectedMachineAgent.msi to start the Setup Wizard.
If the Setup Wizard discovers a previous version of the agent, it upgrades it automatically. When the upgrade completes, the Setup Wizard closes automatically.
Upgrade from the command line
If you're unfamiliar with the command-line options for Windows Installer packages, review Msiexec standard command-line options and Msiexec command-line options.
Sign in to the computer with an account that has administrative rights.
Download the latest agent installer from https://aka.ms/AzureConnectedMachineAgent
To upgrade the agent silently and create a setup log file in the
C:\Support\Logsfolder, run the following command:msiexec.exe /i AzureConnectedMachineAgent.msi /qn /l*v "C:\Support\Logs\azcmagentupgradesetup.log"
Related content
- Learn how to configure Azure Connected Machine agent proxy settings.
- Learn how to uninstall the Azure Connected Machine agent from Arc-enabled servers.
- Learn how to rename an Arc-enabled server or move it to a different Azure region.