az storage entity merge outputs invalid warning message
See original GitHub issueDescribe the bug
Command Name
az storage entity merge
Errors:
az: error: unrecognized arguments: --auth-mode login
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az storage entity merge --entity PartitionKey=foo RowKey=bar SomethingElse=whatever --table-name MyTable --account-name MyAccount
Note warning that is output:
No connection string, account key or sas token found, we will query account keys for your storage account. Please try to use --auth-mode login or provide one of the following parameters: connection string, account key or sas token for your storage account.
Try to follow suggestion in warning message:
az storage entity merge --auth-mode login --entity PartitionKey=foo RowKey=bar SomethingElse=whatever --table-name MyTable --account-name MyAccount
Expected Behavior
Either the warning should not be emitted, or the auth-mode parameter should work.
Environment Summary
macOS-10.15.2-x86_64-i386-64bit
Python 3.8.1
Shell: bash
azure-cli 2.0.81
Additional Context
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:17 (7 by maintainers)
Top Results From Across the Web
Bug regarding types in az storage entity? - Microsoft Q&A
String causes the call to fail in this case. See the following commands: az storage entity merge (account, table etc) --table-name Products -- ......
Read more >Inconsistent authorization warning and error while using az ...
I successfully get my query result with the following warning: There are no credentials provided in your command and environment, we will query ......
Read more >Apache NiFi User Guide
Apache NiFi is a dataflow system based on the concepts of flow-based programming. It supports powerful and scalable directed graphs of data ...
Read more >Cisco IOS XR Software Release 4.3 - Retirement Notification
The Cisco IOS XR Software Release 4.3 has been retired and is no longer supported. End-of-Sale Date: 2015-04-10. End-of-Support Date ...
Read more >Data definition language (DDL) statements in ... - Google Cloud
A column name: Must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_); Must start with a letter or underscore ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Outputting informational message to stderr is in violation of decades of expected behavior of stderr. Informational messages typically belong in stdout.
If you are not sure how to fix this or authentication is upstream provider out of your control: A wrapper function that will try/catch each auth method and only outputs to stderr if none of the authentication methods were successful could handle this for you.
--only-show-errors
implies only showing errors, no informational output. I (and everyone else) can add this but it is a backwards workaround for a problem that shouldn’t exist. This flag really shouldn’t exist.Hi @Juliehzl - This issue should probably be reopened as the problem that was mentioned has not been resolved (unless I’m missing an update). I only ended up finding this issue because of the mentioned error message - only to find out that --auth-mode login is not supported. Having an accurate error message would have saved this investigative time for myself and others.