You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to deploy an Azure Service Bus resource while specifying a specific SKU the publisher generate bicep with errors.
Specifically it generates the following bicep which is missing the name parameter in the sku object. It also hardcodes the sku tier, don't know if it's intended behavior vs using the param already established in the default bicep template.
@description('The location for the resource(s) to be deployed.')
paramlocationstring = resourceGroup().locationparamskustring = 'Standard'resourcebioapps_bus'Microsoft.ServiceBus/namespaces@2024-01-01' = {
name: take('servicebus-${uniqueString(resourceGroup().id)}', 50)
location: locationproperties: {
disableLocalAuth: true
}
sku: {
tier: 'Premium'
}
tags: {
'aspire-resource-name': 'service-bus'
}
}
outputserviceBusEndpointstring = service_bus.properties.serviceBusEndpointoutputnamestring = service_bus.name
The default bicep is as follows
@description('The location for the resource(s) to be deployed.')
paramlocationstring = resourceGroup().locationparamskustring = 'Standard'resourcebioapps_bus'Microsoft.ServiceBus/namespaces@2024-01-01' = {
name: take('servicebus-${uniqueString(resourceGroup().id)}', 50)
location: locationproperties: {
disableLocalAuth: true
}
sku: {
name: sku
}
tags: {
'aspire-resource-name': 'service-bus'
}
}
outputserviceBusEndpointstring = service_bus.properties.serviceBusEndpointoutputnamestring = service_bus.name
Expected Behavior
Te generate valid bicep for deploying an Azure Service Bus resource while specifying an SKU.
azd config set alpha.infraSynth on
azd infra synth
Exceptions (if any)
No response
.NET Version info
.NET SDK:
Version: 9.0.201
Commit: 071aaccdc2
Workload version: 9.0.200-manifests.a3a1a094
MSBuild version: 17.13.13+1c2026462
Runtime Environment:
OS Name: Mac OS X
OS Version: 15.3
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/9.0.201/
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.3
Architecture: arm64
Commit: 831d23e561
gabynevada
changed the title
Aspire.Hosting.Azure 9.2.1 Service bus generates incorrect bicep when specifying sku
Service bus integration customize sku sample documentation incorrect
Apr 24, 2025
Is there an existing issue for this?
Describe the bug
When trying to deploy an Azure Service Bus resource while specifying a specific SKU the publisher generate bicep with errors.
Specifically it generates the following bicep which is missing the name parameter in the sku object. It also hardcodes the sku tier, don't know if it's intended behavior vs using the param already established in the default bicep template.
The default bicep is as follows
Expected Behavior
Te generate valid bicep for deploying an Azure Service Bus resource while specifying an SKU.
Steps To Reproduce
Add the following to AppHost
Run azd to generate bicep files
azd config set alpha.infraSynth on azd infra synth
Exceptions (if any)
No response
.NET Version info
Anything else?
No response
Associated WorkItem - 424820
The text was updated successfully, but these errors were encountered: