Can we do patching and upgrading of Virtual machine in Azure Stack HCI ?

Aishwarya Upadhye 66 Reputation points
2023-09-08T05:17:22.24+00:00

Hi team,

I wanted to know whether we have any functionality to upgrade or update the OS of all Virtual Machine (say 5 VMs ) in Azure Stack HCI altogether. Please let me know if there's such functionality available using command line or through azure portal.

Thank you,

Aishwarya Upadhye.

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
356 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
314 questions
{count} votes

Accepted answer
  1. Trent Helms - MSFT 2,541 Reputation points Microsoft Employee
    2023-09-08T13:13:33.9833333+00:00

    Hi,

    There are many options available to you for updating VMs running on Azure Stack HCI. The latest option is Azure Update Manager which offers great flexibility to manage both Azure native and on-prem VMs and servers. This specific feature is still in preview, but is the v2 of the current Azure Automation Update Management. It offers many improvements which can be reviewed in the provided links.

    If you are looking for PowerShell options, the PSWindowsUpdate module is available for this purpose. I used the simple script below to kick off Windows Updates for VMs running in a test environment.

    NOTE: The script below is provided as-is with no warranties or guarantees of support. It is up to you as the user to verify and test the script thoroughly. Microsoft accepts no liability from the use of this script in any form.

    $vms = "VM1","VM2","VM3"
    foreach($vm in $vms)
    {
        Invoke-WUJob -ComputerName $vm -Script {        
    		ipmo PSWindowsUpdate; Install-WindowsUpdate -AcceptAll -AutoReboot | Out-File C:\Windows\PSWindowsUpdate.log         
    	} –RunNow -Confirm:$false -Verbose -ErrorAction Ignore}
    

    Hope this helps!


0 additional answers

Sort by: Most helpful

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.