`az login` by attempting to specify `-u` and `-p` fails on MacOS 10.15.7
See original GitHub issueThis is autogenerated. Please review and update as needed.
az login
by attempting to specify -u
and -p
fails on MacOS 10.15.7.
Command Name
az login
Errors:
The command failed with an unexpected error. Here is the traceback:
Unsupported soap action: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Cancel
Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 658, in execute
raise ex
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 692, in _run_job
result = cmd_copy(params)
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
return self.handler(*args, **kwargs)
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/profile/custom.py", line 149, in login
subscriptions = profile.login(
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/_profile.py", line 158, in login
user_identity = identity.login_with_username_password(username, password, scopes=scopes, **kwargs)
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/auth/identity.py", line 186, in login_with_username_password
result = self._msal_app.acquire_token_by_username_password(username, password, scopes, **kwargs)
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/msal/application.py", line 1401, in acquire_token_by_username_password
response = _clean_up(self._acquire_token_by_username_password_federated(
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/msal/application.py", line 1428, in _acquire_token_by_username_password_federated
wstrust_result = wst_send_request(
File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/msal/wstrust_request.py", line 47, in send_request
assert soap_action in (Mex.ACTION_13, Mex.ACTION_2005), ( # A loose check here
AssertionError: Unsupported soap action: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Cancel
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az login -u {} -p {}
Expected Behavior
Able to specify user when calling az login
Environment Summary
macOS-10.15.7-x86_64-i386-64bit, Darwin 19.6.0
Python 3.10.1
Installer: HOMEBREW
azure-cli 2.32.0
Extensions:
dev-spaces 1.0.6
aks-preview 0.5.34
Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0
Additional Context
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Sign in with Azure CLI — Login and Authentication
Sign in with credentials on the command line ; read -sp "Azure password: " ; echo && az login -u <username> -p $AZ_PASS....
Read more >Problem downloading Catalina 10.15.7 - Apple Community
I am trying to upgrade from OS X Yosemite to Catalina. However, each time the App store asked me to log in with...
Read more >How to launch a macOS instance on Amazon EC2 - Medium
Click 'Launch Instance'; Select 'macOS Catalina 10.15.7'; Click 'Review and Launch'; Use an existing key or create a new one. You'll need ...
Read more >App won't run on iMac with Catalina 10.15.7 after installing.
Have tried reinstall, restarted Mac, tried advanced install and still won't run. Any help please as I use this app a lot.
Read more >Azure CLI - Login Error Inside "Deploy Package" Step
... this Azure CLI command az login --service-principal -u $ServicePrincipal -p ... All variables are set correctly, Azure CLI has been configured on...
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 FreeTop 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
Top GitHub Comments
Thanks @rayluo . Sounds good. I can stick with the browser approach and
az login
. Cheers.There might be some settings needed from the ADFS to enable the username password sign-in. Unfortunately, I do not have much info on that part. If you are OK with sticking with “az login”, please do. “az login” is the browser-based interactive login, which is our recommended login approach, anyway.