You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a possibility to install Windows Updates in an Azure ARM template like it is described here for VMWare templates:
Generally speaking, people deal with the windows update nondeterminism by providing their windows update script as a floppy file, so that it runs before the communicator connects and before provisioners run. By installing SSH or enabling winRM after your windows update script runs, you guarantee that you aren't going to accidentally start provisioners before you're ready. Here's an example:
I can see why you'd want this feature but the Packer template isn't meant to be a programming language. I think that adding a loop feature to the provisioners makes some pretty dramatic changes to user expectations for what a Packer provisioner should be, and in your particular case I think it's overkill. I'll think about it some more but for now I'm going to close this since it isn't something I will be putting on the roadmap.
The problem with the windows updates that you dont know how often the machine needs to restart and at the same time you want to stay in sync with the pipeline.
This issue was originally opened by @blitzeisschoenaufpassen in hashicorp/packer#12307 and has been migrated to this repository. The original issue description is below.
Is there a possibility to install Windows Updates in an Azure ARM template like it is described here for VMWare templates:
The problem with the windows updates that you dont know how often the machine needs to restart and at the same time you want to stay in sync with the pipeline.
Even Microsoft does not execute the Windows Updates more than once, but after the execution of the script and a reboot there are still more updates available: https://github.com/actions/runner-images/blob/main/images/win/scripts/Installers/Install-WindowsUpdates.ps1
Someone had a similar problem, but i can totally understand that you wont implement loops for that matter:
hashicorp/packer#6681
Is there another solution for Azure ARM or in general?
The text was updated successfully, but these errors were encountered: