Skip to content

Commit 19207a1

Browse files
Merge pull request #17654 from ManikaDhiman/md-upgrade-changes
Changes to the registry key section of Upgrade articles
2 parents 31fea7a + 4824b5b commit 19207a1

File tree

4 files changed

+64
-42
lines changed

4 files changed

+64
-42
lines changed

azure-local/update/about-updates-23h2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Solution updates managed by this feature contain new versions of the Azure Stack
8282
This solution is the recommended way to update your Azure Local.
8383

8484
> [!NOTE]
85-
85+
>
8686
> - Azure Local update includes updates for all components, including Azure CLI, PowerShell, and any extensions. Microsoft does not support out of band updates for individual components. The out of band updates could lead to incompatibility with Application Control for Windows.
8787
> - Customer workloads aren't covered by this update solution.
8888

azure-local/upgrade/upgrade-22h2-to-23h2-other-methods.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Upgrade Azure Stack HCI OS, version 22H2 to version 23H2 via other method
33
description: Learn how to upgrade from Azure Stack HCI OS, version 22H2 to version 23H2 using other manual methods on Azure Local.
44
author: alkohli
55
ms.topic: how-to
6-
ms.date: 03/14/2025
6+
ms.date: 04/14/2025
77
ms.author: alkohli
88
ms.reviewer: alkohli
99
ms.service: azure-local
@@ -45,26 +45,34 @@ Before you begin, make sure that:
4545

4646
- You have access to an Azure Local running version 22H2.
4747
- The system is registered in Azure.
48-
- Make sure that all the machines in your Azure Local are healthy and show as **Online**.
48+
- All the machines in your Azure Local are healthy and show as **Online**.
49+
- You shut down virtual machines (VMs). We recommend shutting down VMs before performing the OS upgrade to prevent unexpected outages and damages to databases.
4950
- You have access to the Azure Stack HCI OS, version 23H2 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).
5051
- You have access to a client that can connect to your Azure Local. This client should be running PowerShell 5.0 or later.
5152

5253
## Step 0: Update registry keys
5354

54-
To avoid issues with Resilient File System (ReFS) during OS upgrade, run the following commands on each machine in the system to update registry keys:
55+
To ensure Resilient File System (ReFS) and live migrations function properly during and after OS upgrade, follow these steps on each machine in the system to update registry keys. Reboot each machine for the changes to take effect.
5556

56-
```powershell
57-
# Set RefsEnableMetadataValidation to 0
58-
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsEnableMetadataValidation" -Value 0 -Type DWord -ErrorAction Stop
59-
```
57+
1. Set `RefsEnableMetadataValidation` to `0`:
6058

61-
```powershell
62-
# Create the parameters key if it does not exist. If it does already exist, the command may fail with an error, which is expected.
63-
New-Item -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters
59+
```powershell
60+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsEnableMetadataValidation" -Value 0 -Type DWord -ErrorAction Stop
61+
```
62+
63+
1. Create the parameters key if it doesn't exist. If it already exists, the command may fail with an error, which is expected.
64+
65+
```powershell
66+
New-Item -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters
67+
```
68+
69+
1. Set `SkipSmallLocalAllocations` to `0`:
70+
71+
```powershell
72+
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters -Name SkipSmallLocalAllocations -Value 0 -PropertyType DWord
73+
```
6474

65-
# Set the SkipSmallLocalAllocations value to 0
66-
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters -Name SkipSmallLocalAllocations -Value 0 -PropertyType DWord
67-
```
75+
1. Restart the machine for the changes to take effect. On machine restart, if the `RefsEnableMetadataValidation` key gets overridden and ReFS volumes fail to come online, toggle the key by first setting `RefsEnableMetadataValidation` to `1` and then back to `0` again.
6876

6977
## Step 1: Connect to your system
7078

azure-local/upgrade/upgrade-22h2-to-23h2-powershell.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Upgrade Azure Stack HCI OS, version 22H2 to version 23H2 via PowerShell
33
description: Learn how to use PowerShell to upgrade Azure Stack HCI OS, version 22H2 to version 23H2.
44
author: alkohli
55
ms.topic: how-to
6-
ms.date: 03/14/2025
6+
ms.date: 04/14/2025
77
ms.author: alkohli
88
ms.reviewer: alkohli
99
ms.service: azure-local
@@ -44,32 +44,38 @@ Before you begin, make sure that:
4444

4545
- You have access to an Azure Local running version 22H2.
4646
- The system is registered in Azure.
47-
- Make sure that all the machines in your Azure Local, version 22H2 instance are healthy and show as **Online**.
47+
- All the machines in your Azure Local, version 22H2 instance are healthy and show as **Online**.
48+
- You shut down virtual machines (VMs). We recommend shutting down VMs before performing the OS upgrade to prevent unexpected outages and damages to databases.
4849
- You have access to the Azure Stack HCI, version 23H2 OS software update for Azure Local. 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).
4950
- You have access to a client that can connect to your Azure Local instance. This client should be running PowerShell 5.0 or later.
5051

5152
> [!NOTE]
5253
> The ISO file is only required if the machines do not have access to Windows Update to download the OS feature update. If using this method, after you [Connect to Azure Local, version 22H2](#step-1-connect-to-azure-local), skip to step 6 under [Step 2: Install new OS using PowerShell](#step-2-install-new-os-using-powershell) and perform the remaining steps.
5354
> Use of 3rd party tools to install upgrades is not supported.
5455
55-
Follow these steps to install the solution upgrade:
56-
5756
## Step 0: Update registry keys
5857

59-
To avoid issues with Resilient File System (ReFS) during OS upgrade, run the following commands on each machine in the system to update registry keys:
58+
To ensure Resilient File System (ReFS) and live migrations function properly during and after OS upgrade, follow these steps on each machine in the system to update registry keys. Reboot each machine for the changes to take effect.
6059

61-
```powershell
62-
# Set RefsEnableMetadataValidation to 0
63-
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsEnableMetadataValidation" -Value 0 -Type DWord -ErrorAction Stop
64-
```
60+
1. Set `RefsEnableMetadataValidation` to `0`:
6561

66-
```powershell
67-
# Create the parameters key if it does not exist. If it does already exist, the command may fail with an error, which is expected.
68-
New-Item -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters
62+
```powershell
63+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsEnableMetadataValidation" -Value 0 -Type DWord -ErrorAction Stop
64+
```
6965

70-
# Set the SkipSmallLocalAllocations value to 0
71-
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters -Name SkipSmallLocalAllocations -Value 0 -PropertyType DWord
72-
```
66+
1. Create the parameters key if it doesn't exist. If it already exists, the command may fail with an error, which is expected.
67+
68+
```powershell
69+
New-Item -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters
70+
```
71+
72+
1. Set `SkipSmallLocalAllocations` to `0`:
73+
74+
```powershell
75+
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters -Name SkipSmallLocalAllocations -Value 0 -PropertyType DWord
76+
```
77+
78+
1. Restart the machine for the changes to take effect. On machine restart, if the `RefsEnableMetadataValidation` key gets overridden and ReFS volumes fail to come online, toggle the key by first setting `RefsEnableMetadataValidation` to `1` and then back to `0` again.
7379

7480
## Step 1: Connect to Azure Local
7581

azure-local/upgrade/upgrade-22h2-to-23h2-windows-admin-center.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Upgrade Azure Stack HCI OS, version 22H2 to version 23H2 via Windows Admi
33
description: Learn how to upgrade Azure Stack HCI OS, version 22H2 to version 23H2 using Windows Admin Center.
44
author: alkohli
55
ms.topic: how-to
6-
ms.date: 03/14/2025
6+
ms.date: 04/14/2025
77
ms.author: alkohli
88
ms.reviewer: alkohli
99
ms.service: azure-local
@@ -43,7 +43,8 @@ Before you begin, make sure that:
4343

4444
- You have access to version 23H2 OS software update.
4545
- The system is registered in Azure.
46-
- Make sure that all the machines in your Azure Local are healthy and show as **Online**.
46+
- All the machines in your Azure Local are healthy and show as **Online**.
47+
- You shut down virtual machines (VMs). We recommend shutting down VMs before performing the OS upgrade to prevent unexpected outages and damages to databases.
4748
- You have access to the Azure Stack HCI OS, version 23H2 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).
4849
- You have access to a client that can connect to your Azure Local instance. This client should have Windows Admin Center installed on it. For more information, see [Install Windows Admin Center](/windows-server/manage/windows-admin-center/deploy/install).
4950

@@ -52,20 +53,27 @@ Before you begin, make sure that:
5253
5354
## Step 0: Update registry keys
5455

55-
To avoid issues with Resilient File System (ReFS) during OS upgrade, run the following commands on each machine in the system to update registry keys:
56+
To ensure Resilient File System (ReFS) and live migrations function properly during and after OS upgrade, follow these steps on each machine in the system to update registry keys. Reboot each machine for the changes to take effect.
5657

57-
```powershell
58-
# Set RefsEnableMetadataValidation to 0
59-
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsEnableMetadataValidation" -Value 0 -Type DWord -ErrorAction Stop
60-
```
58+
1. Set `RefsEnableMetadataValidation` to `0`:
6159

62-
```powershell
63-
# Create the parameters key if it does not exist. If it does already exist, the command may fail with an error, which is expected.
64-
New-Item -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters
60+
```powershell
61+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsEnableMetadataValidation" -Value 0 -Type DWord -ErrorAction Stop
62+
```
6563

66-
# Set the SkipSmallLocalAllocations value to 0
67-
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters -Name SkipSmallLocalAllocations -Value 0 -PropertyType DWord
68-
```
64+
1. Create the parameters key if it doesn't exist. If it already exists, the command may fail with an error, which is expected.
65+
66+
```powershell
67+
New-Item -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters
68+
```
69+
70+
1. Set `SkipSmallLocalAllocations` to `0`:
71+
72+
```powershell
73+
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Vid\Parameters -Name SkipSmallLocalAllocations -Value 0 -PropertyType DWord
74+
```
75+
76+
1. Restart the machine for the changes to take effect. On machine restart, if the `RefsEnableMetadataValidation` key gets overridden and ReFS volumes fail to come online, toggle the key by first setting `RefsEnableMetadataValidation` to `1` and then back to `0` again.
6977

7078
## Step 1: Connect to Azure Local via Windows Admin Center
7179

0 commit comments

Comments
 (0)