# How to Enable Hotpatch Updates on Windows Server: Step-by-Step Guide

> AI Release · @ai_releaseorg · https://ai-release.org/guides/poshagovoe-rukovodstvo-kak-vklyuchit-hotpatch-obnovleni_en.html

## TL;DR
- **Time to complete:** 40 minutes for setup, plus one monthly update cycle to observe the result
- **Difficulty:** Intermediate
- **You need:** a Windows Server 2025 machine (Datacenter or Standard), local Administrator rights, an Azure subscription with rights to onboard resources, the Azure Connected Machine agent, Azure CLI 2.x or Cloud Shell, outbound TCP 443

Hotpatching is a servicing mode where a monthly Windows Server update is applied to the running OS without a restart. Baseline (cumulative) updates still need a reboot — plan for that. Exact supported editions, builds, extension names and cadence are version-dependent: **verify them in the Microsoft Learn hotpatch documentation for your build before you start.**

## What you get
- A Windows Server 2025 machine registered in Azure Arc, with the hotpatch extension in `Succeeded` state and visible in the portal.
- A monthly routine where non-baseline updates install without a restart, confirmed by an unchanged `LastBootUpTime`.
- A verification script and a reboot checklist you can paste into your runbook for the quarterly baseline months.

## Requirements and setup
![Illustration: Requirements and setup](https://ai-release.org/guides/img/poshagovoe-rukovodstvo-kak-vklyuchit-hotpatch-obnovleni-en-1.jpg?v=1795855870)

- Windows Server 2025 (Datacenter or Standard). Hotpatching is not available on older server releases — check the supported-build list in the docs.
- Local Administrator on the server; Azure role that allows creating a resource group, registering resource providers and writing extensions (Contributor on the target resource group is enough).
- Azure CLI 2.x (run `az login` first) or Azure Cloud Shell.
- Outbound TCP 443 from the server to Azure. Typical endpoints:

| Purpose | Endpoint | Port |
|---|---|---|
| Arc agent / extension traffic | `his.arc.azure.com` | 443 |
| Agent installer download | `aka.ms`, `download.microsoft.com` | 443 |
| Azure Resource Manager | `management.azure.com` | 443 |
| Entra ID authentication | `login.microsoftonline.com` | 443 |

The authoritative endpoint list lives in the Azure Arc network-requirements doc — check it if you route traffic through a proxy.

- At least 1 GB free on the system drive for agent files and logs.
- Confirm the OS version and that no reboot is already pending:

```powershell
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' |
  Select-Object ProductName, EditionID, CurrentBuild, UBR, DisplayVersion
Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired'
```

**Example output:** `ProductName : Windows Server 2025 Datacenter`, `CurrentBuild : 26100`, `False`. `False` means no reboot is pending, so a later "no restart happened" result is meaningful.

## Step 1. Confirm the server is a valid hotpatch candidate
**What to do:** Check the edition, the build and the update source before touching Azure. Hotpatching is tied to specific server editions and to updates being delivered from Microsoft Update, not from an unapproved WSUS classification.

```powershell
# Edition and build
(Get-CimInstance Win32_OperatingSystem).Caption
[System.Environment]::OSVersion.Version

# Which source delivers updates (0 = Microsoft Update, 1 = WSUS)
Get-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -ErrorAction SilentlyContinue |
  Select-Object UseWUServer

# Is the machine already waiting for a restart?
Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired'
```

**Why:** If the machine is on WSUS and the hotpatch classification is not approved there, the extension will install but the monthly update will never arrive — you will spend hours debugging Azure instead of update approval.

**How to check:** `Caption` must read `Windows Server 2025 Datacenter` or `Windows Server 2025 Standard`. `UseWUServer` should be absent or `0`. If it is `1`, either approve the hotpatch updates on the WSUS server or confirm the supported delivery path in the documentation.

**Example:** On a test VM the check returned `Microsoft Windows Server 2025 Datacenter`, `UseWUServer` empty, and `False` for the reboot key — the machine is a candidate.

## Step 2. Connect the server to Azure Arc and enable the hotpatch extension
![Illustration: Step 2. Connect the server to Azure Arc and enable the hotpatch extension](https://ai-release.org/guides/img/poshagovoe-rukovodstvo-kak-vklyuchit-hotpatch-obnovleni-en-2.jpg?v=1795855878)

**What to do:** Install the Azure Connected Machine agent (the software that represents your on-premises or non-Azure server in Azure), connect the machine, then add the hotpatch extension.

```powershell
Invoke-WebRequest -Uri https://aka.ms/AzureConnectedMachineAgent -OutFile .\AzureConnectedMachineAgent.msi
msiexec /i .\AzureConnectedMachineAgent.msi /l*v .\arc-install.log /qn
azcmagent connect `
  --resource-group rg-servers `
  --tenant-id <your-tenant-id> `
  --subscription-id <your-subscription-id> `
  --location westeurope
```

Placeholders: `rg-servers` is the resource group that will hold the server object, `westeurope` must be a region your subscription allows, and the tenant/subscription IDs come from `az account show`.

**Why:** Hotpatching on Windows Server is delivered through Azure management — the Arc agent provides identity and the extension channel that installs the payloads.

Then install the extension. The simplest route is the portal: **Azure Arc → Servers → `<server-name>` → Extensions → + Add →** select the Windows Server hotpatch extension → **Create**. For automation use the CLI, taking publisher and type from the portal gallery (they are build-specific):

```bash
az connectedmachine extension create \
  --resource-group rg-servers \
  --machine-name srv-file01 \
  --name Hotpatch \
  --publisher "<publisher-id-from-gallery>" \
  --type "<extension-type-from-gallery>" \
  --location westeurope
```

**How to check:** The extension must report `Succeeded`, and the agent must report `Connected`.

```bash
az connectedmachine extension show -g rg-servers --machine-name srv-file01 -n Hotpatch --query provisioningState
az connectedmachine show -g rg-servers --name srv-file01 --query status
azcmagent show
```

Expected: `"Succeeded"`, `"Connected"`, and in `azcmagent show` the line `Agent Status : Connected`. If the extension requires settings, the portal wizard lists them; pass them with `--settings '<json>'`.

**Example:** `az connectedmachine extension show ... --query provisioningState` returned `"Succeeded"` about four minutes after creation; `azcmagent show` showed `Agent Status : Connected` and `Last Connected` within the last minute.

## Step 3. Prove an update landed without a restart
![Illustration: Step 3. Prove an update landed without a restart](https://ai-release.org/guides/img/poshagovoe-rukovodstvo-kak-vklyuchit-hotpatch-obnovleni-en-3.jpg?v=1795855884)

**What to do:** Record the boot time and installed updates, wait for the monthly release window, and compare.

```powershell
# 1. Baseline
$before = (Get-CimInstance Win32_OperatingSystem).LastBootUpTime
$before

# 2. After the update window: newest installed packages
Get-CimInstance Win32_QuickFixEngineering |
  Sort-Object InstalledOn -Descending |
  Select-Object -First 5 HotFixID, Description, InstalledOn

# 3. Did anything reboot the box? (1074 = clean shutdown/restart initiated)
Get-WinEvent -FilterHashtable @{LogName='System'; Id=1074} -MaxEvents 5 |
  Select-Object TimeCreated, Message

# 4. Compare
(Get-CimInstance Win32_OperatingSystem).LastBootUpTime
Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired'
```

**Why:** `Win32_QuickFixEngineering` lists what was installed; `LastBootUpTime` and event 1074 prove whether the machine restarted. Together they answer the only question that matters: *did the patch apply without a reboot?*

**How to check:** If a new `HotFixID` appears with a fresh `InstalledOn` while `LastBootUpTime` is unchanged and the reboot key returns `False`, the update was applied hot. If `LastBootUpTime` moved, it was a baseline update — expected, not a failure.

**Example:** Before the window `LastBootUpTime` was `10/02/2025 03:14:22`. After the update: same value, `RebootRequired` = `False`, and one new entry in the top of the QFE list — a hotpatch cycle completed without downtime.

Restart expectations by release type:

| Release | Restart required? | Action |
|---|---|---|
| Monthly hotpatch release | No | Verify with the script above |
| Quarterly baseline (start of January, April, July, October) | Yes | Schedule a maintenance window |
| Any release after a skipped baseline | Yes | Apply the baseline first |

Monthly checklist:

- [ ] `az connectedmachine extension show ... --query provisioningState` returns `Succeeded`
- [ ] `LastBootUpTime` unchanged since the last maintenance window
- [ ] `RebootRequired` returns `False`
- [ ] The quarterly baseline window is booked in the change calendar

## Troubleshooting

**Problem. The extension never leaves `Creating`/`Failed` and no hotpatch updates arrive.**
- Error: `"code": "ExtensionOperationFailed", "message": "The extension operation failed with the following error: ..."` (the trailing text is version-specific — read it, it usually names a blocked endpoint).
- Cause: the server cannot reach the required Azure endpoints, typically because of a proxy or firewall rule; the agent stays connected for management traffic while the extension download path fails.
- Solution: run `azcmagent check` on the server. Every row (`his.arc.azure.com`, `management.azure.com`, `login.microsoftonline.com`) must show a reachable/`true` result. If your egress goes through a proxy, configure it with `azcmagent config set proxy.url http://<proxy-host>:<port>`, restart the agent service (`Restart-Service himds`), then retry the extension in the portal.

**Problem. `azcmagent show` prints `Agent Status : Disconnected` and onboarding fails.**
- Error: `Failed to connect to the Azure Arc agent endpoint` / an authentication prompt that times out.
- Cause: the interactive device-code login was never completed, or the machine clock is skewed far enough to break token validation.
- Solution: re-run `azcmagent connect --resource-group rg-servers --tenant-id <tenant> --subscription-id <sub> --location westeurope` while logged in on the browser prompt, and confirm `w32tm /query /status` shows a synchronized clock.

**Problem. A hotpatch month still demands a restart.**
- Error: `RebootRequired` returns `True` and `Get-WinEvent -FilterHashtable @{LogName='System'; Id=1074}` shows a new restart.
- Cause: the release was a baseline (cumulative) update, or a previous baseline was skipped so the new payload could not be applied incrementally.
- Solution: accept the reboot, install the missed baseline — the [Microsoft Update Catalog manual install walkthrough](https://ai-release.org/guides/poshagovoe-rukovodstvo-kak-ustanovit-obnovlenie-bezopas.html?utm_source=tg&utm_medium=channel&utm_campaign=guide_inline&utm_content=guide_to_guide) covers the offline path — and then resume the monthly hotpatch cycle. If problems appear right after a reboot, work through the [post-update issue checklist](https://ai-release.org/guides/windows-11-26h2-chastye-problemy-posle-obnovleniya-i-ka.html?utm_source=tg&utm_medium=channel&utm_campaign=guide_inline&utm_content=guide_to_guide) before escalating.

## Summary and next steps
You now have an Arc-connected Windows Server 2025 machine whose monthly updates install without a restart, and a verification script that proves it. Next: book the quarterly baseline windows and put `Get-CimInstance Win32_QuickFixEngineering` output into your monthly report — and [check the OS support timeline](https://ai-release.org/guides/kak-proverit-kogda-vash-pk-s-windows-perestanet-polucha.html?utm_source=tg&utm_medium=channel&utm_campaign=guide_inline&utm_content=guide_to_guide) so the hotpatch cadence does not outlive the platform itself.

## FAQ

**Does hotpatching mean Windows Server never reboots again?**
No. Only non-baseline monthly releases apply without a restart; baseline (cumulative) updates at the start of each quarter still require a reboot, and kernel-level changes only take effect after that restart.

**Does this work on Windows Server 2022 or Windows Server 2019?**
Hotpatching is tied to the newer server release and its delivery infrastructure — check the supported-edition list in the docs for your exact build. On older servers you install cumulative updates normally and schedule restarts.

**Can I enable it without Azure?**
The delivery path described here uses Azure Arc to onboard the machine and push the extension. If your environment forbids Azure connectivity, treat the offline/manual update route as your baseline process and verify in the documentation whether a non-Arc option exists for your build.

**How do I confirm a patch really applied without a reboot?**
Compare `(Get-CimInstance Win32_OperatingSystem).LastBootUpTime` before and after the update window while checking that a new `HotFixID` appeared in `Get-CimInstance Win32_QuickFixEngineering`. Unchanged boot time plus a new hotfix equals a hotpatch.
