Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Az CLI ignores options if environment variables are set #27

Open
manekinekko opened this issue Aug 23, 2021 · 0 comments
Open

Az CLI ignores options if environment variables are set #27

manekinekko opened this issue Aug 23, 2021 · 0 comments

Comments

@manekinekko
Copy link
Owner

Describe the bug

When creating a storage instance, the az CLI will check if the following environment variables are set, if so, it will use them and ignore the options passed to the CLI:

  • AZURE_STORAGE_CONNECTION_STRING
  • AZURE_STORAGE_ACCOUNT
  • AZURE_STORAGE_ACCESS_KEY

To Reproduce

Set any of these environment variables in your terminal before usign hexa:

AZURE_STORAGE_ACCOUNT="fake" hexa init --just=storage

Expected behavior

Hexa (and the az cli) should ignore the user-defined env variables and use the values passed through the CLI options.

Additional context

Other Azure services might be affected by a similar bug (needs to investigate).

cc @sinedied who reported this issue.

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

No branches or pull requests

1 participant