You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-stack/hci/upgrade/upgrade-22h2-to-23h2-powershell.md
+20-17Lines changed: 20 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Upgrade Azure Stack HCI to latest version 23H2 via PowerShell
3
3
description: Learn how to use PowerShell to upgrade Azure Stack HCI to latest version 23H2.
4
4
author: alkohli
5
5
ms.topic: how-to
6
-
ms.date: 08/13/2024
6
+
ms.date: 08/19/2024
7
7
ms.author: alkohli
8
8
ms.reviewer: alkohli
9
9
ms.subservice: azure-stack-hci
@@ -20,20 +20,20 @@ There are other methods to upgrade the OS that include using Windows Admin Cente
20
20
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.
21
21
22
22
> [!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.
24
24
25
25
## High-level workflow for the OS upgrade
26
26
27
27
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.
28
28
29
29
To upgrade the OS on your cluster, follow these high-level steps:
30
30
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)
37
37
38
38
## Complete prerequisites
39
39
@@ -45,11 +45,14 @@ Before you begin, make sure that:
45
45
- 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).
46
46
- 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.
47
47
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
+
48
51
## Step 1: Connect to the Azure Stack HCI cluster
49
52
50
53
Follow these steps on your client to connect to one of the servers of your Azure Stack HCI cluster.
51
54
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.
53
56
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:
54
57
55
58
```powershell
@@ -73,6 +76,9 @@ Follow these steps on your client to connect to one of the servers of your Azure
73
76
74
77
To install new OS using PowerShell, follow these steps:
75
78
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
+
76
82
1. Run the following cmdlets on every server in the cluster: <!--ASK-->
77
83
78
84
```PowerShell
@@ -100,7 +106,7 @@ To install new OS using PowerShell, follow these steps:
100
106
101
107
Inspect the output of the above cmdlet and verify that each server is offered the same Feature Update, which should be the case. <!--ASK-->
102
108
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.
104
110
105
111
> [!IMPORTANT]
106
112
> 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:
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.
0 commit comments