Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown while "Searching for Windows updates..." #144

Open
jbne opened this issue Jul 10, 2024 · 46 comments
Open

Exception thrown while "Searching for Windows updates..." #144

jbne opened this issue Jul 10, 2024 · 46 comments

Comments

@jbne
Copy link

jbne commented Jul 10, 2024

I'm getting an error when the builder is in the "Searching for Windows updates..." step. I was able to successfully perform Windows updates using this plugin yesterday and earlier today, my configuration hasn't functionally changed since then so not sure what could be causing this.
 
Here's the relevant bits, let me know if more info is needed to diagnose the issue:

packer {
  required_plugins {
    azure = {
      source  = "github.com/hashicorp/azure"
      version = "~> 2"
    }

    windows-update = {
      version = "0.16.0"
      source = "github.com/rgl/windows-update"
    }
  }
}

...

Using an Azure managed image as the base:

image_publisher               = "MicrosoftWindowsDesktop"
image_offer                       = "Windows-11"
image_sku                         = "win11-23h2-ent"

...

This is the first step in my build:

provisioner "windows-update" {
  pause_before    = "60s"
  search_criteria = "IsInstalled=0"
  filters = [
    "exclude:$_.Title -like '*Preview*'",
    "exclude:$_.InstallationBehavior.CanRequestUserInput",
    "include:$true"
  ]
  restart_timeout = "120m"
}

Also tried with no params, same error:

provisioner "windows-update" {
}

...

Here are the logs:

2024-07-09T17:21:26-07:00: ==> azure-arm.autogenerated_1: Waiting for WinRM to become available...
2024-07-09T17:21:36-07:00:     azure-arm.autogenerated_1: WinRM connected.
2024-07-09T17:21:36-07:00: ==> azure-arm.autogenerated_1: Connected to WinRM!
2024-07-09T17:21:36-07:00: ==> azure-arm.autogenerated_1: Pausing 1m0s before the next provisioner...
2024-07-09T17:22:36-07:00: ==> azure-arm.autogenerated_1: Uploading the Windows update elevated script...
2024-07-09T17:22:38-07:00: ==> azure-arm.autogenerated_1: Uploading the Windows update check for reboot required elevated script...
2024-07-09T17:23:04-07:00: ==> azure-arm.autogenerated_1: Uploading the Windows update script...
2024-07-09T17:23:07-07:00: ==> azure-arm.autogenerated_1: Running Windows update...
2024-07-09T17:23:15-07:00:     azure-arm.autogenerated_1: Searching for Windows updates...
2024-07-09T17:23:25-07:00:     azure-arm.autogenerated_1: ERROR: You cannot call a method on a null-valued expression.
2024-07-09T17:23:25-07:00:     azure-arm.autogenerated_1: ERROR: at <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: line 190
2024-07-09T17:23:25-07:00:     azure-arm.autogenerated_1: ERROR: at <ScriptBlock>, <No file>: line 1
2024-07-09T17:23:25-07:00:     azure-arm.autogenerated_1: ERROR EXCEPTION: System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression.
2024-07-09T17:23:25-07:00:     azure-arm.autogenerated_1: ERROR EXCEPTION:    at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2024-07-09T17:23:25-07:00:     azure-arm.autogenerated_1: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2024-07-09T17:23:25-07:00:     azure-arm.autogenerated_1: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-09T17:23:25-07:00:     azure-arm.autogenerated_1: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-09T17:23:25-07:00:     azure-arm.autogenerated_1: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-09T17:23:25-07:00:     azure-arm.autogenerated_1: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
@rolandsallaberger
Copy link

i have the same issue today

@raptorrico
Copy link

We also have the same issue with builds today, running 0.16

I'm going to try using version 0.15

@xenadmin
Copy link

We have the same error with Windows 11 23H2 since today. Already tested plugin version 0.15 and 0.16.
The only change was Microsoft Patchday and therefore changes in the Azure marketplace images.
I suspect the change there ;-(

@RyansGitrepos
Copy link

Same issue here! 0.15 and 0.16 also not working!
We are using the Windows 11 23H2 AVD image without office. Using the Azure Marketplace.

@tomvo12
Copy link

tomvo12 commented Jul 10, 2024

Same issue here! We are not able to create windows images anymore. Is it possible to prioritize PR#145 to get us back in business asap?
thanks in advance

@florian-ried
Copy link

We are encountering the same issue with versions 0.15 and 0.16 as previously reported by other users. We're using the Windows 11 23H2 AVD image without Office from the Azure Marketplace.

We would greatly appreciate it if PR #145 could be prioritized to help us resolve this issue as soon as possible.

@jbne
Copy link
Author

jbne commented Jul 10, 2024

Another interesting bit is I also tried using the PSWindowsUpdate Powershell module and it seems to hit a very similar null reference issue? Maybe not related, but it would be quite a coincidence.

2024-07-09T18:24:25-07:00: ==> azure-arm.autogenerated_1: Install-WindowsUpdate : Something goes wrong: Update for Windows Security platform antimalware platform - KB5007651
2024-07-09T18:24:25-07:00: ==> azure-arm.autogenerated_1: (Version 1.0.2402.27001); Object reference not set to an instance of an object.
2024-07-09T18:24:25-07:00: ==> azure-arm.autogenerated_1: At C:\Windows\Temp\script-668de296-dc4e-939c-b1ea-098a3fa74e58.ps1:18 char:1
2024-07-09T18:24:25-07:00: ==> azure-arm.autogenerated_1: + Install-WindowsUpdate -AcceptAll -AutoReboot
2024-07-09T18:24:25-07:00: ==> azure-arm.autogenerated_1: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-07-09T18:24:25-07:00: ==> azure-arm.autogenerated_1:     + CategoryInfo          : CloseError: (:) [Get-WindowsUpdate], Exception
2024-07-09T18:24:25-07:00: ==> azure-arm.autogenerated_1:     + FullyQualifiedErrorId : Debug,PSWindowsUpdate.GetWindowsUpdate
2024-07-09T18:24:25-07:00: ==> azure-arm.autogenerated_1:
2024-07-09T18:24:25-07:00: ==> azure-arm.autogenerated_1: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
2024-07-09T18:24:25-07:00: ==> azure-arm.autogenerated_1: Step "StepProvision" failed

@KarsonAlford
Copy link

Same here.

My Server 2016 and Server 2022 image templates are able to be built and they include the windows update steps in them.

rgl added a commit that referenced this issue Jul 10, 2024
@rgl rgl closed this as completed in 27a4abb Jul 10, 2024
@rgl
Copy link
Owner

rgl commented Jul 10, 2024

@xenadmin
Copy link

xenadmin commented Jul 10, 2024

@rgl Why did you close the issue without feedback? Please reopen it.
I just tested 0.16.1. Issue persists for us, Still can't build Windows 11 23H2 images with Packer on Azure.
Here you can see we switched to 0.16.1:
grafik
And here is the log from the latest try:
grafik
And here is the log from 0.16.1:

2024-07-10T21:26:41.2645798Z 2024-07-10T23:26:41+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update elevated script...
2024-07-10T21:26:44.8306438Z 2024-07-10T23:26:44+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update check for reboot required elevated script...
2024-07-10T21:26:48.1812786Z 2024-07-10T23:26:48+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update script...
2024-07-10T21:26:54.8298721Z 2024-07-10T23:26:54+02:00: ==> azure-arm.win11-23h2-avd: Running Windows update...
2024-07-10T21:27:01.1640969Z 2024-07-10T23:27:01+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-10T21:27:15.7423994Z 2024-07-10T23:27:15+02:00:     azure-arm.win11-23h2-avd: ERROR: Die Eigenschaft "CanRequestUserInput" wurde f�r dieses Objekt nicht gefunden. Vergewissern Sie sich, dass die Eigenschaft vorhanden ist.
2024-07-10T21:27:15.7425625Z 2024-07-10T23:27:15+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: Zeile 204
2024-07-10T21:27:15.7440017Z 2024-07-10T23:27:15+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, <Keine Datei>: Zeile 1
2024-07-10T21:27:15.7446241Z 2024-07-10T23:27:15+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION: System.Management.Automation.PropertyNotFoundException: Die Eigenschaft "CanRequestUserInput" wurde f�r dieses Objekt nicht gefunden. Vergewissern Sie sich, dass die Eigenschaft vorhanden ist.
2024-07-10T21:27:15.7454102Z 2024-07-10T23:27:15+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2024-07-10T21:27:15.7462631Z 2024-07-10T23:27:15+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2024-07-10T21:27:15.7477893Z 2024-07-10T23:27:15+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:15.7485140Z 2024-07-10T23:27:15+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:15.7495559Z 2024-07-10T23:27:15+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:15.7510249Z 2024-07-10T23:27:15+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:26.2668219Z 2024-07-10T23:27:26+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-10T21:27:26.2678767Z 2024-07-10T23:27:26+02:00:     azure-arm.win11-23h2-avd: ERROR: Die Eigenschaft "CanRequestUserInput" wurde f�r dieses Objekt nicht gefunden. Vergewissern Sie sich, dass die Eigenschaft vorhanden ist.
2024-07-10T21:27:26.2686797Z 2024-07-10T23:27:26+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: Zeile 204
2024-07-10T21:27:26.2697215Z 2024-07-10T23:27:26+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, <Keine Datei>: Zeile 1
2024-07-10T21:27:26.2710312Z 2024-07-10T23:27:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION: System.Management.Automation.PropertyNotFoundException: Die Eigenschaft "CanRequestUserInput" wurde f�r dieses Objekt nicht gefunden. Vergewissern Sie sich, dass die Eigenschaft vorhanden ist.
2024-07-10T21:27:26.2727000Z 2024-07-10T23:27:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2024-07-10T21:27:26.2728749Z 2024-07-10T23:27:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2024-07-10T21:27:26.2747017Z 2024-07-10T23:27:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:26.2753791Z 2024-07-10T23:27:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:26.2757354Z 2024-07-10T23:27:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:26.2769411Z 2024-07-10T23:27:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:36.7485829Z 2024-07-10T23:27:36+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-10T21:27:36.7501690Z 2024-07-10T23:27:36+02:00:     azure-arm.win11-23h2-avd: ERROR: Die Eigenschaft "CanRequestUserInput" wurde f�r dieses Objekt nicht gefunden. Vergewissern Sie sich, dass die Eigenschaft vorhanden ist.
2024-07-10T21:27:36.7507484Z 2024-07-10T23:27:36+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: Zeile 204
2024-07-10T21:27:36.7517096Z 2024-07-10T23:27:36+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, <Keine Datei>: Zeile 1
2024-07-10T21:27:36.7537694Z 2024-07-10T23:27:36+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION: System.Management.Automation.PropertyNotFoundException: Die Eigenschaft "CanRequestUserInput" wurde f�r dieses Objekt nicht gefunden. Vergewissern Sie sich, dass die Eigenschaft vorhanden ist.
2024-07-10T21:27:36.7542175Z 2024-07-10T23:27:36+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2024-07-10T21:27:36.7554188Z 2024-07-10T23:27:36+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2024-07-10T21:27:36.7567691Z 2024-07-10T23:27:36+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:36.7576823Z 2024-07-10T23:27:36+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:36.7586589Z 2024-07-10T23:27:36+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:36.7601194Z 2024-07-10T23:27:36+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:27:47.9964093Z 2024-07-10T23:27:47+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-10T21:28:07.5800306Z 2024-07-10T23:28:07+02:00:     azure-arm.win11-23h2-avd: ERROR: Die Eigenschaft "CanRequestUserInput" wurde f�r dieses Objekt nicht gefunden. Vergewissern Sie sich, dass die Eigenschaft vorhanden ist.
2024-07-10T21:28:07.5808781Z 2024-07-10T23:28:07+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: Zeile 204
2024-07-10T21:28:07.5825641Z 2024-07-10T23:28:07+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, <Keine Datei>: Zeile 1
2024-07-10T21:28:07.5840906Z 2024-07-10T23:28:07+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION: System.Management.Automation.PropertyNotFoundException: Die Eigenschaft "CanRequestUserInput" wurde f�r dieses Objekt nicht gefunden. Vergewissern Sie sich, dass die Eigenschaft vorhanden ist.
2024-07-10T21:28:07.5857351Z 2024-07-10T23:28:07+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2024-07-10T21:28:07.5870109Z 2024-07-10T23:28:07+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2024-07-10T21:28:07.5880796Z 2024-07-10T23:28:07+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:28:07.5891822Z 2024-07-10T23:28:07+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:28:07.6002361Z 2024-07-10T23:28:07+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:28:07.6006295Z 2024-07-10T23:28:07+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:28:18.7199900Z 2024-07-10T23:28:18+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-10T21:28:18.7214416Z 2024-07-10T23:28:18+02:00:     azure-arm.win11-23h2-avd: ERROR: Die Eigenschaft "CanRequestUserInput" wurde f�r dieses Objekt nicht gefunden. Vergewissern Sie sich, dass die Eigenschaft vorhanden ist.
2024-07-10T21:28:18.7221923Z 2024-07-10T23:28:18+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: Zeile 204
2024-07-10T21:28:18.7232958Z 2024-07-10T23:28:18+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, <Keine Datei>: Zeile 1
2024-07-10T21:28:18.7245299Z 2024-07-10T23:28:18+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION: System.Management.Automation.PropertyNotFoundException: Die Eigenschaft "CanRequestUserInput" wurde f�r dieses Objekt nicht gefunden. Vergewissern Sie sich, dass die Eigenschaft vorhanden ist.
2024-07-10T21:28:18.7248308Z 2024-07-10T23:28:18+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2024-07-10T21:28:18.7254251Z 2024-07-10T23:28:18+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2024-07-10T21:28:18.7273448Z 2024-07-10T23:28:18+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:28:18.7284166Z 2024-07-10T23:28:18+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:28:18.7287381Z 2024-07-10T23:28:18+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:28:18.7303519Z 2024-07-10T23:28:18+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T21:28:23.7340581Z 2024-07-10T23:28:23+02:00: ==> azure-arm.win11-23h2-avd: Provisioning step had errors: Running the cleanup provisioner, if present...
2024-07-10T21:28:23.7535823Z 2024-07-10T23:28:23+02:00: ==> azure-arm.win11-23h2-avd: 
2024-07-10T21:28:23.7537843Z ==> azure-arm.win11-23h2-avd: Deleting Virtual Machine deployment and its attached resources...

EDIT
I just saw that the error differs from my try with 0.15.0 so here is the 0.15.0 log from this afternoon for reference:

2024-07-10T12:31:31.2724002Z 2024-07-10T14:31:31+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update elevated script...
2024-07-10T12:31:34.6874255Z 2024-07-10T14:31:34+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update check for reboot required elevated script...
2024-07-10T12:31:37.9283571Z 2024-07-10T14:31:37+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update script...
2024-07-10T12:31:44.2799401Z 2024-07-10T14:31:44+02:00: ==> azure-arm.win11-23h2-avd: Running Windows update...
2024-07-10T12:31:50.4765948Z 2024-07-10T14:31:50+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-10T12:32:40.0877717Z 2024-07-10T14:32:40+02:00:     azure-arm.win11-23h2-avd: ERROR: Es ist nicht m”glich, eine Methode f�r einen Ausdruck aufzurufen, der den NULL hat.
2024-07-10T12:32:40.0879494Z 2024-07-10T14:32:40+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: Zeile 190
2024-07-10T12:32:40.0884896Z 2024-07-10T14:32:40+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, <Keine Datei>: Zeile 1
2024-07-10T12:32:40.0890740Z 2024-07-10T14:32:40+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION: System.Management.Automation.RuntimeException: Es ist nicht m”glich, eine Methode f�r einen Ausdruck aufzurufen, der den NULL hat.
2024-07-10T12:32:40.0907948Z 2024-07-10T14:32:40+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2024-07-10T12:32:40.0910495Z 2024-07-10T14:32:40+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2024-07-10T12:32:40.0924606Z 2024-07-10T14:32:40+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:32:40.0944427Z 2024-07-10T14:32:40+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:32:40.0949138Z 2024-07-10T14:32:40+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:32:40.0958635Z 2024-07-10T14:32:40+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:32:51.5978548Z 2024-07-10T14:32:51+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-10T12:33:11.1656053Z 2024-07-10T14:33:11+02:00:     azure-arm.win11-23h2-avd: ERROR: Es ist nicht m”glich, eine Methode f�r einen Ausdruck aufzurufen, der den NULL hat.
2024-07-10T12:33:11.1664742Z 2024-07-10T14:33:11+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: Zeile 190
2024-07-10T12:33:11.1673368Z 2024-07-10T14:33:11+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, <Keine Datei>: Zeile 1
2024-07-10T12:33:11.1683252Z 2024-07-10T14:33:11+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION: System.Management.Automation.RuntimeException: Es ist nicht m”glich, eine Methode f�r einen Ausdruck aufzurufen, der den NULL hat.
2024-07-10T12:33:11.1693083Z 2024-07-10T14:33:11+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2024-07-10T12:33:11.1701205Z 2024-07-10T14:33:11+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2024-07-10T12:33:11.1710413Z 2024-07-10T14:33:11+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:11.1727334Z 2024-07-10T14:33:11+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:11.1735428Z 2024-07-10T14:33:11+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:11.1745727Z 2024-07-10T14:33:11+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:22.2720394Z 2024-07-10T14:33:22+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-10T12:33:26.9769365Z 2024-07-10T14:33:26+02:00:     azure-arm.win11-23h2-avd: ERROR: Es ist nicht m”glich, eine Methode f�r einen Ausdruck aufzurufen, der den NULL hat.
2024-07-10T12:33:26.9778779Z 2024-07-10T14:33:26+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: Zeile 190
2024-07-10T12:33:26.9786071Z 2024-07-10T14:33:26+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, <Keine Datei>: Zeile 1
2024-07-10T12:33:26.9797769Z 2024-07-10T14:33:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION: System.Management.Automation.RuntimeException: Es ist nicht m”glich, eine Methode f�r einen Ausdruck aufzurufen, der den NULL hat.
2024-07-10T12:33:26.9819020Z 2024-07-10T14:33:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2024-07-10T12:33:26.9822391Z 2024-07-10T14:33:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2024-07-10T12:33:26.9832673Z 2024-07-10T14:33:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:26.9840791Z 2024-07-10T14:33:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:26.9853472Z 2024-07-10T14:33:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:26.9863505Z 2024-07-10T14:33:26+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:38.2360797Z 2024-07-10T14:33:38+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-10T12:33:42.7897834Z 2024-07-10T14:33:42+02:00:     azure-arm.win11-23h2-avd: ERROR: Es ist nicht m”glich, eine Methode f�r einen Ausdruck aufzurufen, der den NULL hat.
2024-07-10T12:33:42.7905129Z 2024-07-10T14:33:42+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: Zeile 190
2024-07-10T12:33:42.7912811Z 2024-07-10T14:33:42+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, <Keine Datei>: Zeile 1
2024-07-10T12:33:42.7922926Z 2024-07-10T14:33:42+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION: System.Management.Automation.RuntimeException: Es ist nicht m”glich, eine Methode f�r einen Ausdruck aufzurufen, der den NULL hat.
2024-07-10T12:33:42.7943156Z 2024-07-10T14:33:42+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2024-07-10T12:33:42.7950803Z 2024-07-10T14:33:42+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2024-07-10T12:33:42.7964747Z 2024-07-10T14:33:42+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:42.7975511Z 2024-07-10T14:33:42+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:42.7995594Z 2024-07-10T14:33:42+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:42.8002204Z 2024-07-10T14:33:42+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:33:54.1809861Z 2024-07-10T14:33:54+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-10T12:34:03.7394170Z 2024-07-10T14:34:03+02:00:     azure-arm.win11-23h2-avd: ERROR: Es ist nicht m”glich, eine Methode f�r einen Ausdruck aufzurufen, der den NULL hat.
2024-07-10T12:34:03.7403348Z 2024-07-10T14:34:03+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: Zeile 190
2024-07-10T12:34:03.7409860Z 2024-07-10T14:34:03+02:00:     azure-arm.win11-23h2-avd: ERROR: bei <ScriptBlock>, <Keine Datei>: Zeile 1
2024-07-10T12:34:03.7428063Z 2024-07-10T14:34:03+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION: System.Management.Automation.RuntimeException: Es ist nicht m”glich, eine Methode f�r einen Ausdruck aufzurufen, der den NULL hat.
2024-07-10T12:34:03.7431223Z 2024-07-10T14:34:03+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2024-07-10T12:34:03.7439534Z 2024-07-10T14:34:03+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2024-07-10T12:34:03.7454481Z 2024-07-10T14:34:03+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:34:03.7458352Z 2024-07-10T14:34:03+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:34:03.7473069Z 2024-07-10T14:34:03+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:34:03.7487631Z 2024-07-10T14:34:03+02:00:     azure-arm.win11-23h2-avd: ERROR EXCEPTION:    bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2024-07-10T12:34:08.7606473Z 2024-07-10T14:34:08+02:00: ==> azure-arm.win11-23h2-avd: Provisioning step had errors: Running the cleanup provisioner, if present...
2024-07-10T12:34:08.7618472Z 2024-07-10T14:34:08+02:00: ==> azure-arm.win11-23h2-avd: 
2024-07-10T12:34:08.7620365Z ==> azure-arm.win11-23h2-avd: Deleting Virtual Machine deployment and its attached resources...

@brmcmill
Copy link

We're seeing this with Custom Image Templates and AVD customers as well.

@Dellson
Copy link

Dellson commented Jul 10, 2024

I confirm that the newest update didn't help.
I am getting the same exception as @xenadmin.
The issue happens only for Windows 11 / Windows 11 IP after yesterday's monthly Windows Update release.

    azure-arm.exact-ta-template: Searching for Windows updates...
    azure-arm.exact-ta-template: ERROR: The property 'CanRequestUserInput' cannot be found on this object. Verify that the property exists.
    azure-arm.exact-ta-template: ERROR: at <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: line 204
    azure-arm.exact-ta-template: ERROR: at <ScriptBlock>, <No file>: line 1
    azure-arm.exact-ta-template: ERROR EXCEPTION: System.Management.Automation.PropertyNotFoundException: The property 'CanRequestUserInput' cannot be found on this object. Verify that the property exists.
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

@rgl rgl reopened this Jul 10, 2024
@Dellson
Copy link

Dellson commented Jul 11, 2024

I applied the newest release (v0.16.3). The 'CanRequestUserInput' issue is gone, but there is a new one.
The plugin found an update that seems to be invalid, as it is empty and was allegedly created on the Unix epoch time.

    azure-arm.exact-ta-template: Searching for Windows updates...
    azure-arm.exact-ta-template: Found Windows update (1970-01-01; 0 MB):
    azure-arm.exact-ta-template: ERROR: Element not found. (Exception from HRESULT: 0x8002802B (TYPE_E_ELEMENTNOTFOUND))
    azure-arm.exact-ta-template: ERROR: at <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: line 216
    azure-arm.exact-ta-template: ERROR: at <ScriptBlock>, <No file>: line 1
    azure-arm.exact-ta-template: ERROR EXCEPTION: System.Runtime.InteropServices.COMException (0x8002802B): Element not found. (Exception from HRESULT: 0x8002802B (TYPE_E_ELEMENTNOTFOUND))
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Management.Automation.ComInterop.ComRuntimeHelpers.GetITypeInfoFromIDispatch(IDispatch dispatch, Boolean throwIfMissingExpectedTypeInfo)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Management.Automation.ComInterop.IDispatchComObject.EnsureScanDefinedMethods()
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Management.Automation.ComInterop.IDispatchComObject.System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(Expression parameter)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Dynamic.DynamicMetaObject.Create(Object value, Expression expression)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, ReadOnlyCollection`1 parameters, LabelTarget returnLabel)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T](CallSite`1 site, Object[] args)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.DynamicInstruction`2.Run(InterpretedFrame frame)
    azure-arm.exact-ta-template: ERROR EXCEPTION:    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

@rgl
Copy link
Owner

rgl commented Jul 11, 2024

please try https://github.com/rgl/packer-plugin-windows-update/releases/tag/v0.16.4. it now ignores updates that do not have a title.

@Ruthhl3ss
Copy link

please try https://github.com/rgl/packer-plugin-windows-update/releases/tag/v0.16.4. it now ignores updates that do not have a title.

Hello,

I tried to update the packer module to 0.16.4 but it does not find any updates anymore:

image

In previous version it always finds updates, example:

image

So, I think it doesn't find the updates anymore.

@xenadmin
Copy link

I can confirm what @Ruthhl3ss says, it doesn't find updates anymore, it has always found Defender updates before.

@jbne
Copy link
Author

jbne commented Jul 11, 2024

My guess is something in the latest Windows 11 build 22631.3880.240704 released on 07/09 broke WSUS or some other component used by Windows Update Agent, resulting in updates being correctly picked up by the Windows Update Agent but having $null fields. Or something in between those layers broke as well that result in this behavior, not entirely sure at this point.

A workaround that worked for me was pinning Windows version to the previous 22631.3737.240607. Not the best thing, but at least it might fix the issue for some of you who don't necessarily care about using the latest version out of the box. The updates from KB5040442 are picked up and installed correctly on the previous version anyway, which seems to be the main difference across the latest and the previous version.

EDIT: I spoke too soon, the issue appears again after KB5040442 is installed. So maybe excluding that update would work.

@jbne
Copy link
Author

jbne commented Jul 11, 2024

I tried excluding KB5040442, that worked fine. Something about KB5040442 is breaking the COM interface, so it's not an issue that can be fixed in this plugin.

But maybe having an appropriate error message that indicates a break in behavior with Microsoft.Update.Session would be a good idea.

@xenadmin
Copy link

@jbne Did you try that with plugin version 0.16.4?
Excluding KB5040442 should break nothing, as the Azure marketplace images are already on the latest CU, so we should be able to exclude that without any downsides at all, do you agree?

@jbne
Copy link
Author

jbne commented Jul 11, 2024

No I tried that with 0.16, haven't updated yet. I agree, other than not having the updates from KB5040442 most users wouldn't be affected by excluding it.

@alkurdy
Copy link

alkurdy commented Jul 11, 2024

Jsut an fyi:
https://community.automox.com/industry-discussion-143/windows-11-updates-api-was-secretly-changed-here-s-what-it-broke-how-to-fix-it-2507

@jbne
Copy link
Author

jbne commented Jul 11, 2024

@jbne Did you try that with plugin version 0.16.4? Excluding KB5040442 should break nothing, as the Azure marketplace images are already on the latest CU, so we should be able to exclude that without any downsides at all, do you agree?

re: this, tried with 0.16.4 and it worked fine when including a filter this way (as well as setting the image_version to the previous instead of latest):

image_version = "22631.3737.240607" # "latest" is the default

provisioner "windows-update" {
    filters = [
      "exclude:$_.Title -like '*KB5040442*'",
      "include:$true"
    ]
  }

@xenadmin
Copy link

@jbne tried your filter, my pipeline still doesn't install any windows updates.

@alucenx
Copy link

alucenx commented Jul 12, 2024

@jbne tried your filter, my pipeline still doesn't install any windows updates.

this bit "type": "PowerShell",
"name": "SetUUSFeatureOverride",
"inline": [
"$uusKey = "HKLM:\SYSTEM\CurrentControlSet\Control\FeatureManagement\Overrides\4\1931709068"",
"if (Test-Path $uusKey) {",
" if ((Get-ItemProperty -Path $uusKey -Name 'EnabledState').EnabledState -ne 1) {",
" Set-ItemProperty -Path $uusKey -Name 'EnabledState' -Value 1 -Force",
" $host.UI.WriteErrorLine("UUS Feature override (1931709068) EnabledState changed to 1")",
" }",
"}"
],
"runAsSystem": true,
"runElevated": true

combined with "type": "WindowsUpdate",
"searchCriteria": "IsInstalled=0",
"filters": [
"exclude:$.Title -like 'KB5040442'",
"exclude:$
.Title -like 'Preview'",
"include:$true"
],
"updateLimit": 25
managed to work for me, successfuly deployed via azure image builder, not sure if it will help

@xenadmin
Copy link

xenadmin commented Jul 12, 2024

@alucenx Maybe a code block next time? Pretty hard to read ;-)
EDIT: I'm testing your approach as we speak. Will report back in a few hours!

@alucenx
Copy link

alucenx commented Jul 12, 2024

@alucenx Maybe a code block next time? Pretty hard to read ;-)
Yeah, apologies, 3 AM for me when I commented, brain was fried a bit =)

@HenryGelderbloem
Copy link

I have this issue and I'd rather not filter out the KB so I have escalated it to the Windows team to investigate as it is clear that it isn't an issue with this packer plugin.

@jbne
Copy link
Author

jbne commented Jul 12, 2024

@jbne tried your filter, my pipeline still doesn't install any windows updates.

Ahh that might be because you're still using the latest image version, you would have to roll back to the previous using image_version - sorry I didn't include that in my comment originally 😅 I updated it to reflect that. That exclusion filter doesn't retroactively work when the KB update is already baked into the image, which is the case with latest.

Though it sounds like that piece posted by @alkurdy might fix latest, which is what @alucenx tried. You probably don't need the filter in that case.

@svetecs
Copy link

svetecs commented Jul 15, 2024

I'm running my packer build with 0.16.7, using:

provisioner "windows-update" {
pause_before = "10m"
search_criteria = "IsInstalled=0"
filters = [
"exclude:$_.Title -like 'Preview'",
"include:$true",
]
}

...and it looks better:

image

@ethancameron
Copy link

I still see the issues with version 0.16.7 using the latest win11-23h2-avd image from Microsoft:

image

@svetecs
Copy link

svetecs commented Jul 15, 2024

I'm using win11-23h2-pro build 22631.3880.240704

@rgl
Copy link
Owner

rgl commented Jul 15, 2024

I still see the issues with version 0.16.7 using the latest win11-23h2-avd image from Microsoft:

image

the workaround didn't work there. I'm afraid you/we have to wait for microsoft to fix this known issue as described in the article: The June 2024 preview update might impact applications using Windows Update APIs.

@xenadmin
Copy link

@rgl Thank you for the link! Now we all know this is a Know issue and that we have to wait, sadly.

@ethancameron
Copy link

I still see the issues with version 0.16.7 using the latest win11-23h2-avd image from Microsoft:

image

I was able to get it working by adding the line:

pause_before = "10m"

Without that line, it does not work for me.

@svetecs
Copy link

svetecs commented Jul 16, 2024

As an FYI, I always have had that 'pause before' in the WU task so I can't say if that's what corrected it for me.

Edit: Strange. My PRO builds were working fine. I've ran a few packer builds of 11 23h3 pro without issue, then my latest one give me:

ERROR EXCEPTION: System.Management.Automation.RuntimeException: the windows update api is in an invalid state. see #144.

@alucenx
Copy link

alucenx commented Jul 17, 2024

As an FYI, I always have had that 'pause before' in the WU task so I can't say if that's what corrected it for me.

Edit: Strange. My PRO builds were working fine. I've ran a few packer builds of 11 23h3 pro without issue, then my latest one give me:

ERROR EXCEPTION: System.Management.Automation.RuntimeException: the windows update api is in an invalid state. see #144.

Try using a fixed build (ex: i use 22631.3737.240611, ent) and exclude:$_.Title -like 'KB5040442'
Have had no issues since I started doing that on enterprise builds

@svetecs
Copy link

svetecs commented Jul 19, 2024

Try using a fixed build (ex: i use 22631.3737.240611, ent) and exclude:$_.Title -like 'KB5040442'
Have had no issues since I started doing that on enterprise builds

I re-ran my PRO build right after it errored out and updates sailed through without issue. I haven't excluded 5040442. I'm still using the provisioner like I posted above. I've done other builds after that and so far, none have failed.

@xenadmin
Copy link

xenadmin commented Jul 24, 2024

@alucenx When you start from an older build like 22631.3737.240607 and exclude KB5040442, that final image delivered to the customer will never reach 22631.3880.240704 and therefore will be vulnerable, won't it? Or do I misunderstand your approach?

Today, I'll try the following settings:

  • In the Azure ARM source I set: image_version = "22631.3737.240607"
  • In the first Windows update cycle at the beginning of the pipeline I set:
provisioner "windows-update" {
  pause_before = "5m"
  search_criteria = "IsInstalled=0"
  filters = [
    "exclude:$_.Title -like '*Silverlight*'",
    "exclude:$_.Title -like '*Preview*'",
    "exclude:$_.Title -like '*Vorschau*'",
    "exclude:$_.Title -like '*KB5040442*'",
    "include:$true"
  ]
  update_limit = 25
}
  • And in the final update cycle at the end of the pipeline I set:
provisioner "windows-update" {
  pause_before = "5m"
  search_criteria = "IsInstalled=0"
  filters = [
    "exclude:$_.Title -like '*Silverlight*'",
    "exclude:$_.Title -like '*Preview*'",
    "exclude:$_.Title -like '*Vorschau*'",
    "include:$true"
  ]
  update_limit = 25
}

UPDATE: This worked extremely well! In the first cycle, he installed every pending update without issues, except the faulty one.

2024-07-24T10:55:17+02:00: ==> azure-arm.win11-23h2-avd: Pausing 5m0s before the next provisioner...
2024-07-24T11:00:17+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update elevated script...
2024-07-24T11:00:22+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update check for reboot required elevated script...
2024-07-24T11:00:25+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update script...
2024-07-24T11:00:33+02:00: ==> azure-arm.win11-23h2-avd: Running Windows update...
2024-07-24T11:00:39+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-24T11:00:49+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-03-27; 18,08 MB): Update für Windows Security platform-Antischadsoftwareplattform - KB5007651 (Version 1.0.2402.27001)
2024-07-24T11:00:49+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-07-09; 69,75 MB): Windows-Tool zum Entfernen bsartiger Software x64 - v5.126 (KB890830)
2024-07-24T11:00:49+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-07-09; 71,55 MB): 2024-07 Kumulatives Update für .NET Framework 3.5 und 4.8.1 für Windows 11, version 23H2 für x64 (KB5039895)
2024-07-24T11:00:49+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-07-24; 148,33 MB): Security Intelligence-Update für Microsoft Defender Antivirus - KB2267602 (Version 1.415.295.0) - Aktueller Kanal (Allgemein)
2024-07-24T11:00:49+02:00:     azure-arm.win11-23h2-avd: Skipped (filter) Windows update (2024-07-09; 131039,23 MB): 2024-07 Kumulatives Update für Windows 11 Version 23H2 für x64-basierte Systeme (KB5040442)
2024-07-24T11:00:49+02:00:     azure-arm.win11-23h2-avd: Downloading Windows updates (4 updates; 307,71 MB)...
2024-07-24T11:01:35+02:00:     azure-arm.win11-23h2-avd: Waiting for operation to complete (system performance: 0% cpu; 12% memory)...
[...]
2024-07-24T11:15:56+02:00:     azure-arm.win11-23h2-avd: Installing Windows updates...
2024-07-24T11:16:26+02:00:     azure-arm.win11-23h2-avd: Waiting for the Windows Modules Installer to exit...
2024-07-24T11:16:52+02:00:     azure-arm.win11-23h2-avd: Waiting for operation to complete (system performance: 1% cpu; 13% memory)...
2024-07-24T11:17:53+02:00:     azure-arm.win11-23h2-avd: Waiting for operation to complete (system performance: 0% cpu; 13% memory)...
2024-07-24T11:18:42+02:00: ==> azure-arm.win11-23h2-avd: Restarting the machine...
2024-07-24T11:18:43+02:00: ==> azure-arm.win11-23h2-avd: Waiting for machine to become available...
2024-07-24T11:18:43+02:00: ==> azure-arm.win11-23h2-avd: Der Computer wird heruntergefahren.(1115)
2024-07-24T11:19:32+02:00: ==> azure-arm.win11-23h2-avd: Checking for pending restart...
2024-07-24T11:19:42+02:00:     azure-arm.win11-23h2-avd: pkrvmb2gm1pfltn restarted.
2024-07-24T11:19:42+02:00: ==> azure-arm.win11-23h2-avd: Restart complete
2024-07-24T11:19:42+02:00: ==> azure-arm.win11-23h2-avd: Running Windows update...
2024-07-24T11:19:50+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-24T11:19:55+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-03-27; 18,08 MB): Update für Windows Security platform-Antischadsoftwareplattform - KB5007651 (Version 1.0.2402.27001)
2024-07-24T11:19:55+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-07-09; 69,75 MB): Windows-Tool zum Entfernen bsartiger Software x64 - v5.126 (KB890830)
2024-07-24T11:19:55+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-07-15; 12,77 MB): Update für Microsoft Defender Antivirus Antischadsoftwareplattform - KB4052623 (Version 4.18.24060.7) - Aktueller Kanal (Allgemein)
2024-07-24T11:19:55+02:00:     azure-arm.win11-23h2-avd: Skipped (filter) Windows update (2024-07-09; 131039,23 MB): 2024-07 Kumulatives Update für Windows 11 Version 23H2 für x64-basierte Systeme (KB5040442)
2024-07-24T11:19:55+02:00:     azure-arm.win11-23h2-avd: Downloading Windows updates (3 updates; 100,6 MB)...
2024-07-24T11:20:00+02:00:     azure-arm.win11-23h2-avd: Installing Windows updates...
2024-07-24T11:20:45+02:00:     azure-arm.win11-23h2-avd: Waiting for operation to complete (system performance: 0% cpu; 7% memory)...
2024-07-24T11:21:20+02:00: ==> azure-arm.win11-23h2-avd: Restarting Machine
2024-07-24T11:21:21+02:00: ==> azure-arm.win11-23h2-avd: Waiting for machine to restart...
2024-07-24T11:21:56+02:00:     azure-arm.win11-23h2-avd: pkrvmb2gm1pfltn restarted.
2024-07-24T11:21:56+02:00: ==> azure-arm.win11-23h2-avd: Machine successfully restarted, moving on

Afterwards all of our software stack was installed.
Finally it installed all pending updates including the faulty one, without issues!

2024-07-24T12:47:30.0582752Z 2024-07-24T14:47:30+02:00: ==> azure-arm.win11-23h2-avd: Pausing 5m0s before the next provisioner...
2024-07-24T12:52:30.0755820Z 2024-07-24T14:52:30+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update elevated script...
2024-07-24T12:52:33.8836210Z 2024-07-24T14:52:33+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update check for reboot required elevated script...
2024-07-24T12:52:37.0836030Z 2024-07-24T14:52:37+02:00: ==> azure-arm.win11-23h2-avd: Uploading the Windows update script...
2024-07-24T12:52:44.4817001Z 2024-07-24T14:52:44+02:00: ==> azure-arm.win11-23h2-avd: Running Windows update...
2024-07-24T12:52:50.7884387Z 2024-07-24T14:52:50+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-24T12:52:55.8223114Z 2024-07-24T14:52:55+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2012-04-05; 9,8 MB): Sicherheitsupdate für Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package (KB2565063)
2024-07-24T12:52:55.8233291Z 2024-07-24T14:52:55+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-03-27; 18,08 MB): Update für Windows Security platform-Antischadsoftwareplattform - KB5007651 (Version 1.0.2402.27001)
2024-07-24T12:52:55.8240813Z 2024-07-24T14:52:55+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-07-09; 63,81 MB): 2024-07 .NET 6.0.32 Security Update for x64 Client (KB5041080)
2024-07-24T12:52:55.8249978Z 2024-07-24T14:52:55+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-07-09; 83,18 MB): 2024-07 .NET 8.0.7 Security Update for x64 Client (KB5041081)
2024-07-24T12:52:55.8262519Z 2024-07-24T14:52:55+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-07-24; 1116,17 MB): Security Intelligence-Update für Microsoft Defender Antivirus - KB2267602 (Version 1.415.297.0) - Aktueller Kanal (Allgemein)
2024-07-24T12:52:55.8268861Z 2024-07-24T14:52:55+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-07-09; 131039,23 MB): 2024-07 Kumulatives Update für Windows 11 Version 23H2 für x64-basierte Systeme (KB5040442)
2024-07-24T12:52:55.8277313Z 2024-07-24T14:52:55+02:00:     azure-arm.win11-23h2-avd: Downloading Windows updates (6 updates; 132330,27 MB)...
2024-07-24T12:53:05.8411763Z 2024-07-24T14:53:05+02:00:     azure-arm.win11-23h2-avd: Installing Windows updates...
2024-07-24T12:53:46.4899556Z 2024-07-24T14:53:46+02:00:     azure-arm.win11-23h2-avd: Waiting for operation to complete (system performance: 0% cpu; 9% memory)...
[...]
2024-07-24T13:00:17.0833282Z 2024-07-24T15:00:17+02:00:     azure-arm.win11-23h2-avd: Waiting for the Windows Modules Installer to exit...
2024-07-24T13:00:47.1600314Z 2024-07-24T15:00:47+02:00:     azure-arm.win11-23h2-avd: Waiting for operation to complete (system performance: 0% cpu; 13% memory)...
2024-07-24T13:01:47.2351896Z 2024-07-24T15:01:47+02:00:     azure-arm.win11-23h2-avd: Waiting for operation to complete (system performance: 0% cpu; 13% memory)...
2024-07-24T13:02:26.7674791Z 2024-07-24T15:02:26+02:00: ==> azure-arm.win11-23h2-avd: Restarting the machine...
2024-07-24T13:02:26.9365522Z 2024-07-24T15:02:26+02:00: ==> azure-arm.win11-23h2-avd: Waiting for machine to become available...
2024-07-24T13:02:27.1040742Z 2024-07-24T15:02:27+02:00: ==> azure-arm.win11-23h2-avd: Der Computer wird heruntergefahren.(1115)
2024-07-24T13:04:38.5030907Z 2024-07-24T15:04:38+02:00: ==> azure-arm.win11-23h2-avd: Der Computer wird heruntergefahren.(1115)
2024-07-24T13:05:34.8822715Z 2024-07-24T15:05:34+02:00: ==> azure-arm.win11-23h2-avd: Checking for pending restart...
2024-07-24T13:05:43.3002717Z 2024-07-24T15:05:43+02:00:     azure-arm.win11-23h2-avd: Waiting for the Windows Modules Installer to exit...
2024-07-24T13:06:38.5599722Z 2024-07-24T15:06:38+02:00:     azure-arm.win11-23h2-avd: Waiting for operation to complete (system performance: 0% cpu; 8% memory)...
2024-07-24T13:07:38.7042157Z 2024-07-24T15:07:38+02:00:     azure-arm.win11-23h2-avd: Waiting for operation to complete (system performance: 0% cpu; 8% memory)...
2024-07-24T13:08:13.2774451Z 2024-07-24T15:08:13+02:00: ==> azure-arm.win11-23h2-avd: Restart is still pending...
2024-07-24T13:08:13.2779630Z 2024-07-24T15:08:13+02:00: ==> azure-arm.win11-23h2-avd: Restarting the machine...
2024-07-24T13:08:13.4296236Z 2024-07-24T15:08:13+02:00: ==> azure-arm.win11-23h2-avd: Waiting for machine to become available...
2024-07-24T13:08:13.6156637Z 2024-07-24T15:08:13+02:00: ==> azure-arm.win11-23h2-avd: Der Computer wird heruntergefahren.(1115)
2024-07-24T13:09:17.2645866Z 2024-07-24T15:09:17+02:00: ==> azure-arm.win11-23h2-avd: Checking for pending restart...
2024-07-24T13:09:24.7354734Z 2024-07-24T15:09:24+02:00:     azure-arm.win11-23h2-avd: pkrvmb2gm1pfltn restarted.
2024-07-24T13:09:24.7361341Z 2024-07-24T15:09:24+02:00: ==> azure-arm.win11-23h2-avd: Restart complete
2024-07-24T13:09:24.7372296Z 2024-07-24T15:09:24+02:00: ==> azure-arm.win11-23h2-avd: Running Windows update...
2024-07-24T13:09:31.6123889Z 2024-07-24T15:09:31+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-24T13:10:27.0466487Z 2024-07-24T15:10:27+02:00:     azure-arm.win11-23h2-avd: Waiting for operation to complete (system performance: 0% cpu; 8% memory)...
2024-07-24T13:10:31.5799326Z 2024-07-24T15:10:31+02:00:     azure-arm.win11-23h2-avd: Repairing the windows update settings to work in non-preview mode...
2024-07-24T13:10:31.5810207Z 2024-07-24T15:10:31+02:00:     azure-arm.win11-23h2-avd: Restarting the machine to retry a new windows update round...
2024-07-24T13:10:31.5818733Z 2024-07-24T15:10:31+02:00: ==> azure-arm.win11-23h2-avd: Restarting the machine...
2024-07-24T13:10:31.7752057Z 2024-07-24T15:10:31+02:00: ==> azure-arm.win11-23h2-avd: Waiting for machine to become available...
2024-07-24T13:11:34.5086490Z 2024-07-24T15:11:34+02:00: ==> azure-arm.win11-23h2-avd: Checking for pending restart...
2024-07-24T13:11:41.3604651Z 2024-07-24T15:11:41+02:00:     azure-arm.win11-23h2-avd: pkrvmb2gm1pfltn restarted.
2024-07-24T13:11:41.3610129Z 2024-07-24T15:11:41+02:00: ==> azure-arm.win11-23h2-avd: Restart complete
2024-07-24T13:11:41.3618922Z 2024-07-24T15:11:41+02:00: ==> azure-arm.win11-23h2-avd: Running Windows update...
2024-07-24T13:11:48.5477791Z 2024-07-24T15:11:48+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-24T13:12:13.1413185Z 2024-07-24T15:12:13+02:00:     azure-arm.win11-23h2-avd: Restarting the machine to retry a new windows update round...
2024-07-24T13:12:13.1419214Z 2024-07-24T15:12:13+02:00: ==> azure-arm.win11-23h2-avd: Restarting the machine...
2024-07-24T13:12:13.2990215Z 2024-07-24T15:12:13+02:00: ==> azure-arm.win11-23h2-avd: Waiting for machine to become available...
2024-07-24T13:12:13.4857702Z 2024-07-24T15:12:13+02:00: ==> azure-arm.win11-23h2-avd: Der Computer wird heruntergefahren.(1115)
2024-07-24T13:13:16.1818155Z 2024-07-24T15:13:16+02:00: ==> azure-arm.win11-23h2-avd: Checking for pending restart...
2024-07-24T13:13:23.4812150Z 2024-07-24T15:13:23+02:00:     azure-arm.win11-23h2-avd: pkrvmb2gm1pfltn restarted.
2024-07-24T13:13:23.4818150Z 2024-07-24T15:13:23+02:00: ==> azure-arm.win11-23h2-avd: Restart complete
2024-07-24T13:13:23.4834783Z 2024-07-24T15:13:23+02:00: ==> azure-arm.win11-23h2-avd: Running Windows update...
2024-07-24T13:13:30.3612489Z 2024-07-24T15:13:30+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-24T13:13:34.9461536Z 2024-07-24T15:13:34+02:00:     azure-arm.win11-23h2-avd: Restarting the machine to retry a new windows update round...
2024-07-24T13:13:34.9470617Z 2024-07-24T15:13:34+02:00: ==> azure-arm.win11-23h2-avd: Restarting the machine...
2024-07-24T13:13:35.1076646Z 2024-07-24T15:13:35+02:00: ==> azure-arm.win11-23h2-avd: Waiting for machine to become available...
2024-07-24T13:14:37.9357602Z 2024-07-24T15:14:37+02:00: ==> azure-arm.win11-23h2-avd: Checking for pending restart...
2024-07-24T13:14:45.1993489Z 2024-07-24T15:14:45+02:00:     azure-arm.win11-23h2-avd: pkrvmb2gm1pfltn restarted.
2024-07-24T13:14:45.2000317Z 2024-07-24T15:14:45+02:00: ==> azure-arm.win11-23h2-avd: Restart complete
2024-07-24T13:14:45.2008682Z 2024-07-24T15:14:45+02:00: ==> azure-arm.win11-23h2-avd: Running Windows update...
2024-07-24T13:14:52.2430424Z 2024-07-24T15:14:52+02:00:     azure-arm.win11-23h2-avd: Searching for Windows updates...
2024-07-24T13:15:12.3030212Z 2024-07-24T15:15:12+02:00:     azure-arm.win11-23h2-avd: Found Windows update (2024-03-27; 18,08 MB): Update für Windows Security platform-Antischadsoftwareplattform - KB5007651 (Version 1.0.2402.27001)
2024-07-24T13:15:12.3033043Z 2024-07-24T15:15:12+02:00:     azure-arm.win11-23h2-avd: Downloading Windows updates (1 updates; 18,08 MB)...
2024-07-24T13:15:16.8554552Z 2024-07-24T15:15:16+02:00:     azure-arm.win11-23h2-avd: Installing Windows updates...
2024-07-24T13:15:16.8614332Z 2024-07-24T15:15:16+02:00: ==> azure-arm.win11-23h2-avd: Restarting Machine
2024-07-24T13:15:17.2881411Z 2024-07-24T15:15:17+02:00: ==> azure-arm.win11-23h2-avd: Waiting for machine to restart...
2024-07-24T13:16:15.0763887Z 2024-07-24T15:16:15+02:00:     azure-arm.win11-23h2-avd: pkrvmb2gm1pfltn restarted.
2024-07-24T13:16:15.0788561Z 2024-07-24T15:16:15+02:00: ==> azure-arm.win11-23h2-avd: Machine successfully restarted, moving on

@inistor
Copy link

inistor commented Jul 25, 2024

In my case, I had the error (System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression) using the plugin version v0.16.0 and Windows 11 ISO 23H2.7, build 77827, Jun 2024.

After upgrading to v0.16.7, it works fin with both:

  • Windows 11 ISO 23H2.7, build 77827, Jun 2024
  • Windows 11 ISO 23H2.8, build 78774, Jul 2024

My plugin configuration is basic:

  provisioner "windows-update" {
    pause_before = "30s"
  }

I don't believe the pause is needed anymore - in the past, with v0.16.0, is sometimes worked so I presumed that a pause might help - though in most cases (say 4 out of 5) it failed with the same System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression error.

@HenryGelderbloem
Copy link

Microsoft have fixed the underlying cause of the issue in KB5040527 https://support.microsoft.com/en-gb/topic/july-25-2024-kb5040527-os-builds-22621-3958-and-22631-3958-preview-de3e1e24-0c07-4210-9777-8e03a1446bae

@jbne
Copy link
Author

jbne commented Jul 26, 2024

Thanks @HenryGelderbloem, I'll be testing out with the following today:

windows-update = {
      version = "0.16.7"
      source = "github.com/rgl/windows-update"
    }

image_publisher = "MicrosoftWindowsDesktop"
image_offer = "Windows-11"
image_sku = "win11-23h2-ent"
image_version = "latest"

provisioner "windows-update" {
  restart_timeout = "5m"
}

@jbne
Copy link
Author

jbne commented Jul 26, 2024

image_version = "latest" did not work for me, but using the previous Windows version image_version = "22631.3737.240607" installs all updates properly without having to filter out the problematic update KB5040442. I think KB5040527 should be included in next month's Windows build, at which point using image_version = "latest" should hopefully work.

@lancedavidson85
Copy link

Anyone know if this issue has been fixed yet?

@xenadmin
Copy link

xenadmin commented Oct 7, 2024

I don't have any more issues. I switched back to image version latest
but kept pause_before = "5m" just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests