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:
- The specified option/flag (--account-name)
- The set environment variable (AZURE_STORAGE_ACCOUNT)
- The value saved in the settings file, set via
azure configure.
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_argumentmethod 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:azure configure.