Closed
Description
If I try to run az storage share create -n <name>
without an account name, the command prints out the following error message:
No credentials specifed to access storage service. Please provide any of the following:
(1) account name and key (--account-name and --account-key options or
set AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_KEY environment variables)
(2) connection string (--connection-string option or
set AZURE_STORAGE_CONNECTION_STRING environment variable)
(3) account name and SAS token (--sas-token option used with either the --account-name
option or AZURE_STORAGE_ACCOUNT environment variable)
However, if I simply add the --account-name
flag and re-run the command, it succeeds (as I had hoped). #1 and #3 above imply that I needed to also specify either an --account-key
or --sas-token
value, but that doesn't seem to be the case.
Am I missing something, or could this help text be updated to reflect this behavior?
As an aside, "specified" is spelled incorrectly in the message above.