Skip to content

[Breaking change]: Change the default SKU used for creating a new Azure SQL database #3144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 3 tasks
yorek opened this issue Apr 22, 2025 · 0 comments
Open
1 of 3 tasks
Assignees
Labels
area-docs ⛓️‍💥 breaking-change Issues or PRs tracking breaking changes. doc-idea Indicates issues that are suggestions for new topics [org][type][category] Pri1 High priority, do before Pri2 and Pri3
Milestone

Comments

@yorek
Copy link
Contributor

yorek commented Apr 22, 2025

Description

The default SKU used for creating a new Azure SQL database during the deployment is GP_S_Gen5_2 (General Purpose Serveless) with the Free Offer enabled (https://learn.microsoft.com/en-us/azure/azure-sql/database/free-offer?view=azuresql)

Version

.NET Aspire 9.0 GA

Previous behavior

Azure SQL DB was deployed with the default option which was not taking advantage of the free offer

New behavior

Azure SQL DB is deployed using the advantage of the free offer GP_S_Gen5_2 (General Purpose Serveless) with the Free Offer enabled.
The database will be paused if/when the free offer limits are reached to avoid incurring in unexpected monthly costs

Type of breaking change

  • Binary incompatible: Existing binaries might encounter a breaking change in behavior, such as failure to load or execute, and if so, require recompilation.
  • Source incompatible: When recompiled using the new SDK or component or to target the new runtime, existing source code might require source changes to compile successfully.
  • Behavioral change: Existing binaries might behave differently at run time.

Reason for change

Avoid monthly costs by taking advantage of Azure SQL DB free offer: https://learn.microsoft.com/en-us/azure/azure-sql/database/free-offer?view=azuresql

Recommended action

A new method WithSku as been added to allow developers to choose what SKU to use when deploying the database, as per

Affected APIs

  • public class AzureSqlDatabaseResource: updated to use free offer as default deployment option
  • public static IResourceBuilder<AzureSqlDatabaseResource> AddDatabase: updated to use free offer as default deployment option
  • public static IResourceBuilder<AzureSqlDatabaseResource> WithSku: added to allow to specify the desired sku
@yorek yorek added area-docs doc-idea Indicates issues that are suggestions for new topics [org][type][category] Pri1 High priority, do before Pri2 and Pri3 ⛓️‍💥 breaking-change Issues or PRs tracking breaking changes. labels Apr 22, 2025
@adegeo adegeo changed the title [Breaking change]: [Breaking change]: Change the default SKU used for creating a new Azure SQL database Apr 23, 2025
@IEvangelist IEvangelist added this to the 9.3 milestone Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-docs ⛓️‍💥 breaking-change Issues or PRs tracking breaking changes. doc-idea Indicates issues that are suggestions for new topics [org][type][category] Pri1 High priority, do before Pri2 and Pri3
Projects
None yet
Development

No branches or pull requests

2 participants