An Azure service that is used to provision Windows and Linux virtual machines.
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.
- Open Cost Management + Billing → Cost Management → Cost analysis at the subscription scope.
- Select the Resources or Cost by resource view and set the required billing period.
- 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:
- Search for Disks in the Azure portal.
- Check all relevant subscriptions and locate the disk identified in Cost Analysis.
- Confirm that its state is Unattached and that its data is no longer required.
- 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:
- Delete a VM and attached resources
- Cost Analysis built-in views
- Understand Cost Management data
- Find and delete unattached Azure disks
- Azure managed disk FAQ
- Decrease an Azure data disk without losing data
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.