Skip to content

Support UseDevelopmentStorage=true; as connection string #42280

@hallvictoria

Description

@hallvictoria
  • Package Name: azure-storage-blob
  • Package Version: all
  • Operating System: all
  • Python Version: all

Describe the bug
When running Azurite / Azure Storage Explorer, the connection string commonly exposed is "UseDevelopmentStorage=true;". However, if I try to create a client-type using that as the connection string, I get an error, and I have to use a connection string like DefaultEndpointsProtocol=http;... for the client to be created correctly.

This seems to only happen for Python - .NET, Java, and Node allow client creation with "UseDevelopmentStorage=true;" as the connection string.

To Reproduce
Steps to reproduce the behavior:

  1. Run Azurite with the following code:
from azure.storage.blob import BlobServiceClient

try:
    blob_service_client = BlobServiceClient.from_connection_string("UseDevelopmentStorage=true;")
    blob_client = blob_service_client.get_blob_client(
                container="mycontainer",
                blob="test.txt",
            )

except Exception as ex:
    print('Exception:')
    print(ex)

Expected behavior
The client is created without issues.

Screenshots
When running, I get this exception:

Connection string missing required connection details.

Additional context
Same issue as #10040 - this was closed without any input from the team, so just hoping we can get some information on if this will ever be supported. Thanks!

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions