Skip to content

[Python] Azure with SAS Keys #49972

@benmatwil

Description

@benmatwil

Describe the bug, including details regarding any error messages, version, and platform.

Initialising an Azure Filesystem object with a SAS key seems to produce a URL in the incorrect order and errors. The final URL that I assume is being used to query Azure is then shown in the error message.

I would have expected a URL of the form https://{account_name}.dfs.core.windows.net/path/to/file?{saskey}.

However instead the error message shows: https://{account_name}.dfs.core.windows.net/{saskey}/path/to/file. On reading a file, it errors.

I can successfully read the file using an account key.
However I can't use the default credential unless there's a way to customise the credentials searched and don't want to use account keys for general use. So will need to generate sas keys using the Azure SDK.

Component(s)

Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions