Windows Server: How to Replace a Drive in Microsoft Azure Stack HCI using PowerShell or Windows Admin Center
Summary: This article shows the procedure for replacing a failed drive in a Microsoft Azure Stack HCI cluster using Windows PowerShell or Windows Admin Center.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
Replacing a drive in Azure Stack HCI is a straightforward procedure that can be accomplished using PowerShell or Windows Admin Center (WAC).
Replace a drive using Windows PowerShell
- On a node of the Azure Stack HCI cluster, launch an elevated PowerShell prompt.
- To enumerate all hard drives that are not in a healthy state, run
Get-PhysicalDisk | Where-Object {$_.HealthStatus -ne "Healthy"}. - To retire all disks identified by the previous command, run
Get-PhysicalDisk | Where-Object {$_.HealthStatus -ne "Healthy"} | Set-PhysicalDisk -Usage Retired. - Run
Get-PhysicalDiskto confirm that the disks specified in the previous step now show Retired in the Usage column. - Run
Get-StorageJobto check whether storage jobs are still in progress. Allow them to finish before proceeding. (This may take a while.) - Physically remove and replace the failed drive.
- Run
Get-PhysicalDiskto confirm the presence of the replacement disk. It should automatically be added to the storage pool, though this may take a short while. - Once the disk has been added to the pool, the
Get-StorageJobcommand can be used to monitor running storage jobs until they have completed.
Replace a drive using Windows Admin Center (WAC)
- Select the cluster in WAC to open the Cluster Manager feature.
- Click Drives in the left pane, then click Inventory to enumerate the drives in the cluster.
- Select the drive to be replaced and click Retire in the bar above the inventory list. Click Retire in the popup window to confirm. The drive's Status column will now show that it has been retired.
- Physically remove and replace the drive.
- Refresh the drive inventory in WAC. The replacement drive should now be listed, though it may not yet be in the storage pool. This happens automatically, but it may take a short while.
- Continue refreshing the drive inventory list until the old drive has disappeared from the list and the new drive has been added to the storage pool.
Affected Products
Microsoft Windows Server 2019, Microsoft Windows Server 2022Article Properties
Article Number: 000193620
Article Type: How To
Last Modified: 22 May 2025
Version: 8
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.