Skip to content

AzureStorageConfig

Module: azure_config

Azure storage configuration container.

Field Type
storage_account str
tenant_id Optional[str]
dotenv_path Optional[Path]
client_id Optional[str]
client_secret Optional[str]
device_code_client_id Optional[str]
storage_endpoint(self) -> str

The blob endpoint URL derived from the storage account.

from_env(cls) -> 'AzureStorageConfig'

Build Azure configuration from the process environment.

from_env_file(cls, path: Union[str, Path]) -> 'AzureStorageConfig'

Load Azure configuration from a dotenv file.

Argument Type Description
path Union[str, Path] Path to the dotenv file to load. May be absolute or relative; the file must exist.