[release/9.3] Force SqlDatabase resource api version#9535
Merged
joperezr merged 2 commits intorelease/9.3from May 29, 2025
Merged
[release/9.3] Force SqlDatabase resource api version#9535joperezr merged 2 commits intorelease/9.3from
joperezr merged 2 commits intorelease/9.3from
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR backports a fix to update the API version for Azure SQL Database resources so that they support the free tier properties in release/9.3.
- Updates all resource definitions for SQL databases in Bicep templates from "2021-11-01" to "2023-08-01".
- Revises the constructor call in AzureSqlExtensions.cs to pass the new API version and includes clarifying comments about the change.
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/Aspire.Hosting.Azure.Tests/Snapshots/*verified.bicep | Updated API version for SQL database resources; removal of extraneous characters in the description annotation. |
| src/Aspire.Hosting.Azure.Sql/AzureSqlExtensions.cs | Replaced the old constructor call with one that enforces the new API version, with added comments referencing the free SKU support. |
| playground//.bicep | Updated API version for SQL database resource definitions to the new version. |
Member
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
|
/azp run dotnet.aspire |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
|
closing and reopening to trigger a rebase and rerun of CI. |
joperezr
approved these changes
May 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #9530 to release/9.3
/cc @sebastienros
Customer Impact
Azure Sql Database are supposed to use the free offer by default in 9.3. However, the default api version used doesn't support the properties that are defined in order to do that. This PR bumps the api version on the resource to enable the support
Testing
Tested manually on Azure, unit tests are verifying the updated version is applied.
Verified the warning messages were gone and the databases show as using the free tier.
Risk
Low.
Regression?
No, new default deployment in 9.3