Skip to content

Fix Azure ServiceBus sku when using private endpoints#14484

Merged
eerhardt merged 1 commit intodotnet:release/13.2from
eerhardt:FixPrivateEndpoints
Feb 13, 2026
Merged

Fix Azure ServiceBus sku when using private endpoints#14484
eerhardt merged 1 commit intodotnet:release/13.2from
eerhardt:FixPrivateEndpoints

Conversation

@eerhardt
Copy link
Member

Standard SKU doesn't work with private endpoints. It needs to be Premium.

Checklist

Copilot AI review requested due to automatic review settings February 13, 2026 00:15
@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 14484

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 14484"

Copy link
Contributor

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 pull request fixes a critical bug in Azure Service Bus resource provisioning where the Standard SKU was being used when private endpoints were configured. Azure Service Bus Standard SKU does not support private endpoints and requires the Premium SKU.

Changes:

  • Modified the SKU selection logic to conditionally use "Premium" when private endpoints are configured, otherwise "Standard"
  • Updated the corresponding test snapshot to expect "Premium" SKU in the generated Bicep file

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusExtensions.cs Added conditional logic to set SKU to "Premium" when hasPrivateEndpoint is true, otherwise "Standard"
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzurePrivateEndpointLockdownTests.AddAzureServiceBus_WithPrivateEndpoint_GeneratesCorrectBicep.verified.bicep Updated test snapshot to verify the SKU parameter is set to "Premium" when private endpoints are configured

@sebastienros
Copy link
Member

main branch?

@eerhardt
Copy link
Member Author

main branch?

Ooops!

Standard SKU doesn't work with private endpoints. It needs to be Premium.
@eerhardt eerhardt force-pushed the FixPrivateEndpoints branch from fea376e to f5e2ca5 Compare February 13, 2026 20:00
@eerhardt eerhardt requested a review from radical as a code owner February 13, 2026 20:00
@eerhardt eerhardt changed the base branch from main to release/13.2 February 13, 2026 20:01
@eerhardt eerhardt merged commit b893fe2 into dotnet:release/13.2 Feb 13, 2026
343 checks passed
@eerhardt eerhardt deleted the FixPrivateEndpoints branch February 13, 2026 20:58
@dotnet-policy-service dotnet-policy-service bot added this to the 13.2 milestone Feb 13, 2026
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.

3 participants