question

DUBOISJrme-8022 avatar image
0 Votes"
DUBOISJrme-8022 asked DUBOISJrme-8022 answered

VM Pricing for CPU usage

Hello everyone,

I'm currently learning Azure fundamentals concepts and I have one question about pricing :

When a create a single Ubuntu VM with a size of B1|S in West Europe, the pricing showed is 0.0051 euro/h (basedo nly on the size choosen if I understand). This is the price for the CPU and RAM usage.
But, in the documentation, it is mentionned that price can change base on usage meters (CPU give as an example). Does it mean that if I just create a VM and don't use it at all, I will pay less than if I use it a lot during the month or am I wrong ?

I feel like this is wrong but I'm not sure.

Thank you

131099-image.png



azure-lab-services-pricing
image.png (37.7 KiB)
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.

LeonLaude avatar image
1 Vote"
LeonLaude answered

Hi @DUBOISJrme-8022,

The CPU usage does not affect the cost that you will pay for the Azure VM, VMs acquire costs for the VM itself, any premium software running on the VM, the storage account\managed disk associated with the VM, and the networking bandwidth transfers from the VM.


If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!


Best regards,
Leon

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.

kobulloc-MSFT avatar image
0 Votes"
kobulloc-MSFT answered kobulloc-MSFT edited

Hello, @DUBOISJrme-8022!

Adding to what @LeonLaude has said, the key here is overall CPU time, not overall CPU use. This is why you'll see pricing listed as an amount per hour of use:

https://azure.microsoft.com/en-us/pricing/details/virtual-machines/windows/

131804-image.png


This is an important concept to understand as you are still billed for a stopped VM that has not been deallocated. So for example if you shut down your VM, the VM will have no CPU use but the hardware is still reserved (allocated) for your use and you will still be charged the hourly rate. Once you deallocate your VM, you will not be charged for your virtual machine resource (but keep an eye on your other resources like storage).

There is a great blog for new Azure users by Sonia Cuff that goes into more detail on this:
https://techcommunity.microsoft.com/t5/itops-talk-blog/am-i-billed-for-an-azure-virtual-machine-if-it-s-shut-down/ba-p/2456669


Another tool that I like to make sure new users are aware of is cost analysis, which you can use to check out costs for resources as you use them to better understand what your charges are. You can view this in your resource group by going to Cost Management > Cost analysis.


131688-image.png


image.png (255.8 KiB)
image.png (334.8 KiB)
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.

DUBOISJrme-8022 avatar image
0 Votes"
DUBOISJrme-8022 answered

Thank you both for your answers, it it now clear for me !

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.