Does Azure Worker Roles get charged $$ when they are Sleeping?

前端 未结 3 805
难免孤独
难免孤独 2021-01-06 13:02

I\'m trying to figure out how to (roughly) calculate some expected costs for some worker roles I\'m thinking about creating.

TLDR;

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-06 13:54

    Worker and Web Roles are charged per hour of deployment so even if doing nothing it is being charged out as you have physically commission the vm to be spun up.

    Even if the role is stopped but the deployment hasn't been deleted you will still pay for the instance.

    Also note, it is charged for the full hour so if you deploy and take down 10 minutes later you still pay for entire hour. Or if you deploy at 11:55am and delete at 12:15pm you will pay for 2 hours.

    From http://www.windowsazure.com/en-us/pricing/details/cloud-services/#

    If my deployed instance is in the “stopped” state, do I still get billed?

    Yes, a stopped instance still occupies the compute resource that powers the instance, and therefore you still get billed. In order to stop billing, you need to delete your deployment.

    If my Web or Worker role was deployed for less than an hour, how much do I get billed for?

    Cloud services are billed based on the number of clock hours your service was deployed. Any partial clock hour is billed as a full hour if the deployment was longer than five minutes within one clock hour. If your service was deployed for less than an hour, you may get billed for zero, one or two hours depending on when the deployment happened. For example, if you deploy a small Cloud Services instance at 10:50 AM and delete it at 11:10AM, you will be billed for two hours, one hour for usage during 10:50 AM to 11:00 AM and another hour for usage during 11:00 AM and 11:10 AM.

提交回复
热议问题