Skip to content

Commit b28f8ff

Browse files
Merge pull request #15686 from alkohli/thupg
Changes from public PR from Trent Helm 3272
2 parents 8fef399 + d1ecb6a commit b28f8ff

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

azure-stack/hci/upgrade/upgrade-22h2-to-23h2-powershell.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Upgrade Azure Stack HCI to latest version 23H2 via PowerShell
33
description: Learn how to use PowerShell to upgrade Azure Stack HCI to latest version 23H2.
44
author: alkohli
55
ms.topic: how-to
6-
ms.date: 08/13/2024
6+
ms.date: 08/19/2024
77
ms.author: alkohli
88
ms.reviewer: alkohli
99
ms.subservice: azure-stack-hci
@@ -20,20 +20,20 @@ There are other methods to upgrade the OS that include using Windows Admin Cente
2020
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.
2121

2222
> [!IMPORTANT]
23-
> To keep your Azure Stack HCI service in a supported state, you have up to six months to install this new OS version. The update is applicable to all the Azure Stack HCI, version 22H2 clusters. We strongly recommend that you install this version as soon as it becomes available.
23+
> To keep your Azure Stack HCI service in a supported state, you have up to six months to install this new OS version. The update is applicable to all Azure Stack HCI, version 22H2 clusters. We strongly recommend that you install this version as soon as it becomes available.
2424
2525
## High-level workflow for the OS upgrade
2626

2727
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.
2828

2929
To upgrade the OS on your cluster, follow these high-level steps:
3030

31-
1. Complete the prerequisites including downloading the Azure Stack HCI, version 23H2 OS software update.
32-
1. Connect to the Azure Stack HCI, version 22H2 cluster.
33-
1. Check for the available updates using PowerShell.
34-
1. Install new OS using PowerShell.
35-
1. Check the status of the updates.
36-
1. After the OS is upgraded, perform post-OS upgrade steps.
31+
1. [Complete the prerequisites.](#complete-prerequisites)
32+
1. [Connect to the Azure Stack HCI, version 22H2 cluster.](#step-1-connect-to-the-azure-stack-hci-cluster)
33+
1. [Check for the available updates using PowerShell.](#step-1-connect-to-the-azure-stack-hci-cluster)
34+
1. [Install new OS using PowerShell.](#step-2-install-new-os-using-powershell)
35+
1. [Check the status of the updates.](#step-3-check-the-status-of-an-update)
36+
1. [After the OS is upgraded, perform post-OS upgrade steps.](#next-steps)
3737

3838
## Complete prerequisites
3939

@@ -45,11 +45,14 @@ Before you begin, make sure that:
4545
- 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](https://portal.azure.com/#view/Microsoft_Azure_HybridCompute/AzureArcCenterBlade/~/hciGetStarted).
4646
- 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.
4747

48+
> [!NOTE]
49+
> The ISO file is only required if the cluster nodes do not have access to Windows Update to download the OS feature update. If using this method, after you [Connect to the Azure Stack HCI, version 22H2 cluster](#step-1-connect-to-the-azure-stack-hci-cluster), skip to step 6 under [Step 2: Install new OS using PowerShell](#step-2-install-new-os-using-powershell) and perform the remaining steps.
50+
4851
## Step 1: Connect to the Azure Stack HCI cluster
4952

5053
Follow these steps on your client to connect to one of the servers of your Azure Stack HCI cluster.
5154

52-
1. Run PowerShell as administrator on the client that you're using to connect to your cluster.
55+
1. Run PowerShell as Administrator on the client that you're using to connect to your cluster.
5356
1. 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:
5457

5558
```powershell
@@ -73,6 +76,9 @@ Follow these steps on your client to connect to one of the servers of your Azure
7376

7477
To install new OS using PowerShell, follow these steps:
7578

79+
> [!NOTE]
80+
> The following steps require the Cluster-Aware Updating (CAU) role to be installed and enabled on the cluster. For information on how to install and enable this feature on your Azure Stack HCI cluster, see [Cluster-Aware Updating overview](/windows-server/failover-clustering/cluster-aware-updating#installing-cluster-aware-updating).
81+
7682
1. Run the following cmdlets on every server in the cluster: <!--ASK-->
7783

7884
```PowerShell
@@ -100,7 +106,7 @@ To install new OS using PowerShell, follow these steps:
100106

101107
Inspect the output of the above cmdlet and verify that each server is offered the same Feature Update, which should be the case. <!--ASK-->
102108

103-
1. You need a separate server or VM outside the cluster to run the `Invoke-CauRun` cmdlet from.
109+
1. You need a separate server or VM outside the cluster to run the `Invoke-CauRun` cmdlet from. A separate server ensures that orchestration isn't interrupted when the nodes are rebooted.
104110

105111
> [!IMPORTANT]
106112
> The system on which you run `Invoke-CauRun` must be running Windows Server 2022. <!--ASK-->
@@ -109,9 +115,7 @@ To install new OS using PowerShell, follow these steps:
109115
Invoke-CauRun -ClusterName <ClusterName> -CauPluginName "Microsoft.RollingUpgradePlugin" -CauPluginArguments @{'WuConnected'='true';} -Verbose -EnableFirewallRules -Force
110116
```
111117

112-
1. If the cluster isn't connected to Windows Update and the Azure Stack HCI install media is available on a local share, CAU can also be used to upgrade the cluster.
113-
114-
When the cluster nodes aren't connected to Windows Update after installing the latest updates and the setup media was copied to a share that is accessible to the cluster nodes:
118+
1. If the cluster isn't connected to Windows Update and the Azure Stack HCI install media is available on a local share, CAU can also be used to upgrade the cluster. Be sure to update the `'PathToSetupMedia'` parameter with the share path to the ISO image.
115119

116120
```powershell
117121
Invoke-CauRun –ClusterName <ClusterName> -CauPluginName Microsoft.RollingUpgradePlugin -CauPluginArguments @{ 'WuConnected'='false';'PathToSetupMedia'='\some\path\'; 'UpdateClusterFunctionalLevel'='true'; } -Force
@@ -132,7 +136,7 @@ Get-CauRun -ClusterName <ClusterName>
132136
Here's a sample output: <!--ASK-->
133137

134138
```output
135-
RunId : 834dd11e-584b-41f2-8d22-4c9c0471dbad
139+
RunId : <Run ID>
136140
RunStartTime : 10/13/2024 1:35:39 PM
137141
CurrentOrchestrator : NODE1
138142
NodeStatusNotifications : {
@@ -150,9 +154,8 @@ InstallResults : Microsoft.ClusterAwareUpdating.UpdateInstallResult[]
150154
}
151155
```
152156

153-
154-
You're now ready to perform the post-upgrade steps for your cluster.
157+
You're now ready to perform the post-OS upgrade steps for your cluster.
155158

156159
## Next steps
157160

158-
- [Learn how to perform the post-upgrade steps for your Azure Stack HCI cluster.](./post-upgrade-steps.md)
161+
- [Learn how to perform the post-OS upgrade steps for your Azure Stack HCI cluster.](./post-upgrade-steps.md)

0 commit comments

Comments
 (0)