Skip to content

Aspire Storage integration does not work due to ;; part in connection string #11967

@pksorensen

Description

@pksorensen

Is there an existing issue for this?

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-integrationsIssues pertaining to Aspire Integrations packages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions