How to Automate KB5040434 Installation on Multiple VMs?

João Vitor do Prado Maia 20 Reputation points
2024-08-06T19:22:29.9833333+00:00

Hey everyone,

I need to install the KB5040434 update on a bunch of VMs. This update is super important because it fixes several vulnerabilities. Doing this one by one is a huge hassle, and each VM also needs a restart after the update.

Is there a way to automate this process? Maybe using Azure Cloud Shell, an automation account, or some other Azure feature? Any tips or guides would be really helpful.

Thanks in advance!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,791 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,241 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
295 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 36,831 Reputation points Microsoft Employee
    2024-08-12T16:54:08.67+00:00

    @João Vitor do Prado Maia

    Apologies for the delayed response. Azure Update Manager is an option to deploy this update. Deploy updates now and track results with Azure Update Manager.

    Other options would be using Run Command and installing updates using PowerShell.

    Let me know if you have any questions regarding these solutions and I will do my best to assist.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image


Your answer

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