azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

No support for UseDevelopmentStorage=true on connection string

Open LuckyLub opened this issue 3 years ago • 1 comments

  • Package Name: azure-data-tables
  • Package Version: 12.4.0
  • Operating System: Ubuntu
  • Python Version: 3.9

Describe the bug It's not possible to call the TableServiceClient.from_connection_string() method with UseDevelopmentStorage=true as input, which is basicaly same issue as issue 13100 in azure-sdk-for-js.

The solution to that issue also works here: when UseDevelopmentStorage=true is provided as the connection string it should use the following connection string instead: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1

To Reproduce

from azure.data.tables import TableServiceClient

table_client = TableServiceClient.from_connection_string("UseDevelopmentStorage=true")

Expected behavior Should connect to emulator.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

LuckyLub avatar Jul 26 '22 15:07 LuckyLub

Hi @LuckyLub - Thanks for opening an issue! We'll investigate this asap!

swathipil avatar Jul 26 '22 17:07 swathipil