Forrest logo
back to the az tool

az-config:tldr:2354a

az-config: Set a configuration.
$ az config set ${configuration_name}=${value}
try on your machine

The az config set command is used to set a configuration value in the Azure CLI (Command Line Interface) configuration.

Here is an explanation of each part of the command:

  • az: It represents the Azure CLI command.
  • config: It is the command group in Azure CLI that deals with configurations.
  • set: It is the command within the config command group used to set a configuration value.

${configuration_name}: It is a placeholder representing the name of the configuration you want to set. You need to replace ${configuration_name} with the actual name of the configuration.

${value}: It is a placeholder representing the value you want to assign to the configuration. You need to replace ${value} with the actual value you want to set.

For example, let's say you want to set the configuration value for the subscription you are working with. The command would look like this:

az config set subscription=<subscription_id>

In this example, subscription is the configuration name, and <subscription_id> is the value you want to assign to it. Replace <subscription_id> with the actual ID of the Azure subscription you want to set.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool