Azure / Azure/azure-cli

`az containerapp job start` option to wait for job to finish

Open
#31,306 5 comments 9 reactions 0 assignees View on GitHub
act-observability-squad Auto-Assign ContainerApp customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
`az containerapp job start`

**Is your feature request related to a problem? Please describe.**
No

**Describe the solution you'd like**
I have a Container App job that I would like to invoke from an Azure DevOps pipeline, and need to know if it completed successfully or failed so that I can mark the pipeline as succeeded or failed. I would like an option on `az containerapp job start` that waits for the job to finish, and returns a 0 exit code if the job finished successfully, and non-zero exit code upon job execution failure.

**Describe alternatives you've considered**
`az containerapp job start` returns the name of the execution instance. You can then loop and poll via `az containerapp job execution show`, however, this requires a fair amount of custom scripting for something that feels like it should be a capability of the CLI.

**Additional context**
This is similar to the feature request for Azure PowerShell: https://github.com/Azure/azure-powershell/issues/27062

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.