Skip to content

Commit ad97782

Browse files
Merge pull request #271812 from roygara/portalParam
Staging portal work
2 parents 835e37d + 853eaf1 commit ad97782

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

articles/virtual-machines/disks-find-unattached-portal.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ description: How to find unattached Azure managed and unmanaged (VHDs/page blobs
44
author: roygara
55
ms.service: azure-disk-storage
66
ms.topic: how-to
7-
ms.date: 04/25/2022
7+
ms.date: 04/18/2024
88
ms.author: rogarana
99
---
1010

1111
# Find and delete unattached Azure managed and unmanaged disks - Azure portal
1212

13-
**Applies to:** :heavy_check_mark: Linux VMs :heavy_check_mark: Windows VMs :heavy_check_mark: Flexible scale sets :heavy_check_mark: Uniform scale sets
13+
**Applies to:** :heavy_check_mark: Linux VMs :heavy_check_mark: Windows VMs :heavy_check_mark: Flexible scale sets :heavy_check_mark: Uniform scale sets.
1414

15-
When you delete a virtual machine (VM) in Azure, by default, any disks that are attached to the VM aren't deleted. This helps to prevent data loss due to the unintentional deletion of VMs. After a VM is deleted, you will continue to pay for unattached disks. This article shows you how to find and delete any unattached disks using the Azure portal, and reduce unnecessary costs. Deletions are permanent, you will not be able to recover data once you delete a disk.
15+
When you delete a virtual machine (VM) in Azure, by default, any disks that are attached to the VM aren't deleted. This helps prevent data loss from unintentional deletion of VMs. After a VM is deleted, you'll continue to pay for unattached disks. This article shows you how to find and delete any unattached disks using the Azure portal, and reduce unnecessary costs. Deletions are permanent, you won't be able to recover data once you delete a disk.
1616

1717
## Managed disks: Find and delete unattached disks
1818

@@ -21,12 +21,16 @@ If you have unattached managed disks and no longer need the data on them, the fo
2121
1. Sign in to the [Azure portal](https://portal.azure.com/).
2222
1. Search for and select **Disks**.
2323

24-
On the **Disks** blade, you are presented with a list of all your disks.
24+
On the **Disks** page, you're presented with a list of all your disks.
2525

26-
1. Select the disk you'd like to delete, this brings you to the individual disk's blade.
27-
1. On the individual disk's blade, confirm the disk state is unattached, then select **Delete**.
26+
1. Select the disk you'd like to delete, this brings you to the individual disk's page.
2827

29-
:::image type="content" source="media/disks-find-unattached-portal/delete-managed-disk-unattached.png" alt-text="Screenshot of an individual managed disks blade. This blade will show unattached in the disk state if it is unattached. You can delete this disk if you do not need to preserve its data any longer":::
28+
> [!NOTE]
29+
> The disk's page also displays the **LastOwnershipUpdateTime** property. This property represents when the disk’s state was last updated. For an unattached disk, this shows the time when the disk was unattached. This property is blank for newly created disks, until their state changes.
30+
31+
1. On the individual disk's page, confirm the disk state is unattached, then select **Delete**.
32+
33+
:::image type="content" source="media/disks-find-unattached-portal/delete-managed-disk-unattached.png" alt-text="Screenshot of an individual managed disks blade. This page shows unattached in the disk state if it is unattached. You can delete this disk if you don't need to preserve its data any longer.":::
3034

3135
## Unmanaged disks: Find and delete unattached disks
3236

@@ -37,15 +41,15 @@ If you have unmanaged disks that aren't attached to a VM, no longer need the dat
3741
1. Sign in to the [Azure portal](https://portal.azure.com/).
3842
1. Search for and select **Disks (Classic)**.
3943

40-
You are presented with a list of all your unmanaged disks. Any disk that has "**-**" in the **Attached to** column is an unattached disk.
44+
You're presented with a list of all your unmanaged disks. Any disk that has "**-**" in the **Attached to** column is an unattached disk.
4145

4246
:::image type="content" source="media/disks-find-unattached-portal/unmanaged-disk-unattached-attached-to.png" alt-text="Screenshot of the unmanaged disks blade. Disks in this blade that have - in the attached to column are unattached.":::
4347

4448
1. Select the unattached disk you'd like to delete, this brings up the individual disk's blade.
4549

46-
1. On that individual disk's blade, you can confirm it is unattached, since **Attached to** will still be **-**.
50+
1. On that individual disk's blade, you can confirm it's unattached, since **Attached to** will still be **-**.
4751

48-
:::image type="content" source="media/disks-find-unattached-portal/unmanaged-disk-unattached-select-blade.png" alt-text="Screenshot of an individual unmanaged disk blade. It will have - as the attached to value if it is unattached. If you no longer need this disks data, you can delete it.":::
52+
:::image type="content" source="media/disks-find-unattached-portal/unmanaged-disk-unattached-select-blade.png" alt-text="Screenshot of an individual unmanaged disk blade. It has - as the attached to value if it's unattached. If you no longer need this disks data, you can delete it.":::
4953

5054
1. Select **Delete**.
5155

@@ -55,4 +59,4 @@ If you have unmanaged disks that aren't attached to a VM, no longer need the dat
5559

5660
If you'd like an automated way of finding and deleting unattached storage accounts, see our [CLI](linux/find-unattached-disks.md) or [PowerShell](windows/find-unattached-disks.md) articles.
5761

58-
For more information, see [Delete a storage account](../storage/common/storage-account-create.md#delete-a-storage-account) and [Identify Orphaned Disks Using PowerShell](/archive/blogs/ukplatforms/azure-cost-optimisation-series-identify-orphaned-disks-using-powershell)
62+
For more information, see [Delete a storage account](../storage/common/storage-account-create.md#delete-a-storage-account) and [Identify Orphaned Disks Using PowerShell](/archive/blogs/ukplatforms/azure-cost-optimisation-series-identify-orphaned-disks-using-powershell).

articles/virtual-machines/linux/find-unattached-disks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.custom: devx-track-azurecli, linux-related-content
1616
When you delete a virtual machine (VM) in Azure, by default, any disks that are attached to the VM aren't deleted. This feature helps to prevent data loss due to the unintentional deletion of VMs. After a VM is deleted, you will continue to pay for unattached disks. This article shows you how to find and delete any unattached disks and reduce unnecessary costs.
1717

1818
> [!NOTE]
19-
> You can use the [az disk show](/cli/azure/disk) command to get the LastOwnershipUpdateTime for any disk. This property represents when the disk’s state was last updated. For an unattached disk, this will show the time when the disk was unattached. Note that this property will be blank for a new disk until its disk state is changed.
19+
> You can use the [az disk show](/cli/azure/disk) command to get the LastOwnershipUpdateTime for any disk. This property represents when the disk’s state was last updated. For an unattached disk, this shows the time when the disk was unattached. This property is blank for newly created disks, until their state changes.
2020
2121

2222
## Managed disks: Find and delete unattached disks
31.8 KB
Loading

articles/virtual-machines/windows/find-unattached-disks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.custom: devx-track-azurepowershell
1616
When you delete a virtual machine (VM) in Azure, by default, any disks that are attached to the VM aren't deleted. This feature helps to prevent data loss due to the unintentional deletion of VMs. After a VM is deleted, you will continue to pay for unattached disks. This article shows you how to find and delete any unattached disks and reduce unnecessary costs.
1717

1818
> [!NOTE]
19-
> You can use the [Get-AzureDisk](/powershell/module/servicemanagement/azure/get-azuredisk?view=azuresmps-4.0.0) command to get the `LastOwnershipUpdateTime` for any disk. This property represents when the disk’s state was last updated. For an unattached disk, this will show the time when the disk was unattached. Note that this property will be blank for a new disk until its disk state is changed.
19+
> You can use the [Get-AzureDisk](/powershell/module/servicemanagement/azure/get-azuredisk?view=azuresmps-4.0.0) command to get the `LastOwnershipUpdateTime` for any disk. This property represents when the disk’s state was last updated. For an unattached disk, this shows the time when the disk was unattached. This property is blank for newly created disks, until their state changes.
2020
2121
## Managed disks: Find and delete unattached disks
2222

0 commit comments

Comments
 (0)