-
Notifications
You must be signed in to change notification settings - Fork 3k
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 returns 0 when failing #23880
Comments
Thank you for your feedback. This has been routed to the support team for assistance. |
route to CXP team |
Hi Yong, will there be an IcM ticket filed for this issue? It is affecting all customers of the Substrate Intelligence AI platform and the Shrike library. |
This looks like some issue with PowerShell. Say we have the same
The exit code is correct when they are invoked directly:
However, when invoked by
If Exit 1 It works as expected:
Azure CLI switched to |
On contrary,
So does Bash:
|
We will revert the change in #24015 |
Also facing the same issue, looking forward to the next release fixing this issue! |
https://github.com/Azure/azure-cli/milestone/122 Build to Cloud Shell: 10/10/2022 Official Release: 10/12/2022 |
Related command
az extension show -n azure-ml-cli
Describe the bug
When azure-ml-cli is not installed, we expect an error with exitcode 1. This works properly for 2.39 and older, but with 2.40, it returns 0.
To Reproduce
Run the following python script:
Outputs
2.40
2.39
Expected behavior
CompletedProcess(args=['pwsh', '-EncodedCommand', 'YQB6ACAAZQB4AHQAZQBuAHMAaQBvAG4AIABzAGgAbwB3ACAALQBuACAAYQB6AHUAcgBlAC0AYwBsAGkALQBtAGwA'], returncode=1)
Environment summary
Windows, python 3.8
Additional context
Similar to #23808
The text was updated successfully, but these errors were encountered: