How to automate Windows Update on Azure VM Scale Sets with Service Fabric

mrcode 51 Reputation points
2025-08-05T10:57:57.0166667+00:00

Hi everyone,

We have a few Virtual Machine Scale Sets in Azure running Windows, and inside each scale set we have several instances. These are managed using Service Fabric.

The problem: We are struggling to find a smooth way to apply Windows Updates to these instances.

Today’s process (manual):

  1. In Service Fabric, we deactivate node 1.
  2. Connect to the VM using Remote Desktop.
  3. Download and install Windows Updates manually.
  4. Reboot the instance.
  5. Wait for the instance to come back online and for all our applications to start properly.
  6. Activate the node in Service Fabric again.
  7. Repeat the same steps for node 2, node 3, and so on.

This is very time-consuming.

What we want: We’re looking for a way to automate this process – ideally, we would like to have a simple button or command to trigger the update process in a controlled way. We do have different maintenance windows that we need to follow, and we also want to monitor the process manually in case something goes wrong. So a fully automatic schedule is not ideal in our case.

Our question: What are our options for automating Windows Updates on VM Scale Sets using Service Fabric? Is there any built-in solution in Azure or Service Fabric that supports this kind of controlled update process?

We appreciate any suggestions, tools, or best practices you can share.

Thanks in advance!

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
{count} votes

Answer accepted by question author
  1. Jilakara Hemalatha 3,365 Reputation points Microsoft External Staff Moderator
    2025-08-07T11:26:00.31+00:00

    Hi mrcode,

    For environments utilizing a classic Service Fabric cluster with a silver durability level, Azure provides support for automatic OS image upgrades. This feature enables seamless updates to the OS disk across all instances within the associated Virtual Machine Scale Set (VMSS), enhancing security and reducing maintenance overhead.

    To enable automatic OS upgrades, update your scale set model definition with the appropriate configuration properties. Additionally, it is essential to disable Windows Update within the deployment template to avoid conflicts with Azure's managed update process.

    Once these changes are deployed:

    • All VM instances in the scale set will be reimaged.
    • The scale set will be configured for automatic OS updates, ensuring future OS patches are applied without manual intervention.

    Please find the below documentation for reference:
    https://free.blessedness.top/en-us/azure/service-fabric/how-to-patch-cluster-nodes-windows?wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider#enable-auto-os-upgrades-and-disable-windows-update

    Please let me know if you have any queries.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.