-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
- 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:
- 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!