Forum Discussion
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
- AadLutgertBrass ContributorHi,
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-nldCopper Contributor
- elliottpark_msftMicrosoftI was able to successfully package an image when I unchecked "Windows Updates".
- cjr-nldCopper ContributorFor anyone still having issues, Microsoft has released a patch for this. I described the steps for remediation on GitHub https://github.com/Azure/RDS-Templates/issues/793 . Hopefully this helps anyone out there to fix the issue.
Feel free to reach out there or here for any questions.