polars.CredentialProviderAzure#
- class polars.CredentialProviderAzure(
- *,
- scopes: list[str] | None = None,
- tenant_id: str | None = None,
- credentials: Any | None = None,
- _storage_account: str | None = None,
Azure Credential Provider.
Using this requires the
azure-identity
Python package to be installed.Warning
This functionality is considered unstable. It may be changed at any point without it being considered a breaking change.
- __init__(
- *,
- scopes: list[str] | None = None,
- tenant_id: str | None = None,
- credentials: Any | None = None,
- _storage_account: str | None = None,
Initialize a credential provider for Microsoft Azure.
By default, this uses
azure.identity.DefaultAzureCredential()
.- Parameters:
- scopes
Scopes to pass to
get_token
- tenant_id
Azure tenant ID.
- credentials
Optionally pass an instantiated Azure credential class to use (e.g.
azure.identity.DefaultAzureCredential
). The credential class must have aget_token()
method.
Methods
__init__
(*[, scopes, tenant_id, ...])Initialize a credential provider for Microsoft Azure.