Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az login tenant error test only #59

Open
bebound opened this issue Apr 17, 2023 · 11 comments
Open

az login tenant error test only #59

bebound opened this issue Apr 17, 2023 · 11 comments

Comments

@bebound
Copy link
Owner

bebound commented Apr 17, 2023

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az login

Errors:

The command failed with an unexpected error. Here is the traceback:
Unable to find wstrust endpoint from MEX. This typically happens when attempting MSA accounts. More details available here. https://github.com/AzureAD/microsoft-authentication-library-for-python/wiki/Username-Password-Authentication
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.45.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/Cellar/azure-cli/2.45.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/usr/local/Cellar/azure-cli/2.45.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/local/Cellar/azure-cli/2.45.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/usr/local/Cellar/azure-cli/2.45.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.45.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.45.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/profile/custom.py", line 139, in login
    subscriptions = profile.login(
  File "/usr/local/Cellar/azure-cli/2.45.0/libexec/lib/python3.10/site-packages/azure/cli/core/_profile.py", line 157, in login
    user_identity = identity.login_with_username_password(username, password, scopes=scopes, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.45.0/libexec/lib/python3.10/site-packages/azure/cli/core/auth/identity.py", line 172, 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.45.0/libexec/lib/python3.10/site-packages/msal/application.py", line 1619, in acquire_token_by_username_password
    response = _clean_up(self._acquire_token_by_username_password_federated(
  File "/usr/local/Cellar/azure-cli/2.45.0/libexec/lib/python3.10/site-packages/msal/application.py", line 1641, in _acquire_token_by_username_password_federated
    raise ValueError("Unable to find wstrust endpoint from MEX. "
ValueError: Unable to find wstrust endpoint from MEX. This typically happens when attempting MSA accounts. More details available here. https://github.com/AzureAD/microsoft-authentication-library-for-python/wiki/Username-Password-Authentication

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 {}

Expected Behavior

Environment Summary

macOS-12.6.3-x86_64-i386-64bit, Darwin 21.6.0
Python 3.10.10
Installer: HOMEBREW

azure-cli 2.45.0

Additional Context

Copy from https://github.com/Azure/azure-cli/issues/25581

@similar-bot-test
Copy link

Hi @bebound,

2.45.0 is not the latest Azure CLI(2.47.0).

Please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

@similar-bot-test
Copy link

Find similar issue #58.

Issue title az login tenant error
Create time 2023-02-27
Comment number 1

Repository owner deleted a comment from similar-bot-test bot Apr 21, 2023
@bebound bebound closed this as completed Apr 24, 2023
@bebound bebound reopened this Apr 24, 2023
@bebound bebound closed this as completed Apr 24, 2023
@bebound bebound reopened this Apr 24, 2023
@similar-bot-test
Copy link

Find similar issue #58.

Issue title az login tenant error
Create time 2023-02-27
Comment number 1

@bebound bebound closed this as completed Apr 24, 2023
@bebound bebound reopened this Apr 24, 2023
@similar-bot-test
Copy link

Find similar issue #58.

Issue title az login tenant error
Create time 2023-02-27
Comment number 1

Repository owner deleted a comment from similar-bot-test bot May 8, 2023
Repository owner deleted a comment from similar-bot-test bot May 8, 2023
@similar-bot-test
Copy link

Hi @bebound
Find similar issue #58.

Issue title az login tenant error
Create time 2023-02-27
Comment number 1

Please confirm if this solution resolves your issue.
Kindly react a 👍 or 👎 to this comment so that we can improve this robot.

Repository owner deleted a comment from similar-bot-test bot May 8, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
@similar-bot-test
Copy link

Hi @bebound
Find similar issue #58.

Issue title az login tenant error
Create time 2023-02-27
Comment number 1
Possible solution:
Apologies for the inconvenience caused. As per the error message, it seems that the ssh extension is not installed. To resolve this issue, you can install the ssh extension using the below command:

az extension add --name ssh

After installing the extension, you can confirm if it is successfully installed by running the below command:

az extension show -n ssh

Once the extension is installed, you can try to run the az network bastion ssh command to connect to the VM and test. Please let us know if this resolves your issue.

Please confirm if this resolves your issue.

Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 21, 2023
@similar-bot-test
Copy link

Hi @bebound
Find similar issue #58.

Issue title az login tenant error
Create time 2023-02-27
Comment number 1

Possible solution:
Apologies for the inconvenience caused. As per the error message, it seems that the ssh extension is not installed. To resolve this issue, you can install the ssh extension using the below command:

az extension add --name ssh

After installing the extension, you can confirm if it is successfully installed by running the below command:

az extension show -n ssh

Once the extension is installed, you can try to run the az network bastion ssh command to connect to the VM and test. Please let us know if this resolves your issue.


Please confirm if this resolves your issue.

Repository owner deleted a comment from similar-bot-test bot Jun 26, 2023
Repository owner deleted a comment from similar-bot-test bot Jun 26, 2023
Repository owner deleted a comment from similar-bot-test bot Jul 26, 2023
Repository owner deleted a comment from similar-bot-test bot Jul 26, 2023
Repository owner deleted a comment from similar-bot-test bot Jul 28, 2023
Repository owner deleted a comment from similar-bot-test bot Jul 28, 2023
@similar-bot-test
Copy link

Hi @bebound
Find similar issue #58.

Issue title az login tenant error
Create time 2023-02-27
Comment number 1

Possible solution:
Apologies for the late reply. Could you please install the ssh extension using the below command ?

az extension add --name ssh

Then confirm if the extension is successfully installed by running the below command:

az extension show -n ssh

After this you can try to run the az network bastion ssh command to connect to the VM and test. Awaiting your reply.


Please confirm if this resolves your issue.

@similar-bot-test
Copy link

Hi @bebound
Find similar issue #58.

Issue title az login tenant error
Create time 2023-02-27
Comment number 1

Possible solution:
The error message you are seeing is caused by the null value of type "txt" in your DNS zone. One possible solution is to delete this "txt" record in the export file. Another solution is to export type "txt" with an empty value. You can try these solutions and see if they work for you.


Please confirm if this resolves your issue.

Repository owner deleted a comment from similar-bot-test bot Aug 4, 2023
@similar-bot-test
Copy link

Hi @bebound
Find similar issue #58.

Issue title az login tenant error
Create time 2023-02-27
Comment number 1

Please confirm if this resolves your issue.

1 similar comment
@similar-bot-test
Copy link

Hi @bebound
Find similar issue #58.

Issue title az login tenant error
Create time 2023-02-27
Comment number 1

Please confirm if this resolves your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant