Updating the Azure Arc Agent (Connected Machine Agent)
Tags: azure
Published: 2023-10-23 08:18:06


 ![Updating the Azure Arc Agent (Connected Machine Agent)](https://www.techielass.com/content/images/2023/10/SANDRA-HARO.png)

[<u>Azure Arc</u>](https://www.techielass.com/what-is-azure-arc/) is a Microsoft service that extends Azure's management and monitoring capabilities to on-premises, multi-cloud, and edge environments, allowing organisations to centrally manage, secure, and govern resources across various infrastructure types using Azure tools and services.

In this blog post, we will delve into the importance of maintaining an updated Azure Arc agent and guide you through the seamless process of ensuring that your infrastructure remains secure, optimised, and primed for the future.

## Prerequisites:

- A server with an outdated Azure Arc agent version installed

## Ubuntu & Debian

It is always best practice to run the latest version of the Azure Arc agent to ensure any bug fixes, stabilities enhancements, and new functionality is available.   You can manually update installs of the agent on your Ubuntu and Debian operating systems using the following commands: 

```
# Updating the local package index
sudo apt update

# Installing an Agent Update
sudo apt upgrade azcmagent

```

## Windows

The recommended way to update the Azure Arc agent on a Windows server is to obtain the updates through the same way you receive your Windows Update.  Updating the Azure Arc agent doesn’t require you to reboot your server. 

Windows Server doesn’t check for updates of other products by default, you need to configure the Windows update client on the machine to check for other Microsoft products.  There are a number of ways you can manage updating the agent, from manually configuring Windows Updates on the server or through Group Policy and WSUS.   

### Manually configure Windows Updates

If you manage the updates on your server individually, you need to ensure that Windows Update is set up to grab updates from other Microsoft Products. 

Within Windows Server 2012 R2 open the **Control Panel** > **System and Security > Windows Update** > **Check Settings. ** And ensure the “Give me updates for other Microsoft products when I update Windows” is ticked

![Updating the Azure Arc Agent (Connected Machine Agent)](https://lh5.googleusercontent.com/vTGrwf-1n9EHB1M2MK772UiJrg5xm6UmR9DJw_kAf1tLnaJvt9LLXNACqCT2vz5nS9nNibxNuoybFeBy8E3brZ7-DG6MPClPzALgZcoisTUv8wHPjCu4H1b9Q9YCJxhQy724R1yUPh0mxGplDZ_VtUM)
_Windows Server 2012 Update options_

Within Windows Server 2016 open up **Settings** > **Update & Security**.  Select **Advanced Options** under Update settings and ensure **Give me updates for other Microsoft products when I update Windows,** is selected. 

![Updating the Azure Arc Agent (Connected Machine Agent)](https://lh4.googleusercontent.com/dlDi_gtXr8xq_YZBLW8Z1kYhIDNidBZBc6dh_zFhLPR72G9mexquyVZzBepnODzSGlIyXEwrRrljWuqs4ujp7ekvEmcIR412AoBmmv44XP8hX9Rm3tsEx4KNj7H2mZppunvb-CNv5nhJnGFR_CzbYVo)
_Windows Server 2016 update options_

### For Windows Servers that receive updates from a WSUS server 

If you are patching your servers using a WSUS server, you need to ensure that you add the following products and classifications to your configuration: 

- **Product Name** : Azure Connected Machine Agent (select all 3 options)
- **Classifications** : Critical Updates, Update

This will ensure that it downloads and distributes the Azure Arc agent updates to your servers. 

![Updating the Azure Arc Agent (Connected Machine Agent)](https://lh3.googleusercontent.com/_HnwbCw_AiCMCku8A6Ea8zdtjpjiWugE546QKmV6gPKpRB6vdtLrZ9jm-10sJPL0SYLh-HYHz8Sjshotdy9i6XGShYALDJHO4ddPFPhb68PpNVapfMq6rsJbnmoKwzxfWXrOcel_xbBISQzAFJffdwY)
_WSUS Configuration options for Azure Arc_

### Manage updates via Group Policy

If you are managing a lot of servers then changes are you will be managing those servers through a Group Policy instead of controlling settings individually. 

- Sign into a computer used for server administration with an account that can manage Group Policy Objects (GPO) within your environment.
- Open the **Group Policy Management Console**
- Expand the forest, domain, and organisational unit(s) to find the GPO you want to change or where you want a new one to be created
- Right-click the unit and select **Create a GPO** in this domain if you are creating a new one and ensure you link it here.
- Provide a name for your policy such as "Microsoft Updates"
- Right-click the policy and select **Edit**
- Navigate to **Computer Configuration > Administrative Templates > Windows Components > Windows Update**
- Select the **Configure Automatic Updates** setting to edit it
- Select the **Enabled** radio button 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

## Conclusion

In today's rapidly evolving IT landscape, keeping your Azure Arc agent current is a proactive measure that will not only safeguard your resources but also equip your organisation for the challenges and opportunities of the future. So, take the time to update your Azure Arc agent and stay ahead in the ever-changing world of technology.