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: articles/virtual-machines/disks-find-unattached-portal.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@ description: How to find unattached Azure managed and unmanaged (VHDs/page blobs
4
4
author: roygara
5
5
ms.service: azure-disk-storage
6
6
ms.topic: how-to
7
-
ms.date: 04/25/2022
7
+
ms.date: 04/18/2024
8
8
ms.author: rogarana
9
9
---
10
10
11
11
# Find and delete unattached Azure managed and unmanaged disks - Azure portal
12
12
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.
14
14
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.
16
16
17
17
## Managed disks: Find and delete unattached disks
18
18
@@ -21,12 +21,16 @@ If you have unattached managed disks and no longer need the data on them, the fo
21
21
1. Sign in to the [Azure portal](https://portal.azure.com/).
22
22
1. Search for and select **Disks**.
23
23
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.
25
25
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.
28
27
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.":::
30
34
31
35
## Unmanaged disks: Find and delete unattached disks
32
36
@@ -37,15 +41,15 @@ If you have unmanaged disks that aren't attached to a VM, no longer need the dat
37
41
1. Sign in to the [Azure portal](https://portal.azure.com/).
38
42
1. Search for and select **Disks (Classic)**.
39
43
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.
41
45
42
46
:::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.":::
43
47
44
48
1. Select the unattached disk you'd like to delete, this brings up the individual disk's blade.
45
49
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 **-**.
47
51
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.":::
49
53
50
54
1. Select **Delete**.
51
55
@@ -55,4 +59,4 @@ If you have unmanaged disks that aren't attached to a VM, no longer need the dat
55
59
56
60
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.
57
61
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).
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.
17
17
18
18
> [!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.
20
20
21
21
22
22
## Managed disks: Find and delete unattached disks
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.
17
17
18
18
> [!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.
20
20
21
21
## Managed disks: Find and delete unattached disks
0 commit comments