Skip to content

Conversation

martincostello
Copy link
Member

@martincostello martincostello commented Jul 14, 2025

Description

Switch the azure-sql-edge container for mssql/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

Switch the `azure-sql-edge` container for `mssql/server` as Azure SQL Edge is retiring in September 2025.

Relates to dotnet#9279.
@Copilot Copilot AI review requested due to automatic review settings July 14, 2025 09:22
@github-actions github-actions bot added the area-integrations Issues pertaining to Aspire Integrations packages label Jul 14, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 14, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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 than sb-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 match ServiceBusEmulatorContainerImageTags.SqlServerRegistry, SqlServerImage, and SqlServerTag to ensure the switch to mssql/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 as ServiceBusEmulatorVersion or EmulatorTag to clarify its purpose.
    public const string Tag = "1.1.2";

martincostello added a commit to martincostello/docs-aspire that referenced this pull request Jul 14, 2025
Update the companion image for the ServiceBus emulator.

Relates to dotnet/aspire#10378.
@martincostello martincostello added azure-servicebus azure Issues associated specifically with scenarios tied to using Azure labels Jul 14, 2025
@martincostello
Copy link
Member Author

[Nudge as support ends in just over a month]

Copy link
Member

@eerhardt eerhardt left a 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";
Copy link
Member

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.

Copy link
Member

@eerhardt eerhardt left a 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!

@eerhardt eerhardt enabled auto-merge (squash) September 2, 2025 14:31
@eerhardt eerhardt merged commit 478e53a into dotnet:main Sep 2, 2025
292 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 9.5 milestone Sep 2, 2025
@martincostello martincostello deleted the gh-9279-use-mssql-with-servicebus branch September 2, 2025 14:52
IEvangelist added a commit to dotnet/docs-aspire that referenced this pull request Sep 3, 2025
* 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]>
Copilot AI pushed a commit that referenced this pull request Sep 3, 2025
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-integrations Issues pertaining to Aspire Integrations packages azure Issues associated specifically with scenarios tied to using Azure azure-servicebus community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants