az-config
Manage Azure CLI configuration settings
TLDR
Get all configurations
$ az config get
Get a specific configuration sectioncopy
$ az config get [core]
Get a specific configuration keycopy
$ az config get [core.no_color]
Disable color outputcopy
$ az config set core.no_color=true
Set default resource group and locationcopy
$ az config set defaults.group=[MyResourceGroup] defaults.location=[westus2]
Enable logging to filecopy
$ az config set logging.enable_log_file=true
Unset a configurationcopy
$ az config unset [core.no_color]
Set local configuration for current directorycopy
$ az config set defaults.group=[myRG] --local
copy
SYNOPSIS
az config subcommand [options]
DESCRIPTION
az config manages Azure CLI configuration settings. It allows customizing CLI behavior including output formatting, default values, telemetry, logging, and error display. Configuration can be set globally or locally per directory.The default configuration file is stored at ~/.azure/config.
PARAMETERS
--local
Apply configuration to local scope (working directory) instead of global.
CONFIGURATION
~/.azure/config
Global Azure CLI configuration file with INI-format sections for core, defaults, logging, and other settings..azure/config
Local directory-scoped configuration file, created with the --local flag, overriding global settings for the current project.
SUBCOMMANDS
get
Get a configuration value.set
Set a configuration value.unset
Unset a configuration value.param-persist
Manage parameter persistence.param-persist on
Enable parameter persistence.param-persist off
Disable parameter persistence.param-persist show
Show parameter persistence data.param-persist delete
Delete parameter persistence data.
CAVEATS
This command group is marked experimental and under development (not deprecated); behavior and options may change. It has been available since Azure CLI 2.10.0. Local configurations are stored in the current working directory and take precedence over the global config.
SEE ALSO
az(1), az-appconfig(1)