-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az containerapp job start option to wait for job to finish #31306
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: Azure/azure-powershell#27062