Azure / Azure/azure-cli

az login --password-file

Open
#22,642 5 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad Auto-Assign feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
`az login`

**Is your feature request related to a problem? Please describe.**
As a bash user logging script output I do not want to inadvertently capture a secret in my logs. To use `az login` with a password I need to pass the password as an argument. This forces me to load the password into a shell variable which increases the likelihood the password will be captured in a log.

**Describe the solution you'd like**
I'd like `az login` to support an option `--password-file` which can be used instead of `--password`. The value will be a path to a file from which the password can be read.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.