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 kusto script create should return exit code > 0 when there are errors #28234

Open
karpikpl opened this issue Jan 22, 2024 · 1 comment
Open
Labels
Kusto Service Attention This issue is responsible by Azure service team.

Comments

@karpikpl
Copy link

karpikpl commented Jan 22, 2024

Related command

az kusto script create  --cluster-name $clusterName `
    --database-name $databaseName `
    --name $nameTable `
    --resource-group $resourceGroupName `
    --script-content $qCreateTable `
    --force-update-tag $guid

image

Is your feature request related to a problem? Please describe.
Pipeline execution is successful when there are errors in running the command.

Describe the solution you'd like
Command should return non-zero code when there are errors.

Describe alternatives you've considered
I'd have to redirect standard error to a file and grep the results for "ERROR" then set error code in the script?

Additional context
Setting "Fail on Standard Error" doesn't help, because warnings are also sent to standard error.
The goal is for the task to fail on errors, but succeed on Warnings.

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 22, 2024

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

@yonzhan yonzhan added Kusto Service Attention This issue is responsible by Azure service team. labels Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kusto Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants