Support Managed Identity in AzureStorageResource emulator #7047
Labels
area-integrations
Issues pertaining to Aspire Integrations packages
azure-storage
Issues related to azure storage integration
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I am trying to use Aspire to start up my AspNetCore project and emulate all my Azure dependencies for local development.
My goal is to not mix any Aspire dependencies into my production code.
The AppHost project's sole responsibility should be to start all the emulators, replace environment variables for the AspNetCore API so that it will use the emulators and finally start the API.
One issue I'm facing off the bat is that Aspire exposes Azurite endpoints without TLS, making
Azure.Identity
throw exceptions about using plain HTTP.Azurite should support HTTPS according to the docs.
azurite --oauth basic --cert path/server.pem --key path/key.pem
My current workaround is to grab the connectionstring and set it as an environment variables from Aspire and then check if it's present in my production code to decide which TableClient constructor I should use.
Example:
Aspire AppHost
Api Project
Ideally I should use the same constructor and my production code should not support access keys.
Describe the solution you'd like
Add a method that reflects the Azurite parameter like
or perhaps if it's possible, and you think it's better, to make it work with the existing
.WithHttpsEndpoint(...)
extension method.Additional context
No response
The text was updated successfully, but these errors were encountered: