Forum Discussion

cjr-nld's avatar
cjr-nld
Copper Contributor
Jul 22, 2024

Custom Image Template for AVD fails because of Windows Update

Anyone else running into issues with deployment a new custom image using the custom image template?

 

Create a new incident on the GitHub page (Custom Image Template for AVD fails because of Windows Update · Issue #793 · Azure/RDS-Templates (github.com)) but trying to see if anyone else is running into issues?

 

The last few records in the logs are:
[db456492-baf7-4830-b9b2-22d9567ec815] PACKER 2024/07/18 08:25:02 ui:
[db456492-baf7-4830-b9b2-22d9567ec815] PACKER ==> Wait completed after 1 hour 54 minutes
[db456492-baf7-4830-b9b2-22d9567ec815] PACKER 2024/07/18 08:25:02 machine readable: error-count []string{"1"}
[db456492-baf7-4830-b9b2-22d9567ec815] PACKER 2024/07/18 08:25:02 ui error:
[db456492-baf7-4830-b9b2-22d9567ec815] PACKER ==> Some builds didn't complete successfully and had errors:
[db456492-baf7-4830-b9b2-22d9567ec815] PACKER 2024/07/18 08:25:02 machine readable: azure-arm,error []string{"retry count exhausted. Last err: Windows update script exited with non-zero exit status: 1"}
[db456492-baf7-4830-b9b2-22d9567ec815] PACKER 2024/07/18 08:25:02 ui error: --> azure-arm: retry count exhausted. Last err: Windows update script exited with non-zero exit status: 1

 

And it doesn't matter whether I select the Apply built-in windows scripts are not to create an image

  • AadLutgert's avatar
    AadLutgert
    Brass Contributor
    Hi,

    I'm having the same issue. I also tried using a Custom Template which I used sucessfully before isn't working anymore. I also tried to create a almost default template with only windows updates enabled. I tried multiple ways to create a custom image, but they all seem to fail.

    Thanks for sharing!
    • cjr-nld's avatar
      cjr-nld
      Copper Contributor

      AadLutgert 

       

      The issue is related to KB5040442, still waiting for a fix from Microsoft.

Resources