Aspire Storage integration does not work due to ;; part in connection string
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Describe the bug
Looking at: https://github.com/dotnet/aspire/blob/main/src/Aspire.Hosting.Azure.Storage/AzureStorageEmulatorConnectionString.cs
the endpoint for emulator ends with ;
```
builder.Append($"{key}={endpoint.Property(EndpointProperty.Scheme)}://{endpoint.Property(EndpointProperty.IPV4Host)}:{endpoint.Property(EndpointProperty.Port)}/devstoreaccount1;");
```
and then the queue connection string gets ;; due to
https://github.com/dotnet/aspire/blob/main/src/Aspire.Hosting.Azure.Storage/AzureQueueStorageResource.cs
```
https://github.com/dotnet/aspire/blob/main/src/Aspire.Hosting.Azure.Storage/AzureQueueStorageResource.cs
```
which then ends up with a connection string `xxx;;queuename` and the azure queue service client is not able to parse that.
### Expected Behavior
The expected behavior is that when adding the azure service client to an application that reference the queue, it can connect instead of crashing.
### Steps To Reproduce
_No response_
### Exceptions (if any)
_No response_
### .NET Version info
_No response_
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.