-
Notifications
You must be signed in to change notification settings - Fork 685
Use mssql instead of azure-sql-edge for ServiceBus Emulator #10378
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
Use mssql instead of azure-sql-edge for ServiceBus Emulator #10378
Conversation
Switch the `azure-sql-edge` container for `mssql/server` as Azure SQL Edge is retiring in September 2025. Relates to dotnet#9279.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR replaces the retiring azure-sql-edge
emulator image with the official mssql/server
image for the Azure ServiceBus emulator.
- Switch container image constants from Azure SQL Edge to SQL Server
- Update emulator extension to create and reference an
-mssql
container instead of-sqledge
- Adjust corresponding test to look for
sb-mssql
rather thansb-sqledge
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
tests/Aspire.Hosting.Azure.Tests/AzureServiceBusExtensionsTests.cs | Test updated to expect the resource named sb-mssql instead of sb-sqledge . |
src/Aspire.Hosting.Azure.ServiceBus/ServiceBusEmulatorContainerImageTags.cs | Renamed constants from AzureSqlEdge* to SqlServer* and updated <remarks> to reflect mssql/server . |
src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusExtensions.cs | Updated container addition and references to use -mssql , SqlServerImage , SqlServerTag , and SqlServerRegistry . |
Comments suppressed due to low confidence (2)
tests/Aspire.Hosting.Azure.Tests/AzureServiceBusExtensionsTests.cs:613
- Consider adding assertions to verify that the container image registry, image name, and tag on the
sb-mssql
resource matchServiceBusEmulatorContainerImageTags.SqlServerRegistry
,SqlServerImage
, andSqlServerTag
to ensure the switch tomssql/server
is fully validated in tests.
var sql = builder.Resources.FirstOrDefault(x => x.Name == "sb-mssql");
src/Aspire.Hosting.Azure.ServiceBus/ServiceBusEmulatorContainerImageTags.cs:15
- [nitpick] The constant name
Tag
is quite generic; consider renaming it to something more descriptive such asServiceBusEmulatorVersion
orEmulatorTag
to clarify its purpose.
public const string Tag = "1.1.2";
Update the companion image for the ServiceBus emulator. Relates to dotnet/aspire#10378.
[Nudge as support ends in just over a month] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix here @martincostello. I just have 1 comment. Other than that, this looks good.
|
||
/// <remarks>latest</remarks> | ||
public const string AzureSqlEdgeTag = "latest"; | ||
public const string SqlServerTag = "latest"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should pin this to a version, like we do with the real SqlServer hosting integration:
public const string Tag = "2022-latest"; |
This way we will be less likely to get breaking changes.
src/Aspire.Hosting.Azure.ServiceBus/ServiceBusEmulatorContainerImageTags.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the contribution!
* Update ServiceBus emulator child image name Update the companion image for the ServiceBus emulator. Relates to dotnet/aspire#10378. * Improve clarity around Application Insights integration options (#4259) * Initial plan * Add telemetry options section to Application Insights documentation Co-authored-by: IEvangelist <[email protected]> * Convert Microsoft Learn links to site-relative URLs Co-authored-by: IEvangelist <[email protected]> * Add missing periods to bullet lists and table descriptions Co-authored-by: adegeo <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: IEvangelist <[email protected]> Co-authored-by: adegeo <[email protected]> --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: IEvangelist <[email protected]> Co-authored-by: adegeo <[email protected]> Co-authored-by: David Pine <[email protected]>
* Use mssql instead of azure-sql-edge for ServiceBus Switch the `azure-sql-edge` container for `mssql/server` as Azure SQL Edge is retiring in September 2025. Relates to #9279. * Use 2022-latest tag for ServiceBus emulator Addresses feedback. * Update src/Aspire.Hosting.Azure.ServiceBus/ServiceBusEmulatorContainerImageTags.cs --------- Co-authored-by: Eric Erhardt <[email protected]>
Description
Switch the
azure-sql-edge
container formssql/server
for the Azure ServiceBus emulator as Azure SQL Edge is retiring in September 2025.Relates to #9279. Provides the switch from the to-be-retired image, but does not introduce the ability to allow the user to configure the dependent SQL Server image proposed.
Checklist
Yes. Ready to ship.NoYesYesNo