bebound / azure-cli

Azure Command-Line Interface
MIT License
0 stars 0 forks source link

az login tenant error test only #59

Open bebound opened 1 year ago

bebound commented 1 year ago

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.

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[bot] commented 1 year ago

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[bot] commented 1 year ago
Find similar issue https://github.com/bebound/azure-cli/issues/58.
Issue title az login tenant error
Create time 2023-02-27
Comment number 1
similar-bot-test[bot] commented 1 year ago
Find similar issue https://github.com/bebound/azure-cli/issues/58.
Issue title az login tenant error
Create time 2023-02-27
Comment number 1
similar-bot-test[bot] commented 1 year ago
Find similar issue https://github.com/bebound/azure-cli/issues/58.
Issue title az login tenant error
Create time 2023-02-27
Comment number 1
similar-bot-test[bot] commented 1 year ago
Hi @bebound Find similar issue https://github.com/bebound/azure-cli/issues/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.

similar-bot-test[bot] commented 1 year ago
Hi @bebound Find similar issue https://github.com/bebound/azure-cli/issues/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.

similar-bot-test[bot] commented 1 year ago
Hi @bebound Find similar issue https://github.com/bebound/azure-cli/issues/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.

similar-bot-test[bot] commented 11 months ago
Hi @bebound Find similar issue https://github.com/bebound/azure-cli/issues/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[bot] commented 11 months ago
Hi @bebound Find similar issue https://github.com/bebound/azure-cli/issues/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.

similar-bot-test[bot] commented 11 months ago
Hi @bebound Find similar issue https://github.com/bebound/azure-cli/issues/58.
Issue title az login tenant error
Create time 2023-02-27
Comment number 1

Please confirm if this resolves your issue.

similar-bot-test[bot] commented 11 months ago
Hi @bebound Find similar issue https://github.com/bebound/azure-cli/issues/58.
Issue title az login tenant error
Create time 2023-02-27
Comment number 1

Please confirm if this resolves your issue.