What causes the cost increase on a serverless database that isn't set to auto sleep?

The Guy From Eleven 11 Reputation points
2025-01-08T17:08:57.13+00:00

In order to understand costs, I created an Azure SQL database with auto pause delay of 1-hour and let it run with very low activity for a few days:

config The cost per day showed around £2, which was to be expected.

However, our dev's complained that the start-up time was too slow when they hit the database for the first time after 1-hour, so I disabled auto-pause. The cost per day then increase to around £10.

The database however is configured as serverless which I thought meant that I wouldn't be charged hardly anything if there was no usage. Over the festive holiday, there was zero usage on the database, but it still cost nearly £10 per day. Switching auto-pause back on immediately dropped the cost back down (and brought back the dev's complaints!):

costperday

Can anyone please explain what causes the cost for a serverless database that has no user activity? Under low usage from our dev's the cost hardly rises, so this cost increase must be attributed to the auto-pause function being disabled. What resources are in use please outside user activity that create this cost? I have no jobs running or any other scheduled tasks.

I tried to run log analytics and other tools in the portal, with no data found in any of them.

Azure SQL Database
Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,923 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 33,401 Reputation points MVP
    2025-01-08T17:31:56.5733333+00:00

    Based on my understanding, the price is calculated based on the number of Vcores and the compute time used, which is measured in seconds.

    As the database is not paused, it would consider the Vcore active for the entire duration and charge you accordingly.

    When the database is paused, no compute charges are incurred


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.