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

No me permite logear #30121

Closed
pablomunozcanales opened this issue Oct 17, 2024 · 2 comments
Closed

No me permite logear #30121

pablomunozcanales opened this issue Oct 17, 2024 · 2 comments
Assignees
Labels
Account az login/account Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@pablomunozcanales
Copy link

Describe the bug

Ingreso al cli, ejecuto el comando az login, luego voy a https://microsoft.com/devicelogin a ingresar el codigo, me aparece el subscription doy enter y hace logout con el mensaje

"If you encounter any problem, please open an issue at https://aka.ms/azclibug

[Warning] The login output has been updated. Please be aware that it no longer displays the full list of available subscriptions by default."

Related command

az login

Errors

If you encounter any problem, please open an issue at https://aka.ms/azclibug

[Warning] The login output has been updated. Please be aware that it no longer displays the full list of available subscriptions by default.

Issue script & Debug output

cli.knack.cli: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x7f16d92d8790>, <function _x509_from_base64_to_hex_transform at 0x7f16d92d8820>]
cli.knack.cli: Event: CommandInvoker.OnFilterResult []
cli.knack.cli: Event: Cli.SuccessfulExecute []
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f16d930e9d0>]
az_command_data_logger: exit code: 0
cli.main: Command ran in 28.537 seconds (init: 0.158, invoke: 28.380)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3887 in cache file under /home/pablo/.azure/telemetry/20241017181711129
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/usr/bin/python3.9 /usr/lib/az/lib/python3.9/site-packages/azure/cli/telemetry/init.py /home/pablo/.azure /home/pablo/.azure/telemetry/20241017181711129"
telemetry.process: Return from creating process 3017
telemetry.main: Finish creating telemetry upload process.

Expected behavior

que se logee y poder ejecutar comandos

Environment Summary

azure-cli 2.65.0

core 2.65.0
telemetry 1.1.0

Extensions:
ai-examples 0.2.5
ml 2.30.1
ssh 2.0.5

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Python location '/usr/bin/python3.9'
Extensions directory '/home/pablo/.azure/cliextensions'
Extensions system directory '/usr/lib/python3.9/site-packages/azure-cli-extensions'

Python (Linux) 3.9.19 (main, Aug 23 2024, 00:07:48)
[GCC 11.2.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

@pablomunozcanales pablomunozcanales added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Oct 17, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Oct 17, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Account az login/account labels Oct 17, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 17, 2024
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Oct 18, 2024
@yonzhan yonzhan added this to the Backlog milestone Oct 18, 2024
mustafacco7 added a commit to mustafacco7/azure-cli that referenced this issue Oct 18, 2024
Fixes Azure#30121

Add a new method `clear_sessions` to clear existing Azure CLI sessions and call it in the `login` method before attempting to log in.

* **src/azure-cli-core/azure/cli/core/_profile.py**
  - Add `clear_sessions` method to clear existing Azure CLI sessions.
  - Call `clear_sessions` method in the `login` method before finding subscriptions.

* **src/azure-cli-core/azure/cli/core/tests/test_profile.py**
  - Add `test_clear_sessions` method to test the `clear_sessions` method.
  - Add `test_login_with_clear_sessions` method to test the `login` method with session clearing.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Azure/azure-cli/issues/30121?shareId=XXXX-XXXX-XXXX-XXXX).
@jiasli
Copy link
Member

jiasli commented Oct 21, 2024

Please provide the error message you are seeing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants