Enable local auth for service bus #5747
Labels
area-integrations
Issues pertaining to Aspire Integrations packages
azure
Issues associated specifically with scenarios tied to using Azure
enhancement
An enhancement to an existing feature or capability.
Background and Motivation
The Aspire.Hosting.Azure.ServiceBus integration
disables local auth
but I need local auth for my KEDA scale rule on a different container.
The documentation is a bit outdated since it mentions this way to configure azure service bus
but there is only the
AddAzureServiceBus(this IDistributedApplicationBuilder builder, string name, Action<IResourceBuilder<AzureServiceBusResource>, ResourceModuleConstruct, ServiceBusNamespace>? configureResource)
overload. If I use this codethat does not work. I'm not sure how
AssignProperty
works because if I set a breakpoint inside theconfigureResource the
serviceBusNamespace.Properties.DisableLocalAuth
is still null. Afterazd up
local auth is still disabled. I guess theAssignProperty
works different. But if I use this myselfI get an error during deployment
Local Auth is needed for development as well
otherwise you'll get errors like this
Currently I am using a post deploy hook and
az servicebus namespace update
to reenable it but it would be great to have an way to do this with c#Proposed API
Bring back the settings overload mentioned here
Usage Examples
Alternative Designs
use the fluent interface
or
or (but that's in the scope of the aspire team)
Risks
I'm not 100% certain but the default a while back was
local auth enabled by default
Now it's disabled by default which is propably a good thing. But being able to enable local auth should be possible.The text was updated successfully, but these errors were encountered: