0

What is the minimum time slot for an Azure function wrt calculating costs

The online calculator has a de minimus of 1 second, so is any run at least one?

SteveC
  • 15,808
  • 23
  • 102
  • 173

1 Answers1

3

The minimum time slot is 100ms, so the calculation is performed on the sub-second consumption amount (execution duration).

Unfortunately, the pricing calculator is currently limited to whole seconds, but I have passed this feedback on to the team that owns it so this limitation can be addressed.

Fabio Cavalcante
  • 12,328
  • 3
  • 35
  • 43
  • the formula as well, should be GB-ms – Thiago Custodio Jul 05 '17 at 21:03
  • The unit is correct. The charged unit is GB/s, with consumption calculated on 100 ms increments. – Fabio Cavalcante Jul 05 '17 at 23:24
  • @FabioCavalcante Thanks for the response. Is there someway to get the current GB/s for a function? ... we are looking at a single function that will be called a LOT, like starting at 10 million/day, so the cost could become a big factor. – SteveC Jul 06 '17 at 07:02
  • 1
    This answer may help: https://stackoverflow.com/questions/41128329/how-can-i-programmatically-access-azure-functions-usage-metrics – Fabio Cavalcante Jul 06 '17 at 16:41
  • @FabioCavalcante Got that working ... you don't happen to have an easy way to sum up all the "total" values ?? – SteveC Jul 06 '17 at 16:47