Skip to content

Docs: Improve documentation for Azure CLI authentication #1211

Description

@kvedes

Description

It is unclear how to configure deltalake to authenticate using Azure CLI credentials. It seems like it should be supported (rust documentation). However, the delta lake documentation doesn't show how it is done. It only shows key based examples for AWS.

All the other options in the rust documentation are key-value based, but the UseCLI doesn't seem to be, so what do you put, when you are supposed to pass a dictionary?

I have tried to figure it out myself, but without any success:

> az login
> python
>>> from deltalake import DeltaTable
>>> dt = DeltaTable(abfs_path, storage_options={
    "AZURE_TENANT_ID": tenant_id,
    "AZURE_USE_AZURE_CLI": "true"
})
PyDeltaTableError: Failed to read delta log object: Generic MicrosoftAzure error: At least one authorization option must be specified

Use Case
For data scientists/data analysts who are not knowledgeable about authentication it is easy to sign into the CLI but hard to manually featch tokens or manage service principal credentials for storage_options.

Related Issue(s)
This might be related, if the mentioned bug is also affecting CLI auth: #1153

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions