Skip to content

az containerapp job start option to wait for job to finish #31306

@paulirwin

Description

@paulirwin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions