Why is our Azure SQL database more expensive than the estimate when creating it?

Shawn Schellinger 20 Reputation points
2024-01-25T21:56:17.6566667+00:00

We are just starting out experimenting with Azure development and we are seeing our costs climbing unexpectedly once we created the cheapest Azure SQL Server database we could create. Initially, we selected a "Development" level database with "General Purpose Serverless" as the pricing tier. The estimate show to us was around $5/month. However, without anything in the database, and no high activity, the cost per day (not per month) was around $20. We then changed our database to Hyperscale (promoted as a cheaper level) and it was estimated to be pennies per month. While it then became cheaper than before, it is still $6.50 per day. I know we aren't talking hundreds or thousands of dollars, it ends up being more than we allocated for this effort. Is there something we are missing? Thank you for your input.

Shawn

Azure SQL Database
{count} votes

Accepted answer
  1. TP 124.7K Reputation points Volunteer Moderator
    2024-01-25T22:11:42.67+00:00

    Hi Shawn,

    When you are on Serverless, you are charged compute for the time the database isn't paused. The database will auto-pause (unless you disabled or changed it) after 1 hour of inactivity by default. If there is any activity, the database resumes for minimum of 1 hour (again, assuming default 1 hour auto-pause).

    Considering what I wrote above, was the database active (not paused) during the time when you noticed the higher than expected charges? If yes, then that is likely explanation for the charges. Serverless tier is good option if you only plan to use the database for relatively small amount of time during the month. At a certain amount of usage it makes sense to switch over to a provisioned tier instead.

    In addition to compute time (vCore seconds), you are charged for storage. Storage costs accrue regardless of if the database is running or not. Below article explains in more detail how Serverless tier charges are calculated:

    https://learn.microsoft.com/en-us/azure/azure-sql/database/serverless-tier-overview

    If something is unclear and you would like me to walk through a sample calculation add a comment with the details and I will assist.

    Since you are just getting started, have you considered using Free tier?

    https://learn.microsoft.com/en-us/azure/azure-sql/database/free-offer?view=azuresql

    Please click Accept Answer and upvote if the above is useful.

    Thanks.

    -TP


0 additional answers

Sort by: Most helpful

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.