question

crishi avatar image
0 Votes"
crishi asked SumanthMarigowda-MSFT edited

Avoid or reduce storage cost for lightly used Azure VM

Hi there,

I created a VM on Azure for personal use with minimum disk size HDD. If there is a month when I don't use my VM at all, I would still get billed for the storage assigned to me that contains the OS. Is there a way to avoid or reduce the storage costs if I use my VM sparingly?

Thanks!

azure-virtual-machines
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

deherman-MSFT avatar image
2 Votes"
deherman-MSFT answered Prrudram-MSFT edited

@crishi
I understand you have an infrequently used VM and want to save on the storage cost for the disk when the VM is not being used.

You are already using the lowest cost disk type for your VM. To further save on costs you could keep a snapshot of your disk. Then you could launch a new VM every time it is needed by using that snapshot then stop and delete the VM. You would need to create a new snapshot before deleting the VM. This is a fairly tedious process, if you are doing it frequently. I recommend you review the pricing page for managed disks as well as the pricing calculator to get an idea on your costs.

Hope this helps. Let me know if you have any questions or run into any issues.



Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for the answer. Do I need to delete the VM or deleting the disk only is possible? Then I could just create a disk from the snapshot and attach it to the existing VM. Or is this not possible as the VM cannot be left without an OS disk?
Thanks!

0 Votes 0 ·

You can't delete all disks from a VM, so for this case, you would have to delete the VM and leave the snapshot behind, and from there create a disk when needed.

How large is this disk? If you are on the lowest SKUI would assume that your savings by doing the above process is negligible at best in comparison to the process of re-creating the VM every time. Even if you automate it.

1 Vote 1 ·

Got it. Keeping the smallest size disk seems to be a better option than recreating a VM every time. I was just wondering if there is another way. Thank you @martinta and @deherman-MSFT.

1 Vote 1 ·
Show more comments
VineetKumarGupta-6574 avatar image
0 Votes"
VineetKumarGupta-6574 answered

If VM is off still it will be chargeable . It will take cost for storage so to save the cost delete the server if not in use.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.