`az containerapp job start` option to wait for job to finish
- 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
Assessment
This issue has not been assessed yet.