ABFS
Any Azure Blob Storage specific configuration.
Attributes
| Attribute | Type | Description |
|---|---|---|
| account_name | typing.Optional[str] = None | The unique name of the Azure Storage account used for authentication and identifying the storage resource. |
| account_key | typing.Optional[str] = None | The secret access key associated with the Azure Storage account for authorizing requests. |
| tenant_id | typing.Optional[str] = None | The Azure Active Directory tenant ID used for service principal authentication. |
| client_id | typing.Optional[str] = None | The application or client ID used to authenticate a service principal against Azure. |
| client_secret | typing.Optional[str] = None | The client secret or password for the service principal used during authentication. |
Methods
auto()
@classmethod
def auto() - > [ABFS](abfs.md?sid=flyte_storage__config_abfs)
Creates an ABFS instance by automatically retrieving Azure credentials from environment variables. This method checks for account names, keys, and service principal details defined in the environment to simplify storage configuration.
Returns
| Type | Description |
|---|---|
[ABFS](abfs.md?sid=flyte_storage__config_abfs) | An initialized ABFS storage object populated with credentials found in the environment. |
get_fsspec_kwargs()
@classmethod
def get_fsspec_kwargs(
anonymous: bool = False,
**kwargs: any
) - > typing.Dict[str, typing.Any]
Builds a dictionary of configuration arguments compatible with fsspec for Azure Blob Storage. It merges instance-level credentials with provided overrides to facilitate authenticated filesystem connections.
Parameters
| Name | Type | Description |
|---|---|---|
| anonymous | bool = False | Whether to connect without authentication; if True, credentials will be omitted from the resulting configuration. |
| **kwargs | any | Additional keyword arguments to be merged into or override the default storage configuration. |
Returns
| Type | Description |
|---|---|
typing.Dict[str, typing.Any] | A dictionary containing connection parameters and a nested config object with Azure authentication details. |