polars.CredentialProviderAzure#
- class polars.CredentialProviderAzure(
- *,
- scopes: list[str] | None = None,
- tenant_id: str | None = None,
- credential: Any | None = None,
- _storage_account: str | None = None,
Azure Credential Provider.
Using this requires the
azure-identityPython 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,
- credential: 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.
- credential
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, credential, ...])Initialize a credential provider for Microsoft Azure.
clear_cached_credentials()retrieve_credentials_impl()Fetch the credentials.