Search code examples
azurewindows-updateazure-vm-scale-set

Windows Automatic Updates on Windows VM in Azure Scale Set


I have Azure Scale Set with a custom Windows VM image (syspreped Windows 2016 DC image with some app preinstalled).

There is an option to enable Windows automatic updates on the operating system, level, but I'm missing information how it affects the scale out scenario.

Windows automatic update option

For example I could have 3-months old VM image, not joined to any Active Directory domain. What is going to happen when new machines will be added to a scale set?

  1. Windows updates are just enabled and machine is provisioned as is - updates will be installed later, some may require reboot.
  2. Windows updates are installed during the VM provisioning - this may extend time adding the machine, but it will be 100% ready when provisioned.

Solution

  • Windows Update will be enabled on the machine. The updates will be applied later and if required, reboot the new scaled out instances.

    If desired, you may wish to deploy a startup script to apply all updates prior to your application starting up.