Creates or replaces a DuckDB Azure secret using the credential_chain
provider. This lets DuckDB resolve credentials itself, for example from the
Azure CLI or environment.
Arguments
- conn
A DuckDB connection.
- account
Optional storage account name. When supplied, the secret is scoped to that account's hosts and applies to Parquet, CSV and JSON reads. Delta tables never match an account-scoped secret, so register an unscoped secret for them.
- chain
Optional character vector of DuckDB credential-chain entries. Values are joined with semicolons and passed as DuckDB's
CHAINvalue. Defaults to"default", DuckDB's default credential chain.
Examples
if (FALSE) { # \dontrun{
# Requires a live Azure account, credentials, and network access.
conn <- az_conn()
az_set_chain_secret(conn, chain = "cli")
} # }