Skip to content

[Configure] A more versatile az configure #13981

Description

@jiasli

az configure currently only supports setting and listing the default section:

> az configure -h

Command
    az configure : Manage Azure CLI configuration. This command is interactive.

Arguments
    --defaults -d      : Space-separated 'name=value' pairs for common argument defaults.
    --list-defaults -l : List all applicable defaults.  Allowed values: false, true.
    --scope            : Scope of defaults. Using "local" for settings only effective under current
                         folder.  Allowed values: global, local.  Default: global.

For other sections described in Azure CLI configuration, users will have to manually edit the ~/.azure/config file, like

[core]
collect_telemetry = no
no_color = yes

[logging]
enable_log_file = no

This is inconvenient.

To improve the user experience, az configure needs to

  1. Support set, get and unset
  2. Support sections other than default

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Configureaz configure/config

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions