Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support UseDevelopmentStorage=true; as connection string #10040

Closed
jongio opened this issue Feb 27, 2020 · 9 comments
Closed

Support UseDevelopmentStorage=true; as connection string #10040

jongio opened this issue Feb 27, 2020 · 9 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. feature-request This issue requires a new behavior in the product in order be resolved. Storage Storage Service (Queues, Blobs, Files)

Comments

@jongio
Copy link
Member

jongio commented Feb 27, 2020

  • Package Name: azure.storage.blob
  • Package Version: 12.2
  • Operating System: windows
  • Python Version: 3.8

Describe the bug

We should support local emulation with azure storage explorer and azurite. This was possible in old sdk.

Reported by customer here: https://stackoverflow.com/questions/60437824/blob-storage-connection-to-emulator-local-development-fail

To Reproduce

Run the storage emulator or azurite
Run this code:

import os, uuid
from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient

try:
    container_client = ContainerClient.from_connection_string("UseDevelopmentStorage=true;", "foo")
    container_client.create_container()

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

You get this exception.

Connection string missing required connection details.

Expected behavior

It should work.

Workaround

Use full connection string:

container_client = ContainerClient.from_connection_string("DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;", "foo")

Related:
#372
#375

It was resolved in old sdk with is_emulated flag or EMULATED env variable
Azure/azure-storage-python#6

You can view the is_emulated impl here: https://github.com/Azure/azure-storage-python/search?utf8=%E2%9C%93&q=is_emulated&type=

@kaerm kaerm added Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files) labels Feb 27, 2020
@ghost
Copy link

ghost commented Feb 27, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage

@Azure Azure deleted a comment Feb 27, 2020
@xiafu-msft xiafu-msft self-assigned this Feb 28, 2020
@xiafu-msft
Copy link
Contributor

Hi @jongio

Thanks for your feedback! We will add this task to our backlog!

@ronbuchanan
Copy link

Where does this stand?

@xiafu-msft xiafu-msft added the feature-request This issue requires a new behavior in the product in order be resolved. label Jan 16, 2021
@tasherif-msft tasherif-msft self-assigned this Jan 22, 2021
@Chotom
Copy link

Chotom commented Aug 23, 2023

Any update on this topic?

@Jan-Jasek
Copy link

@xiafu-msft Still lingering in the back log I assume?

@ddelange
Copy link

ddelange commented Sep 15, 2023

interestingly, according to tests, it should be supported in blob, queue, and tables 🤔

edit: nevermind, it tests that the string raises a ValueError 😅

@Macht59
Copy link

Macht59 commented Jan 5, 2024

No update in 4 years. What a shame.

@ddelange
Copy link

ddelange commented Jan 5, 2024

I had a look at the link I posted in my last comment: it should be pretfy straight forward to amend that test: to assert that the client ends up with a proper full conn string.

I'm no maintainer but I'm sure that PRs are welcome 👍

Copy link

Hi @jongio, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. feature-request This issue requires a new behavior in the product in order be resolved. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

9 participants