So I have a bit of an issue with setting up a new Azure SQL serverless database.

I keep getting high CPU billed usage which is costing a fortune, I have resorted to even creating a new DB with a new name in a new region, with a new username and password as well as locking down the firewall. Backups are disabled as well as any auto features. But as soon as the deployment finishes, I start getting billed.

I have run sql profiler and nothing is even touching the DB.
Anyone had this issue before, or know where to start looking?
The documentation is fairly clear on the conditions required for autopause to start:
Autopausing is triggered if all of the following conditions are true for the duration of the autopause delay:
Number sessions = 0 CPU = 0 for user workload running in the user pool
It also lists some conditions which might prevent autopause - you should double-check you do not have any of the following enabled:
If you find your database is still not pausing, there are a number of ways to track down active connections:

Click on query ids (in the red box in my picture) to focus on individual queries.
sp_who2 or sp_whoIsActive (which is now hosted on github) to list active sessions. If you find active sessions you can either disconnect them (eg active SQL Server Management Studio (SSMS) connections, or Azure Data Studio (ADS)) or kill them, as long as you know what you are doing and understand the implications of the kill command.I would suggest you attempt to diagnose active connections using method 1 or 2 above and report back.
Note that the "App CPU billed" metric is not quoted in US dollars. It's quoted in vCore seconds.
So in your case, if you're being billed roughly 40 units per minute, at $0.000145 USD per COMPUTE COST/VCORE/SECOND (current rate that I see on the Compute + Storage screen in the portal), then you're being charged $0.0058 per minute, or about $250/mo.

Not sure what your budget is or if you had any confusion around this metric, but it gave me a mild heart attack when I first saw my graph earlier today and mistakenly thought it was quoted in USD.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With