How to delete a VM and attached resources

Alex Sabour 0 Reputation points
2026-11-11T16:14:08.6533333+00:00

Hello, I recently changed my VM to a faster version and want to delete the old VM. I followed the steps on this webpage but am unable to find and delete the old VM. If anyone could help guide me to deleting the old VM because I am being charged monthly for it! It does not appear anywhere in my portal (only on the bills) so I do not know how to delete it.

Additionally I would like to reduce the size of my SSD on Azure to reduce costs, but it won't let me in order to preserve data. How do I do this?

Thank you for the help!

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


1 answer

Sort by: Oldest
  1. Allan Solomon Mejia 10,800 Reputation points
    2026-11-11T22:56:11.4533333+00:00

    Hello @Alex Sabour

    Deleting an Azure VM doesn’t necessarily delete its disks, NICs, or public IP address. Each attached resource has a Delete or Detach option; detached disks remain in Azure and continue generating charges.

    The most likely remaining charge is an unattached managed disk, but check the billing data before deleting anything.

    1. Open Cost Management + Billing → Cost Management → Cost analysis at the subscription scope.
    2. Select the Resources or Cost by resource view and set the required billing period.
    3. Identify the exact resource name, resource type, resource group, and resource ID generating the charge. The Resources view can include deleted resources, while Cost Management data can also contain historical usage for resources that no longer exist. Billing data can therefore continue appearing after deletion until usage processing is complete.

    If the billed resource is a managed disk:

    1. Search for Disks in the Azure portal.
    2. Check all relevant subscriptions and locate the disk identified in Cost Analysis.
    3. Confirm that its state is Unattached and that its data is no longer required.
    4. Take a snapshot first if the data might be needed, then delete the disk.

    Deleting a managed disk is permanent, and unattached disks continue to incur charges.

    Regarding the SSD: Azure doesn’t support shrinking a managed disk directly.

    For a data disk, Microsoft’s supported method is to create a smaller disk, copy the data to it, validate the copy, attach the new disk, and then delete the original disk.

    That procedure explicitly doesn’t apply to an OS disk. An OS disk can’t be reduced in place; the practical supported approach is to create a new VM or OS disk at the required size and migrate the application and data.

    Before deleting anything, use the resource ID from Cost Analysis to confirm it belongs to the old VM, not the replacement VM.

    References:


    Help make this community better for everyone: If this answer helped or resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution. Thank you.

    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.