There is also a deallocated VM, VM-MON-01. Even when a VM is deallocated, its attached disks and networking can still be billed.

Afram Vannessa 0 Reputation points
2026-10-23T18:32:09.7533333+00:00

Please explain how deallocated a disk that is not in use anymore without causing problems

the configuration/service

Azure Disk Storage
Azure Disk Storage

A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.

0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-10-23T18:32:51.65+00:00

    Detach and delete only a verified unused data disk from VM-MON-01; do not delete its OS disk, because the VM requires that disk to retain its operating system and installed configuration.

    Safest portal procedure

    1. Identify the disk type
      • Azure portal → Virtual machines → VM-MON-01 → Settings → Disks.
      • Under OS disk, record the disk name and leave it attached.
      • Under Data disks, identify the disk that is no longer required.
    2. Verify the data is not needed
      • Confirm that the disk does not contain application data, databases, logs, page files, or mounted application paths.
      • If there is any uncertainty, start the VM and verify the disk’s contents and application dependencies from Windows or Linux before removing it.
      • For recoverability, create a snapshot or configure Azure Disk Backup before deletion. Azure Disk Backup supports both OS and data disks, including disks that are not currently attached.^1^
    3. Detach the unused data disk
      • Return to VM-MON-01 → Settings → Disks.
      • On the data disk’s row, select the Detach button at the far right.
      • Select Save.
      • Detaching removes the disk from the VM configuration but does not delete it or stop its storage charges.^2^
    4. Delete the detached disk
      • In the portal, search for and select Disks.
      • Open the disk that was just detached.
      • Confirm Disk state is Unattached and verify its name, resource group, size, and subscription.
      • Select Delete and confirm.
      Disk deletion is permanent and its data cannot be recovered.^3^
    5. Validate VM-MON-01
      • Start the VM.
      • Confirm it boots normally and that its applications and services operate correctly.
      • The VM’s OS disk, NIC, private IP configuration, and other networking resources remain unchanged when only a data disk is detached and deleted.

    If the disk is the OS disk

    An OS disk cannot be detached from an existing VM in the same way as a data disk. To eliminate its storage charge, the VM must no longer be needed and must be deleted along with the OS disk. Azure supports configuring attached resources with either:

    • Delete — permanently remove the resource when the VM is deleted.
    • Detach — preserve the resource for reuse, but it continues to incur applicable charges.^4^

    Before deleting VM-MON-01, review the deletion confirmation carefully and select only the resources that are genuinely no longer needed. Deleting the VM may not automatically delete every disk or networking resource, and retained OS or data disks continue to accrue costs.^5^

    Optional PowerShell method for a data disk

    Replace the example values with the actual resource group, VM, and disk names:

    $vm = Get-AzVM `
      -ResourceGroupName "myResourceGroup" `
      -Name "VM-MON-01"
    
    Remove-AzVMDataDisk `
      -VM $vm `
      -Name "unusedDataDisk"
    
    Update-AzVM `
      -ResourceGroupName "myResourceGroup" `
      -VM $vm
    

    This detaches the disk only. After confirming it is Unattached, delete its disk resource separately to stop its storage charge.^2^


    References

    1. Backup and disaster recovery for Azure managed disks
    2. How to detach a data disk from a Windows virtual machine
    3. Find and delete unattached Azure managed and unmanaged disks - Azure portal
    4. Delete a VM and attached resources
    5. Plan to manage costs for virtual machines
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Manasa Akula 775 Reputation points Microsoft External Staff Moderator
    2026-10-27T20:30:14.41+00:00

    Hello @Afram Vannessa

    Thank you for contacting Microsoft Support.

    My name is Manasa, and I am the Support Engineer assigned to Service Request,Deallocating VM-MON-01 stops compute charges, but its managed disks remain provisioned and continue to incur storage charges.

    Azure disks cannot be deallocated. If an attached data disk is no longer required, please verify that no application is using it, take a snapshot if necessary, detach it from VM-MON-01, and then delete the detached disk from the Disks page. Detaching alone does not stop billing; the disk must be deleted. Please do not delete the OS disk if the VM may be used again.

    If the entire VM is no longer required, you may delete the VM together with its selected disks, NIC, and public IP after confirming that there are no dependencies.

    Microsoft documentation:

    Thanks,

    Manasa.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.