Azure Update Manager can patch servers that do not live in Azure, but only once they are enrolled in Azure Arc. This is how I enrolled Windows servers hosted in AWS and on-premises, one at a time with the portal's script, and the permissions problem that made half of them invisible to me until I elevated a second time.
Scope note. The onboarding steps are from my own notes, first written in September 2025, and the portal screens may have moved since. The permissions and networking facts I checked against Microsoft's current documentation as I wrote. Where my experience and the documentation differ, I say so, and the last section lists what is documented, what I saw myself, and what I did not verify.
What This Is For
The estate is Windows servers on AWS, Hyper-V, VMware and Azure, with no common management plane and no common network. Azure Update Manager can schedule and report patching across all of them from one place, but it only manages machines that are either Azure VMs or Arc-enabled. Arc is an agent that gives a non-Azure machine an Azure resource identity. Enrolling a machine does not move it, change its network or touch its workload.
The agent talks outbound to Azure over HTTPS. That is the whole network requirement, and it is why this works on networks that otherwise have nothing in common.
Before You Onboard Anything
Decide which machines, and what already controls their updates
Identify the machines first. If a machine will go onto an update schedule, check what is already controlling its updates. My servers have no WSUS policy applied, so this was a quick check for me. For reference, Microsoft documents that Update Manager supports WSUS, provided updates are approved there, and that on Arc-enabled machines Group Policy “fully controls update behavior” because Update Manager does not change their registry. So an existing policy is not a blocker, but it is something that can quietly override your schedule.
Network: outbound 443 and a short endpoint list
The agent “securely communicates outbound to Azure Arc over TCP port 443,” and by default uses the machine's default route to the internet. A proxy is optional, and a Log Analytics gateway is not supported as one. The endpoints that are always required, per Microsoft's current list, are:
login.microsoftonline.comand*.login.microsoft.com(Entra tokens)pas.windows.net*.his.arc.azure.com(metadata and hybrid identity)*.guestconfiguration.azure.com(extension management)guestnotificationservice.azure.comand*.guestnotificationservice.azure.com, plus*.servicebus.windows.netfor notifications
Conditional ones: download.microsoft.com and packages.microsoft.com at install time (and for automatic agent upgrades), and management.azure.com when connecting or disconnecting a server. Microsoft's list has changed over time and now includes service tags, so use its current page, not my copy, when you write firewall rules.
One item matters to anyone with older servers. Microsoft states that only Windows Server 2012 R2 and later support TLS 1.2, which the agent expects, and it lists 2012 R2 as supported. Check TLS 1.2 on any 2012 R2 machine before blaming the agent for a failed connection.
Local rights and resource providers
You need to be a member of the local Administrators group on the Windows server to install the agent. In the subscription, three resource providers must be registered beforehand: Microsoft.HybridCompute, Microsoft.GuestConfiguration and Microsoft.HybridConnectivity. Microsoft's page does not say which role is allowed to register them, so check that before a change window, not during one.
Permissions: What Is Documented, and What I Actually Used
Microsoft's documented requirement for onboarding is that you hold the Azure Connected Machine Onboarding role or the Contributor role on the resource group of the machine. Separately, if you want to assign those roles to a service principal, you need Owner or User Access Administrator on the subscription. To create a service principal, your tenant has to allow users to register applications, or you need Application Administrator or Cloud Application Administrator. No Entra directory role such as Global Administrator is listed, and Microsoft describes the service principal route as safer than using a higher-privileged account like a Tenant Administrator.
I used Global Administrator anyway. It was not required. I used it because I would otherwise have had to add myself to one more role that I would use twice and forget about. That is a convenience choice and, as the Microsoft guidance above makes clear, a poor model to copy: it is far more privilege than the task needs. If you are doing this regularly, a dedicated onboarding role at resource group scope is the right answer, and for many machines a service principal is better still.
The Two Elevations, and the Servers I Could Not See
Here is the part that cost me time, and the reason the tenant's elevation model is worth understanding. There are two entirely separate kinds of privileged access in play, and activating one does not give you the other.
- Entra roles, such as Global Administrator. These control the directory: users, apps, tenant settings.
- Azure resource roles, such as Contributor or Owner on a subscription or resource group. These control the resources: machines, resource groups, schedules.
Both can be made eligible in Privileged Identity Management, and they live in different places in it. Activating Global Administrator, as I did, did not make the Azure resources visible to me. Azure shows you only what your role assignments let you read. I could see the servers inside the resource groups I had activated a resource role for, and none of the servers in the resource groups I had not. From the Arc and Update Manager screens it looks like those machines are not there. They are simply not visible to you.
The fix was to activate an Azure resource role, in PIM under My roles → Azure resources, for the resource groups I needed to see. Microsoft's documentation for that screen has several details worth knowing:
- You find your eligible roles under Azure resources, select Activate, and can choose a reduced scope, a start time, a duration within the maximum your administrators allow, and enter a reason. Microsoft recommends requesting only the scope you need.
- If the role requires MFA you verify once per session.
- Activation creates the assignment “within seconds,” but application access may lag. Microsoft says signing out and back in can help for some applications, so if the portal still looks the same after activating, refresh or sign in again before assuming it failed.
- You cannot deactivate a role within five minutes of activating it.
The role I activated there was Owner, eligible on the subscription. That is more than the task needs. Microsoft's documented minimum for onboarding is the Azure Connected Machine Onboarding role or Contributor on the resource group, so if your organisation can make a narrower role eligible, use it. I used Owner because that was the eligible assignment I held. I did not record the exact scope it was assigned at. The practical lesson is the one above: if some machines are missing from the Arc or Update Manager list, check which resource groups you hold an active role on before suspecting the onboarding.
Onboarding a Single Server
This is the single-server path I used, from my notes. The wording of the screens may have changed, so treat the steps as a shape, not a transcript.
- Open the Azure Arc centre in the portal, then Machines → Add/Create → Add a machine, and choose Add a single server.
- Choose the subscription. In my case, servers in one country's AWS and on-premises estate go into that country's pay-as-you-go subscription.
- Choose the resource group, or create one following the existing naming convention for the others in the list. Mine look like
ARC-AWS-Hosted-<application>-Servers, so the group says where the machine lives and what it is for. - Choose the region. Pick the Azure region that matches where you want the machine's metadata to live, and use the same one each time for the same group of servers.
- Leave the connectivity method as public endpoint, then Download and run script and download the PowerShell script.
- Run it on the server in an elevated PowerShell session, using an identity with the permissions above. The script bakes in the subscription, resource group and region, so running it on further machines assigns them to the same ones.
- Once it has run, the server appears in the Arc machines list.
- Write down the name each machine appears under. For my AWS servers it was the EC2 instance ID, such as
i-0ef34af7f3f37cfcc, which is the next section's problem.
Names and Tags: Fix Them Before You Onboard
My AWS servers show up in Arc and Update Manager under their instance IDs, which tells you nothing about what the machine is. I told them apart by their maintenance group and by the fact that I know the estate, which does not scale and does not help whoever comes after me.
I did not work out why the instance ID became the name in my setup, so I will not claim a cause. What matters is what you can do about it, and the order matters:
- The resource name cannot be changed in place. It is immutable. Renaming means removing the extensions, disconnecting the agent (which deletes the Azure resource), renaming the machine, and connecting again. The reconnect uses the machine's current hostname by default, and a different name can be given with
--resource-name. That is a real change to a production server's management identity, so do it deliberately. - Set the name, and tags, at onboarding. The connect command accepts a resource name and tags. I did not re-check the full
azcmagentreference for this post, so confirm the exact parameters there before scripting it. - Make a tag carry what you currently carry in your head: the maintenance group, the environment and the domain. A maintenance group tag is also what lets a schedule pick up machines automatically, which is where the next post goes. To be clear about my own practice: I do not use tags. The maintenance group is carried by the name of the maintenance configuration a machine is assigned to, so I know which group a server is in because the configuration says so. Tags are an option, not something this setup depends on.
Keep the agent current
The same list shows an agent version for every machine, and mine are not uniform: some are on a much older release than others. Microsoft's guidance is that the product group supports only agent versions released within the last year, that upgrading does not need a restart, and that azcmagent connect can be given an --enable-automatic-upgrade option. The portal also shows a “configure auto-upgrade” action marked as preview. When I audited mine, versions ranged from 1.37 to 1.68, and the oldest was well over a year old, so outside that window. Automatic upgrade needs agent 1.57 or later, so an agent that old has to be upgraded by hand once before it can look after itself.
I upgraded each machine with the agent installer, run silently from an elevated PowerShell. On Windows Server 2012 R2, set TLS 1.2 first, or the download can fail:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri "https://aka.ms/AzureConnectedMachineAgent" -OutFile "$env:TEMP\AzureConnectedMachineAgent.msi"
Start-Process msiexec.exe -Wait -ArgumentList '/i', "$env:TEMP\AzureConnectedMachineAgent.msi", '/qn', '/l*v', 'C:\Support\Logs\azcmagentupgradesetup.log'
& "$env:ProgramFiles\AzureConnectedMachineAgent\azcmagent.exe" show
None of my upgrades needed a restart, which matches what Microsoft documents. Check that the version has changed and the status says Connected. After upgrading, I confirmed the new version in Resource Graph (properties.agentVersion on the Arc machine resource).
Automatic upgrade, in theory
Upgrading by hand fixes the backlog, but it is a chore you repeat. Microsoft documents an automatic upgrade for the agent, currently in public preview and available from agent 1.57. An agent with it enabled is upgraded to within one version of the latest release, in batches during off-peak hours, and a failed attempt is retried later. On Windows the PowerShell execution policy must not be Restricted. There are three documented ways to turn it on: the --enable-automatic-upgrade option when connecting a machine, the built-in Azure Policy “Configure Azure Arc-enabled Servers to enable automatic upgrades” for several machines at once, or setting agentUpgrade.enableAutomaticUpgrade to true on the machine resource through the REST API.
I have it enabled on one machine and have not yet seen it do an upgrade, so I cannot tell you how it behaves in practice. Because it is a preview feature that changes software on a server without you being there, I would try it on a non-domain-controller first, let it run through a release, and only then extend it. Agent upgrades are separate from Windows patching, so they are not governed by your maintenance windows.
When One at a Time Stops Making Sense
I did standalone installs because the estate is small and spread across networks that have nothing in common. Microsoft documents a service principal route for connecting machines at scale without an interactive sign-in per machine. It needs the Azure Connected Machine Onboarding role assigned to the service principal, and the registration and role-assignment permissions above. I did not use it, so I will not walk through it.
What Is Documented, Observed, or Unverified
First-hand: I onboarded servers one at a time with the portal's script. I upgraded the agents on every server by hand with the installer, from versions as old as 1.37 to 1.68. I enabled automatic upgrade on one machine and have not yet observed it performing an upgrade. I used Global Administrator for convenience, and I could not see servers in resource groups until I activated the Owner role on the relevant resource in PIM. My AWS servers appear under their instance IDs.
Documented by Microsoft: the Azure Connected Machine Onboarding or Contributor requirement; the Owner or User Access Administrator requirement for assigning those roles; the three resource providers; local administrator for the agent install; outbound TCP 443 and the endpoint list; 2012 R2 and TLS 1.2; the PIM activation steps, timings and five-minute rule; the immutability of the resource name and the rename procedure; and WSUS and Group Policy behaviour on Arc machines.
Inferred: that the invisible servers were a role-visibility effect and not a failed onboarding. It matches how Azure lists resources, and activating the role fixed it, but I did not capture the screens that would show it.
Not verified or not recorded: the exact scope of the Owner assignment; who is allowed to register the resource providers; the exact current wording of the portal screens; the azcmagent parameters for name and tags; and why my AWS machines were named by instance ID.
Closing Thoughts
Next: scheduling the patching itself with Azure Update Manager, including how to run it two weeks after Patch Tuesday.
The enrolment itself is a script and a few minutes. What costs you is permissions you did not know you were missing, and names you cannot change afterwards. Check you can see every resource group before you onboard, and give machines a clear name at the start, and decide how you will record which maintenance group each belongs to, not after you have fifty of them.
← All guides