Open codepic opened 4 months ago
Hi @codepic,
2.60.0 is not the latest Azure CLI(2.61.0).
If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.
Thank you for opening this issue, we will look into it.
Hi @codepic Find similar issue https://github.com/Azure/azure-cli/issues/11099. | ||
---|---|---|
Issue title | az aks upgrade tty error in Azure DevOps agent | |
Create time | 2019-11-04 | |
Comment number | 11 |
Possible solution:
As mentioned in the previous issue, the error message indicates that the program needs user input, which is not possible in DevOps as it doesn't have a tty. One solution is to add a parameter to skip or override human input. Another solution is to adjust the command so that it doesn't reach the line where user input is needed. However, it seems like this issue has been resolved by passing --yes
flag.
Please confirm if this resolves your issue.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/deployments-owners.
Hi @codepic Find similar issue #11099.
Issue title az aks upgrade tty error in Azure DevOps agent Create time 2019-11-04 Comment number 11 Possible solution: As mentioned in the previous issue, the error message indicates that the program needs user input, which is not possible in DevOps as it doesn't have a tty. One solution is to add a parameter to skip or override human input. Another solution is to adjust the command so that it doesn't reach the line where user input is needed. However, it seems like this issue has been resolved by passing
--yes
flag.Please confirm if this resolves your issue.
Passing --yes
when you don't know what the underlying issue is, is not a solution.
Clearly communicating what Azure CLI attempted and what stopped it from continuing, is the answer.
F.ex. in this particular case, a message like Azure CLI attempted to request user input with message 'Are you sure you want to execute the deployment? (y/n):' but no TTY exists.
would be much more preferable than ERROR:
which leads to 4 hours of wasted debugging effort (multiplied by how many times this ambiguous error is shown to Azure CLI users, which must be thousands every year).
It all falls down to TCO of Azure and our customers will pay it in their consulting bill.
Describe the bug
I am running an Azure DevOps pipeline, more specifically
az deployment group create
.The pipeline fails with a simple
ERROR:
and no details whatsoever.I need to pass
--debug
into Azure CLI in order to get into the details of the error.As you can see, the Azure CLI finds out there is something missing and will call
knack.prompting
in order to get user input.Only then,
knack.prompting
will callverify_is_a_tty
and throwsknack.prompting.NoTTYException
.Related command
az deployment group create
Errors
Issue script & Debug output
Expected behavior
Azure CLI checks if TTY exists when an argument is missing and simply throws an exception with the missing argument name when TTY cannot be found.
Environment Summary
Additional context
Azure DevOps, ubuntu-latest and windows-latest.