question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az storage entity merge outputs invalid warning message

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
iyerusadcommented, May 4, 2020

If --auth mode login doesn’t work, then I shouldn’t get a warning message that says to use it!

Currently we only throw warning message for all possible credentials missing scenarios.

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.

0reactions
dastewa-zzcommented, Aug 4, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found