In the StorageAccountHostsMixin class of the python sdk, there is no correct way to handle the endpoints of the azurite storage table #17417
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
needs-team-triage
Workflow: This issue needs the team to triage.
Tables
test-manual-pass
Milestone
Error Description:
Azurite is an Azure Storage emulator.
In the
StorageAccountHostsMixin
class of the python sdk, there is no correct way to handle the endpoints of the azurite storage table.ValueError: Unable to determine account name for shared key credential.
The reason is the storage tables endpoint for Azurite is different from the one of an Azure storage account.
In Azurite, storage tables endpoint constructed is shown as following:
https://127.0.0.1:10002/<account-name>/<resource-path>
In Azure SDK for python, storage tables endpoint constructed is shown as following:
https://<account-name>.table.core.windows.net/<resource-path>
Error Track:
The code is about processing the azurite storage tables endpoint in azure sdk for python is here:
To Reproduce:
A demo code is shown as following:
Expected Behavior
There is a correct way to handle azurite storage table endpoints in python SDK. Finally, able to successfully access azurite.
@jongio for notification.
The text was updated successfully, but these errors were encountered: