Skip to content

Generic mechanism to designate that parameters can be backed by an environment variable or settings file #709

Description

Related to issue #657. Currently, only the storage account connection parameters are backed by environment variables (essentially persistent defaults). As we move forward, looking to expose additional parameters to defaults through azure configure, we should unify the way this is handled.

One proposal would be to extend the register_cli_argument method so that it can accept a persistent key. This would be the environment variable name and the key in the settings file, as appropriate. The actual value on command execution would be based on the following precedence:

  1. The specified option/flag (--account-name)
  2. The set environment variable (AZURE_STORAGE_ACCOUNT)
  3. The value saved in the settings file, set via azure configure.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions