You need to make sure that the VM is in the Stopped (deallocated) state. This eliminates the compute charge. However, you are still charged for the storage (based on the size of managed disks attached to the VM). Other charges might include public IP address associated with the network interface of the VM, its backup, etc.
More at https://learn.microsoft.com/en-us/azure/virtual-machines/states-billing
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin