How to configure Tiny and Cheap Azure SQL?

Siegfried Heintze 1,906 Reputation points
2022-09-29T15:55:22.417+00:00

I would love to know how to configure a tiny and very cheap Azure SQL while I debug my github workflow & bicep scripts. (I've had some azure support incidents open for months). A few Kilobytes of storage is fine... I don't need any kind of redundancy or backup. I execute a few trivial queries every couple of days...

I originally used the portal to configure the cheapest and smallest serverless Azure SQL I could and then downloaded the ARM template and decompiled that into bicep and as you can see I'm using GP_S_Gen5:

resource rbacdemoDatabase 'databases@2021-11-01-preview' = {  
name: '${name}-rbacdemoDatabase'    
sku:{  
  name: 'GP_S_Gen5'  
  tier: 'GeneralPurpose'  
  family: 'Gen5'  
  capacity: 1  
}   

According to the azure pricing calculator (West US 2, single database, LRS, vCore, General Purpose, Serverless, Gen5, locally redundant, MaxCore=1, MinVCores0.5... billed cores=1), this should be very cheap: $0.82/month... That sounds great!

However, I noticed that when I failed to shut down the (idle) Azure SQL server over the weekend a couple of months ago I noticed that my bill increased by approximately $10/day...

How do I modify my bicep code to get the $0.82/month (assuming really minimal activity)...

Azure SQL Database
0 comments No comments
{count} vote

Accepted answer
  1. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2022-09-29T18:59:11.463+00:00

    If something stays connected to your Azure SQL serverless database then the database won't be able to get auto-paused. Please read here to why the database does not auto-pause after the delay period.

    You can also choose Azure SQL Database (DTU-Model) Basic tier that will make you pay only 5 USD a month only.


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.