Skip to content

Conversation

@danuw
Copy link

@danuw danuw commented Sep 4, 2023

When deploying todo-csharp-sql-swa-func using azd up, SQL server instance is on general pricing at £200 a month. This should align with the other free/cheap SKUs used for other resources at £3.50 a month)

When deploying todo-csharp-sql-swa-func using `azd up`, SQL server instance is on standard pricing at £200 a month. This should align with the other free/cheap SKUs used for other resources at £3.50 a month)
@RudyCo
Copy link

RudyCo commented Dec 16, 2023

This is important to save costs during development.
In addition, is there a way to set the SKU variables by environment?
For example:

// dev
"sku": {
  "name": "Basic",
  "tier": "Basic",
  "capacity": 5
}
// test
"sku": {
  "name": "Standard",
  "tier": "Standard",
  "capacity": 10
}
// prod
"sku": {
  "name": "GP_Gen5",
  "tier": "GeneralPurpose",
  "family": "Gen5",
  "capacity": 2
}

@danuw
Copy link
Author

danuw commented Dec 17, 2023

You should be able do using the template parameters for that but I am quite surprised the default is not set to the cheapest option... Especially since Static app is set to free. That is quite a steep price and does not align with the rest. I hope this gets reviewed and approved soon so others don't get stung without noticing.

@RudyCo
Copy link

RudyCo commented Dec 17, 2023

You should be able do using the template parameters for that but I am quite surprised the default is not set to the cheapest option... Especially since Static app is set to free. That is quite a steep price and does not align with the rest. I hope this gets reviewed and approved soon so others don't get stung without noticing.

I created PR #10 which allows that.

@vhvb1989
Copy link

Thank you for the change @danuw

This repository is automatically generated and updated from https://github.com/Azure/azure-dev/tree/main/templates/todo/projects/csharp-sql-swa-func

The value you are changing here is defined here: https://github.com/Azure/azure-dev/blob/main/templates/common/infra/bicep/core/database/sqlserver/sqlserver.bicep#L29

@paulyuk
Copy link
Contributor

paulyuk commented Jul 14, 2025

Hi in the last Pr (#12) I converted this to use the AVM module. That uses a development grade SKU:

    "sku": {
        "name": "GP_Gen5",
        "tier": "GeneralPurpose",
        "family": "Gen5",
        "capacity": 2
    },

But I agree this would be better as a serverless SKU more like this (GP_S_Gen5_1):

        "tier": {
           "value": "GeneralPurpose"
       },
       "skuName": {
           "value": "GP_S_Gen5_1"
       },
       "zoneRedundant": {
           "value": false
       },
       "numberOfReplicas": {
           "value": 0
       },
       "minCapacity": {
           "value": "0.5"
       },

I think this is best to do as a new clean PR synced to latest. If you want to do or collab @danuw please let me know. Otherwise I can quickly make it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants