WindowsOSBuild icon indicating copy to clipboard operation
WindowsOSBuild copied to clipboard

Issues with Server 2022 with Hotpatch enabled

Open CarlosAmericano opened this issue 2 years ago • 7 comments

On Azure machines with hotpatch enabled this is not working. https://support.microsoft.com/en-gb/topic/release-notes-for-hotpatch-in-azure-automanage-for-windows-server-2022-4e234525-5bd5-4171-9886-b475dabe0ce8

I tried and made something quick and dirty on our custom script to check if its autopatch or not and changing the url to be parsed

    ```

$hotpatchcheck = Get-HotFix -Id KB5003508 -ErrorAction SilentlyContinue if ($hotpatchcheck) { $URL = "https://support.microsoft.com/en-gb/topic/release-notes-for-hotpatch-in-azure-automanage-for-windows-server-2022-4e234525-5bd5-4171-9886-b475dabe0ce8" } Else { $URL = "https://support.microsoft.com/en-us/help/5005454" }


But even then, the webpage parse mechanism doesnt match what the OS reports

OS Build 20348.2091 --- correct info from the OS and correct info from the webpage body
OS Build 20346.2091 --- data pulled up from the module, and info from the table ?? 

Any ideas ?

CarlosAmericano avatar Nov 29 '23 15:11 CarlosAmericano

Happy to add support for hotpatch if can get it working, can you explain why a release is displaying two different builds? I think it will be the problem here - For example see November 14. The major build number on the left from research appears to be for HoloLens 2!

image

I haven't yet had the pleasure of dealing with hot patch in any capacity but looking at the update release notes it seems that the baseline patches are not displaying the normal info and are taking shortcuts and simply linking to the equivalent HCI stack page which further complicates the scraping process but I don't think that is right either and should be going to the server 2022 page of the mentioned KB.

For example

image image

What a mess!!

AshleyHow avatar Nov 29 '23 20:11 AshleyHow

That was my thoughts as well...what a mess.

We deploy a fair bit of servers in azure and for a couple of weeks / months autopatch enabled images are the default in azure.

Last month we didn't have any issues and looking at the logs from our rmm, it looks like the build number was the same for these images as a "normal" 2022 server. Only this month we noticed the check couldn't identify the osbuild to the windows server 2022 page and i tried to have a look.

As you mentioned, the build reported in the body of the page doesnt match what is on the table on the left, i can confirm that the info in the body is correct (at least for this months) I also noticed that the links point to some weird hci server.

I tried to find other urls to parse and couldn't find anything, their docs are so bad regarding 2022 build versions...i think that the whole page of that autopatch is full of typos from a botched copy paste job.

CarlosAmericano avatar Nov 30 '23 06:11 CarlosAmericano

Raised as an issue here - https://github.com/MicrosoftDocs/windowsserverdocs-pr/issues/5269

Let's see what happens!

AshleyHow avatar Dec 07 '23 22:12 AshleyHow

Hotpatch support coming shortly!

AshleyHow avatar Mar 28 '24 01:03 AshleyHow

Thank you for the improvement !

CarlosAmericano avatar Mar 28 '24 19:03 CarlosAmericano

2403.1 now released please test and feedback as I don't have access to a hotpatch enabled device to test.

AshleyHow avatar Mar 28 '24 22:03 AshleyHow

I think the next hotpatch release is going to be in May https://support.microsoft.com/en-gb/topic/release-notes-for-hotpatch-in-azure-automanage-for-windows-server-2022-4e234525-5bd5-4171-9886-b475dabe0ce8

Ill keep an eye, thanks

CarlosAmericano avatar Mar 29 '24 11:03 CarlosAmericano

@CarlosAmericano just wondering how it went?

AshleyHow avatar May 16 '24 22:05 AshleyHow

Hello AshleyHow

That worked perfectly.. thank you!!

On Thu, May 16, 2024 at 11:26 PM Ashley How @.***> wrote:

@CarlosAmericano https://github.com/CarlosAmericano just wondering how it went?

— Reply to this email directly, view it on GitHub https://github.com/AshleyHow/WindowsOSBuild/issues/35#issuecomment-2116304801, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKEA5EUWJV7I4EELFNWR5A3ZCUXAPAVCNFSM6AAAAAA77TVSACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJWGMYDIOBQGE . You are receiving this because you were mentioned.Message ID: @.***>

CarlosAmericano avatar May 23 '24 09:05 CarlosAmericano