An Azure VM is charged if the VM is running. If the Azure VM is deallocated you are not charged for the compute costs.
But every VM is associated to at least one disk (OS Disk). The disk storage is charged "24hours/7days" because the storage is allocated all the time, even if the VM itself is not running.
Hope this helps.
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten