Upgrade Azure Stack HCI, version 22H2 operating system to Azure Stack HCI, version 23H2 via other methods
Applies to: Azure Stack HCI, versions 23H2 and 22H2
Important
Azure Stack HCI, version 22H2 will reach end of service by May 2025. After that, you won't receive monthly security and quality updates that provide protection from the latest security threats. To continue receiving updates, we recommend updating your operating system to version 23H2.
If you're currently running an Azure Stack HCI, version 22H2 stretch cluster or managing Azure Stack HCI via System Center - Virtual Machine Manager, review the Supported workloads and configurations table for update timelines.
This article describes how to upgrade the Azure Stack HCI, version 22H2 Operating System (OS) to version 23H2, which is the latest generally available software, using manual methods such as SConfig and performing an offline upgrade.
While you can use these other methods, PowerShell is the recommended method to upgrade the OS. For more information, see Upgrade the Azure Stack HCI, version 22H2 OS to Azure Stack HCI, version 23H2 OS via PowerShell.
Throughout this article, we refer to Azure Stack HCI, version 23H2 as the new version and Azure Stack HCI, version 22H2 as the old version.
High-level workflow for the OS upgrade
The Azure Stack HCI operating system update is available via the Windows Update and via the media that you can download from the Azure portal.
To upgrade the OS on your cluster, follow these high-level steps:
- Complete the prerequisites including downloading the Azure Stack HCI, version 23H2 OS software update.
- Connect to the Azure Stack HCI, version 22H2 cluster.
- Install new OS using one of the other methods:
- Check the status of the updates.
- Perform post-upgrade steps, after the OS is upgraded.
Complete prerequisites
Before you begin, make sure that:
- You have access to an Azure Stack HCI, version 22H2 cluster.
- The cluster should be registered in Azure.
- Make sure that all the nodes in your Azure Stack HCI, version 22H2 cluster are healthy and show as Online.
- You have access to the Azure Stack HCI, version 23H2 OS software update. This update is available via Windows Update or as a downloadable media. The media is an ISO file that you can download from the Azure portal.
- You have access to a client that can connect to your Azure Stack HCI cluster. This client should be running PowerShell 5.0 or later.
Step 1: Connect to the Azure Stack HCI cluster
Follow these steps on your client to connect to one of the servers of your Azure Stack HCI cluster.
Important
To perform a manual upgrade using SConfig, you must log in directly to the cluster nodes. You can use remote PowerShell to control cluster actions, or you can run the commands directly from each node when performing the update.
Run PowerShell as Administrator on the client that you're using to connect to your cluster.
Open a remote PowerShell session to a server on your Azure Stack HCI cluster. Run the following command and provide the credentials of your server when prompted:
$cred = Get-Credential Enter-PSSession -ComputerName "<Computer IP>" -Credential $cred
Here's a sample output:
PS C:\Users\Administrator> $cred = Get-Credential cmdlet Get-Credential at command pipeline position 1 Supply values for the following parameters: Credential PS C:\Users\Administrator> Enter-PSSession -ComputerName "100.100.100.10" -Credential $cred [100.100.100.10]: PS C:\Users\Administrator\Documents>
Step 2: Install new OS using other methods
Depending upon your requirements, you can manually update the OS using SConfig or update all the servers of the cluster at the same time. Each of these methods is discussed in the following sections.
Method 1: Perform a manual OS update of a Failover Cluster using SCONFIG
To do a manual feature update of a failover cluster, use the SConfig tool and Failover Clustering PowerShell cmdlets. For more information about SConfig, see Configure a Server Core installation of Windows Server and Azure Stack HCI with the Server Configuration tool (SConfig).
For each node in the cluster, run these commands on the target node:
Suspend-ClusterNode -Node <Node Name> -Drain
Check suspend using
Get-ClusterGroup
. Nothing should be running on the target node.Run the SCONFIG option 6.3 on the target node.
After the target node has rebooted, wait for the storage repair jobs to complete by running
Get-Storage-Job
until there are no storage jobs or all storage jobs are completed.
Resume-ClusterNode -Node <Node Name> -Failback
When all the nodes are upgraded, you can perform the post-installation steps.
Method 2: Perform a fast, offline OS update of all servers in a cluster
This method allows you to take all the servers in a cluster down at once and update the OS on all of them at the same time. This saves time during the update process, but the tradeoff is downtime for the hosted resources.
If there's a critical security update that you need to apply quickly or you need to ensure that updates complete within your maintenance window, this method could be for you. This process brings down the Azure Stack HCI cluster, updates the servers, and brings it all up again.
Plan your maintenance window.
Take the virtual disks offline.
Stop the cluster to take the storage pool offline. Run the
Stop-Cluster
cmdlet or use Windows Admin Center to stop the cluster.Set the cluster service to Disabled by running the PowerShell command below on each server. This prevents the cluster service from starting up while being updated.
Set-Service -Name clussvc -StartupType Disabled
- Apply the Windows Server Cumulative Update and any required Servicing Stack Updates to all servers. You can update all servers at the same time: there's no need to wait because the cluster is down.
Restart the servers and ensure everything looks good.
Set the cluster service back to Automatic by running the PowerShell command below on each server.
Set-Service -Name clussvc -StartupType Automatic
Start the cluster. Run the
Start-Cluster
cmdlet or use Windows Admin Center.Give it a few minutes. Make sure the storage pool is healthy. Run
Get-StorageJob
to ensure all jobs complete successfully.Bring the virtual disks back online.
Monitor the status of the virtual disks by running the
Get-Volume
andGet-VirtualDisk
cmdlets.
You're now ready to perform the post-upgrade steps for your cluster.