We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 617ddcf commit fbc2732Copy full SHA for fbc2732
src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py
@@ -146,8 +146,8 @@ def login_auth_for_azcopy(cmd):
146
147
148
def client_auth_for_azcopy(cmd, client):
149
- # prefer oauth mode
150
- if client.credential:
+ # prefer oauth mode, if account-key is not provided
+ if client.credential and not hasattr(client.credential, "account_key"):
151
raw_token = Profile(cli_ctx=cmd.cli_ctx).get_raw_token(resource=STORAGE_RESOURCE_ENDPOINT)
152
token_info = raw_token[0][2]
153
try:
0 commit comments