The Azure CLI
official documentation states that environmental variables can be used inside bash scripts to store AZURE_STORAGE_ACCOUNT
and AZURE_STORAGE_KEY
, like this:
Compared to AWS CLI
this method is less secure since it stores the AZURE_STORAGE_KEY
in plain text in the bash script.
AWS CLI
, on the other hand, saves the key and the secret in encrypted format in user's home folder under ~/.aws
folder.
Does Azure CLI
provide similar functionality, or is there any better way to store the key safely in the system?