I have more than 100 Windows 10 VMs in Azure, many of them usually shut down, and need to apply vulnerability fixes. Most can be scripted, but a few third-party installers seem to require GUI steps. Whatโs a sensible way to tackle this at scale?
How would you handle GUI-only patches across a few hundred Azure VMs?
Answers
Before automating mouse clicks, check whether those installers have silent or unattended modes. Look for vendor documentation, command-line switches, response files, or a way to configure the same settings through registry or policy. A predictable wizard is still a brittle deployment interface, and desktop automation can fail when a dialog changes or a session is not interactive.
Package the installer and its configuration, test it on a small group, and capture logs and exit codes. If there truly is no unattended path, treat that as a constraint to raise with the application owner rather than assuming a jumpbox will make GUI automation reliable.
Reply to this answer
Use the management system that already owns these machines if there is one. Domain-joined devices may be manageable through established endpoint tools and policy, while cloud-managed devices may fit an endpoint management service. The exact choice depends on how they are joined and managed today, so Iโd find that out before building a new deployment path.
For a one-off remediation, an Azure run-command or other remote script mechanism can handle the genuinely scriptable parts without logging in through a desktop. It wonโt magically make an interactive installer safe to automate, though. Keep that portion separate and validate it on a few representative VMs.
Reply to this answer
Also check the VM lifecycle. If these machines are generated from pipelines, rebuilding from a maintained image could be less work than patching every long-lived VM, especially if many are nearly identical. That only works if the workloads and data can be moved safely, so inventory dependencies and confirm with the owners before proposing replacement.
For machines that need to remain in place, group them by application and use case. A hundred unrelated systems should not be treated as one deployment target.
Rivet.ix:
They have separate use cases and are often shut down, so replacing them may not be straightforward. Grouping by owner and application sounds like a useful first step.
Reply to this answer
Thereโs a bigger maintenance question here too: Windows 10 is out of support, so ask the owners what the supported operating system and migration plan are. It may not be your decision to make, but it affects whether effort spent on a one-time patch process will be useful for long.
For the immediate work, document which fixes are scriptable, which require vendor action, and which machines are offline. Then coordinate patch windows and verify results when the VMs come back online.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Jojo:
That makes sense. Iโll check the vendor options and confirm whether the settings can be applied without the wizard first.