question

erossini avatar image
0 Votes"
erossini asked AndreasBaumgarten commented

Cost to manage pick of compute with a virtual machine

I'm working for a research company. To elaborate our data, we are using R. For that, I deploy the R application via Docker container to a real server in our infrastructure and I run he application the Docker container in order to have the result.

Sometimes, we have a very big data and the calculation takes hours. This could happen once a month. For that, I'm thinking to use Azure. I want to create a powerful Ubuntu virtual machine when I run when I need my applications.

I have few questions though:

  • when a virtual machine is created, I pay based on the time the machine is up?

  • if the machine is off, do I pay?

  • do you have any advice how to implement that properly?

Thank you in advance,
Enrico



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.

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered AndreasBaumgarten commented

Hi @erossini

when a virtual machine is created, I pay based on the time the machine is up?


Basically you are right -> Compute costs only if the VM is up and running.
But ... there is alway a "but"
You have to pay for the disk(s) storage all the time, no matter the machine is running or is deallocated.
This is because the disk(s) is/are consuming storage capacity as long as the disk(s) exists.

if the machine is off, do I pay?

See above -> costs of disk(s) (storage)

do you have any advice how to implement that properly?

Define a proper strategy for power-on and power-off the VM -> Automated process so no one will forget to shutdown the VM
The VM must be stopped/deallocated in Azure so prevent compute costs. A "in-guest shutdown" does not deallocate the VM in Azure


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

Regards
Andreas Baumgarten

· 2
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! What do you mean by "deallocated"? If the machine is off, I don't pay for it and for that it is enough to shut down it.

0 Votes 0 ·

Deallocated is the status of the VM if you stop the VM in the Azure Portal.

If you use "Start" -> "Power" -> "Shutdown" in the VM OS the machine will shutdown but the VM is not deallocated in Azure.


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

Regards
Andreas Baumgarten


0 Votes 0 ·