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 Command does not output anything and returns errorcode 1 #27703

Open
gingters opened this issue Oct 27, 2023 · 3 comments
Open

az Command does not output anything and returns errorcode 1 #27703

gingters opened this issue Oct 27, 2023 · 3 comments
Assignees
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team Core CLI core infrastructure 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

@gingters
Copy link

Describe the bug

The az command suddenly stopped working.
I get no console output whatsoever, only errorcode 1.
I tried uninstalling and re-installing the current version 2.53.1, but this did not help.

Related command

az

Errors

The command does not output anything. Error code on the console is 1.

Issue script & Debug output

Can't provide, I don't get any output at all.

Expected behavior

If az has a problem, it should at least output an error message.

Environment Summary

Can't provide, I don't get any output at all.

Additional context

No response

@gingters gingters added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Oct 27, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Oct 27, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Oct 27, 2023

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

@yonzhan yonzhan added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Core CLI core infrastructure Azure CLI Team The command of the issue is owned by Azure CLI team and removed bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Oct 27, 2023
@yonzhan yonzhan added this to the Backlog milestone Oct 27, 2023
@jiasli
Copy link
Member

jiasli commented Oct 30, 2023

It could be possible that the az command is broken.

  1. Where are you running Azure CLI, Windows, Linux or MacOS?
  2. Which shell are you using?
  3. Could you share a screenshot of what you are seeing?

@stanislav-fedorenko
Copy link

stanislav-fedorenko commented Nov 1, 2023

I had the same issue.
I reinstalled Azure CLI, tried different PowerShell consoles, and updated PowerShell to the latest version.
However, the problem persisted.
image

There was nothing related in the EventLog.
OS: Windows 11 with the latest updates.

The issue, as it turns out, was with my system (cmd.exe). After some Windows updates, it stopped working as it should have (CMD exited immediately after running).

I fixed it by executing the following command:
%SystemRoot%\System32\reg.exe DELETE "HKCU\Software\Microsoft\Command Processor" /v AutoRun /f

PS: I think az commands should be a bit more informative in similar cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team Core CLI core infrastructure 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

No branches or pull requests

4 participants