Open MatthewWilkes opened 1 year ago
I've been working on a PowerShell watcher. Major issue is that container logs tend to show up with the exact same timestamp down to the microsecond so they can get jumbled. https://gist.github.com/JustinGrote/50b0281400755d46cff214c8336a2b9e
Is your feature request related to a problem? Please describe.
The command-line usage of executing a job is suboptimal, both for direct usage and in a pipeline. Wishing to run a job, then view the logs on completion looks like this in a terminal sessions:
There are a few difficulties here. Firstly, you can use the
--ids
format to start a job execution, but not to show an execution. Then, you cannot await job completion, merely query the status. Finally, once a job has completed, you need the id of the log analytics workspace and a Kusto query in order to view what happened.Describe the solution you'd like.
I'd love to be able to await a manually triggered job's completion, streaming logs as it runs. This would allow integration of long-running jobs into CI/CD pipelines, showing execution progress as it completes.
Less optimally, I'd like to be able to attach to a job using a subcommand of execution, similarly blocking until completion and streaming logs.
Describe alternatives you've considered.
It would be possible to build a wrapper around the
az
cli to deliver this, however it would require polling of the law, running multiple queries with filtering, then deduplicating logs to show on screen.Additional context.
N/A