Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Explanation for CPU minutes/ day azure

Will I be charged if I host my application on Azure App Service more than 60 min even if my app does not do any processing?

like image 374
Ramsudharsan Manoharan Avatar asked Nov 08 '17 09:11

Ramsudharsan Manoharan


3 Answers

The answer is NO.

Under App Service -> App Service Plan -> Quotas you can see a detailed breakdown of usage such as an example below for a website I created hours ago but showing only 1.11 minutes of usage:

Quota for a free App Service Plan

I got the answer from AjayKumar-MSFT's answer from this post at a Microsoft forum, then proceeded to test it myself.

like image 135
Anonymous Avatar answered Sep 20 '22 15:09

Anonymous


My answer is NO. if CPU time exceeds no charge will cost rather site will be stopped and it will be working after a certain time next day. Under App Service -> App Service Plan -> Quotas you can get details of CPU time and memory. It is clearly mentioned in Quotas that Applications hosted in a free or shared App Service plan are subject to usage quotas. If any quota is exceeded the site will be stopped until that quota resets. You can remove quotas on your app by scaling up your App Service Plan.

like image 28
user3312998 Avatar answered Sep 19 '22 15:09

user3312998


You could go serverless with Azure Functions, host in a Consumption plan and only pay for execution time. It's a bit more complicated than that but in essence you don't pay for idle code, which i believe is what you're after.

https://azure.microsoft.com/en-us/pricing/details/functions/

Functions are billed based on observed resource consumption measured in gigabyte seconds (GB-s). Observed resource consumption is calculated by multiplying average memory size in gigabytes by the time in milliseconds it takes to execute the function. Memory used by a function is measured by rounding up to the nearest 128 MB, up to the maximum memory size of 1,536 MB, with execution time calculated by rounding up to the nearest 1 ms. The minimum execution time and memory for a single function execution is 100 ms and 128 mb respectively. Functions pricing includes a monthly free grant of 400,000 GB-s.

A very detailed example is found under that URL.

like image 41
evilSnobu Avatar answered Sep 17 '22 15:09

evilSnobu