LinuxCommandLibrary

az-config

Manage Azure CLI configuration settings

TLDR

Get all configurations

$ az config get
copy
Get a specific configuration section
$ az config get [core]
copy
Get a specific configuration key
$ az config get [core.no_color]
copy
Disable color output
$ az config set core.no_color=true
copy
Set default resource group and location
$ az config set defaults.group=[MyResourceGroup] defaults.location=[westus2]
copy
Enable logging to file
$ az config set logging.enable_log_file=true
copy
Unset a configuration
$ az config unset [core.no_color]
copy
Set local configuration for current directory
$ 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.

CAVEATS

This is an experimental command group available since Azure CLI 2.10.0. Local configurations are stored in the current working directory.

SEE ALSO

az(1), az-appconfig(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community