az_config: Report the Azure environment configuration

View source: R/utils.R

az_configR Documentation

Report the Azure environment configuration

Description

Reports the Azure environment variables used during credential discovery, the value each one resolves to, and where that value came from. This is the same information shown in the package startup banner.

AZURE_CLIENT_SECRET is never reported verbatim: when it is set, its value is returned as ⁠<<REDACTED>>⁠.

Usage

az_config()

Value

A data.frame with one row per environment variable and the columns:

variable

Name of the environment variable.

value

The resolved value, or NA when the variable is unset and has no built-in fallback.

source

Where the value came from: "env" when read from the environment, "default" when it falls back to a built-in value, or "unset" when the variable is not set and has no fallback.

See Also

default_azure_tenant_id(), default_azure_client_id(), default_azure_config_dir()

Examples

az_config()

# which variables are actually set in the environment?
config <- az_config()
config[config$source == "env", ]

azr documentation built on Nov. 13, 2026, 5:07 p.m.