Thanks for contacting Microsoft Q&A platform.
Disk resources of a VM in Azure can't be deallocated. If the VM is deallocated only the VM compute costs are affected.
The reason is: The disk resources are required for the VM (OS disk, data disk) and occupy space/resources in Azure even if the VM is stopped/deallocated.
If you want to save costs on the data disk while the VM is stopped, you have a few options:
1. If the current data disk is of high performance or has more capacity than needed, you can resize it to a smaller and cheaper SKU.
2. If you don't need the data disk and its contents, you can take a snapshot of the disk for backup purposes and then delete the data disk.
You can perform all these steps through the Azure Portal or using Azure CLI.
Hope this helps you.