Pay as you go calculate

Ahmed Fathi 1 Reputation point
2022-09-11T08:37:48.163+00:00

I put my telegram bot on the vm and set my price plan "pay as you go" for 20 hours and I use the bot for an hour a day to make some tasks, but i did not close it ,Is my account counted for the whole day or for the period in which I ran the bot only, knowing that I did not close the vm and leave it running all the time to ensure access to my bot at any time

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
3,642 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 124K Reputation points MVP Volunteer Moderator
    2022-09-11T09:45:29.74+00:00

    Hi @Ahmed Fathi ,

    you will be charged for the VM compute as long as the VM is in the Running state in Azure. If the VM is in the the state Stopped (deallocated) you won't be charged for VM compute.
    Please be aware you will always be charged for the storage (disk) costs no matter if the VM is running or deallocated.

    ----------

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

    Regards
    Andreas Baumgarten

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.